[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71F0999DQ1B5Y7GYMMV13RX":3,"skill-same:01M71F0999DQ1B5Y7GYMMV13RX":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M71F0999DQ1B5Y7GYMMV13RX","orca-aware-delegation",null,"Trigger: Orca CLI, Orca orchestration, Orca worktree, explicit Orca delegation intent. Hydrate ai-specs worktrees before Orca launches scoped workers.","parada1104\u002Fai-specs-cli","parada1104","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57575053?v=4","01M71EZZV71KAFZKJ47FQ99ZVS","01M71EZZW7JJBY2VAWA5HRD944",0,"MIT","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Fai-specs\u002Fskills\u002Forca-aware-delegation\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"delegation","orca aware delegation","hydrate","cli","worktree","naming","intent","worktrees","trigger","scoped","workers","orchestration","root","2026-11-10 10:12:30",false,"---\nname: orca-aware-delegation\ndescription: \"Trigger: Orca CLI, Orca orchestration, Orca worktree, explicit Orca delegation intent. Hydrate ai-specs worktrees before Orca launches scoped workers.\"\nlicense: MIT\nmetadata:\n  author: ai-specs\n  version: \"1.2\"\n  scope: [root]\n  auto_invoke:\n    - \"Explicitly naming Orca CLI, Orca orchestration, or an Orca worktree\"\n    - \"Explicitly requesting delegation through Orca\"\n---\n\n## Activation Contract\n\nActivate only when the request explicitly names Orca CLI, Orca orchestration, an Orca worktree, or equivalent explicit Orca delegation intent. Do not activate because `orca` exists, an environment variable exists, worktree-flow is enabled, or the request says only \"delegate\". Keep the normal non-Orca route unchanged.\n\n## Hard Rules\n\n- The canonical\u002Fmain agent is human-facing and owns the request, decomposition, decisions, worker dispatch decisions, verification\u002Fintegration, staging\u002Fcommit, and worktree lifecycle. `ai-specs` creates and hydrates the worktree; Orca owns runtime, Run, Task, Dispatch, and terminal control. The canonical orchestrator keeps lifecycle ownership from Run binding through release.\n- A worker owns change content only inside its assigned worktree. It must not create, remove, reassign, or independently manage that worktree or its lifecycle, and must not stage, commit, push, or merge.\n- Launch every Orca agent as a visible interactive TUI session created through Orca (`worker-start` or an Orca terminal surface). Never launch a worker with `claude -p`, `opencode run`, a provider API call, a background\u002Fheadless provider process, or any equivalent programmatic invocation.\n- `worker_done` reports task completion only; it never implies terminal closure. Ask the human whether the TUI stays retained for inspection or continuation, record the answer, and use `worker-retain` when it does. Use `worker-release` only for an explicit close\u002Fcleanup decision the human-facing orchestrator makes after judging the worker finished. Never release automatically as the default after `worker_done`.\n- For standalone\u002Fdirect work, use the existing worktree-flow `\u002Fworktree-new` procedure, then run full `ai-specs sync \u003Cabsolute-worktree>` before dispatch; do not substitute `sync-agent`.\n- Capture both a pre-sync baseline and a post-sync baseline. Sync rewrites provisioning-owned files such as `AGENTS.md`, `ai-specs\u002F.ai-specs.lock`, managed recipe overrides, and other generated runtime\u002Frecipe files; classify those separately from worker-owned change content, and preserve unrelated pre-existing changes.\n- Before any commit or staging, revert or exclude only the sync-generated provisioning paths back to their pre-sync state, then stage only the worker-owned change paths. Never commit sync output merely because it is tracked or changed. Only an explicit separate authorization can make a provisioning change part of the deliverable, and the canonical orchestrator owns the final staging and commit decision.\n- Never copy generated files or secrets from the canonical checkout. Verify the exact target root and readiness before launch; never launch an ambiguous or unhydrated target.\n- Standalone\u002Fdirect worktrees created by `ai-specs` are discoverable by Orca. Pass the existing `path:\u003Cabsolute-worktree>`; never ask Orca to create a second worktree for the same change. `worker-start` reuses that exact path and rejects `--setup`, so omit `--setup` — setup is `not_applicable`.\n- Instruct the worker to verify the exact root, branch, and worktree list (`git rev-parse --show-toplevel`, `git branch --show-current`, `git worktree list`) before its first write. Hooks are defense in depth only, with delegated\u002Fsubprocess coverage gaps on OpenCode subagent\u002FMCP, Pi\u002FOMP, and Cursor.\n- Dispatch state `ready` or stage `input_accepted` is not proof the worker executed the task. Require meaningful readiness\u002Factivity plus a final `worker_done`.\n- For `monorepo-submodules`, fail closed unless a human explicitly approves subrepo handling. Superrepo discovery does not imply subrepo worktree discovery; never present subrepo worktrees as automatically discoverable.\n\n## Decision Gates\n\n| Gate | Action |\n| --- | --- |\n| Explicit Orca intent | Activate this route; otherwise use the normal route. |\n| Standalone\u002Fdirect topology | Create and hydrate with `\u002Fworktree-new` and full `ai-specs sync`. |\n| `monorepo-submodules` topology | Stop or obtain explicit human-approved subrepo handling. |\n| Root, hydration, and readiness checks | Dispatch only when all pass; otherwise preserve the worktree and report the failed phase. |\n| Existing hydrated worktree | Pass `path:\u003Cabsolute-worktree>` and omit `--setup`. |\n| Launch surface | Use an Orca-created interactive TUI only; refuse headless or programmatic launches. |\n| `worker_done` received | Keep the terminal open, ask retain-or-close, and retain unless the orchestrator decides to close. |\n| Staging or commit | Restore sync-generated paths to the pre-sync baseline and stage only worker-owned paths. |\n| Dispatch stalled or failed | Inspect worker state, then retry the same Task and path with `--retry-of`; never create a duplicate worktree. |\n\n## Execution Steps\n\n1. Resolve the project topology and target change. For standalone\u002Fdirect work, use `\u002Fworktree-new` from the canonical agent, then capture the pre-sync baseline with `git -C \u003Cabsolute-worktree> status --short`.\n2. Run `ai-specs sync \u003Cabsolute-worktree>` from the canonical route. Confirm success, verify `git -C \u003Cabsolute-worktree> rev-parse --show-toplevel` resolves to the exact intended root, then capture the post-sync baseline with `git -C \u003Cabsolute-worktree> status --short` and diff it against the pre-sync baseline to classify sync-generated provisioning paths.\n3. Hand Orca the existing selector `path:\u003Cabsolute-worktree>`: bind or create the Run, create the Task, then start the worker as a visible interactive TUI session.\n4. Observe heartbeat and `worker_done`, keep the TUI open, and settle retain-or-release with the human. The canonical agent owns verification, integration, the commit boundary, and cleanup.\n\nExact command shapes: [Orca lifecycle commands](references\u002Forca-lifecycle-commands.md).\n\n## Output Contract\n\nReturn status, exact worktree path\u002Froot, hydration result, pre-sync and post-sync baselines, Orca Run\u002FTask\u002FDispatch selectors, launch surface, worker boundary, `worker_done` outcome, retain-or-release decision, and verification\u002Fintegration status. Attribute provisioning-owned generated files to sync, not to the worker, and name the paths excluded from staging. On hydration or launch failure, preserve the worktree for inspection and report the exact path and failed phase. Never silently create a duplicate, claim execution without proof, release a terminal the human did not close, or commit sync output.\n\n## References\n\n- [Orca lifecycle commands](references\u002Forca-lifecycle-commands.md)\n- [Worktree creation command](..\u002F..\u002F..\u002Fcatalog\u002Frecipes\u002Fworktree-flow\u002Fcommands\u002Fworktree-new.md)\n- [Worktree flow skill](..\u002F..\u002F..\u002Fcatalog\u002Frecipes\u002Fworktree-flow\u002Fskills\u002Fworktree-flow\u002FSKILL.md)\n- [Project runtime brief](..\u002F..\u002F..\u002FAGENTS.md)\n","## Activation Contract\n\nActivate only when the request explicitly names Orca CLI, Orca orchestration, an Orca worktree, or equivalent explicit Orca delegation intent. Do not activate because `orca` exists, an environment variable exists, worktree-flow is enabled, or the request says only \"delegate\". Keep the normal non-Orca route unchanged.\n\n## Hard Rules\n\n- The canonical\u002Fmain agent is human-facing and owns the request, decomposition, decisions, worker dispatch decisions, verification\u002Fintegration, staging\u002Fcommit, and worktree lifecycle. `ai-specs` creates and hydrates the worktree; Orca owns runtime, Run, Task, Dispatch, and terminal control. The canonical orchestrator keeps lifecycle ownership from Run binding through release.\n- A worker owns change content only inside its assigned worktree. It must not create, remove, reassign, or independently manage that worktree or its lifecycle, and must not stage, commit, push, or merge.\n- Launch every Orca agent as a visible interactive TUI session created through Orca (`worker-start` or an Orca terminal surface). Never launch a worker with `claude -p`, `opencode run`, a provider API call, a background\u002Fheadless provider process, or any equivalent programmatic invocation.\n- `worker_done` reports task completion only; it never implies terminal closure. Ask the human whether the TUI stays retained for inspection or continuation, record the answer, and use `worker-retain` when it does. Use `worker-release` only for an explicit close\u002Fcleanup decision the human-facing orchestrator makes after judging the worker finished. Never release automatically as the default after `worker_done`.\n- For standalone\u002Fdirect work, use the existing worktree-flow `\u002Fworktree-new` procedure, then run full `ai-specs sync \u003Cabsolute-worktree>` before dispatch; do not substitute `sync-agent`.\n- Capture both a pre-sync baseline and a post-sync baseline. Sync rewrites provisioning-owned files such as `AGENTS.md`, `ai-specs\u002F.ai-specs.lock`, managed recipe overrides, and other generated runtime\u002Frecipe files; classify those separately from worker-owned change content, and preserve unrelated pre-existing changes.\n- Before any commit or staging, revert or exclude only the sync-generated provisioning paths back to their pre-sync state, then stage only the worker-owned change paths. Never commit sync output merely because it is tracked or changed. Only an explicit separate authorization can make a provisioning change part of the deliverable, and the canonical orchestrator owns the final staging and commit decision.\n- Never copy generated files or secrets from the canonical checkout. Verify the exact target root and readiness before launch; never launch an ambiguous or unhydrated target.\n- Standalone\u002Fdirect worktrees created by `ai-specs` are discoverable by Orca. Pass the existing `path:\u003Cabsolute-worktree>`; never ask Orca to create a second worktree for the same change. `worker-start` reuses that exact path and rejects `--setup`, so omit `--setup` — setup is `not_applicable`.\n- Instruct the worker to verify the exact root, branch, and worktree list (`git rev-parse --show-toplevel`, `git branch --show-current`, `git worktree list`) before its first write. Hooks are defense in depth only, with delegated\u002Fsubprocess coverage gaps on OpenCode subagent\u002FMCP, Pi\u002FOMP, and Cursor.\n- Dispatch state `ready` or stage `input_accepted` is not proof the worker executed the task. Require meaningful readiness\u002Factivity plus a final `worker_done`.\n- For `monorepo-submodules`, fail closed unless a human explicitly approves subrepo handling. Superrepo discovery does not imply subrepo worktree discovery; never present subrepo worktrees as automatically discoverable.\n\n## Decision Gates\n\n| Gate | Action |\n| --- | --- |\n| Explicit Orca intent | Activate this route; otherwise use the normal route. |\n| Standalone\u002Fdirect topology | Create and hydrate with `\u002Fworktree-new` and full `ai-specs sync`. |\n| `monorepo-submodules` topology | Stop or obtain explicit human-approved subrepo handling. |\n| Root, hydration, and readiness checks | Dispatch only when all pass; otherwise preserve the worktree and report the failed phase. |\n| Existing hydrated worktree | Pass `path:\u003Cabsolute-worktree>` and omit `--setup`. |\n| Launch surface | Use an Orca-created interactive TUI only; refuse headless or programmatic launches. |\n| `worker_done` received | Keep the terminal open, ask retain-or-close, and retain unless the orchestrator decides to close. |\n| Staging or commit | Restore sync-generated paths to the pre-sync baseline and stage only worker-owned paths. |\n| Dispatch stalled or failed | Inspect worker state, then retry the same Task and path with `--retry-of`; never create a duplicate worktree. |\n\n## Execution Steps\n\n1. Resolve the project topology and target change. For standalone\u002Fdirect work, use `\u002Fworktree-new` from the canonical agent, then capture the pre-sync baseline with `git -C \u003Cabsolute-worktree> status --short`.\n2. Run `ai-specs sync \u003Cabsolute-worktree>` from the canonical route. Confirm success, verify `git -C \u003Cabsolute-worktree> rev-parse --show-toplevel` resolves to the exact intended root, then capture the post-sync baseline with `git -C \u003Cabsolute-worktree> status --short` and diff it against the pre-sync baseline to classify sync-generated provisioning paths.\n3. Hand Orca the existing selector `path:\u003Cabsolute-worktree>`: bind or create the Run, create the Task, then start the worker as a visible interactive TUI session.\n4. Observe heartbeat and `worker_done`, keep the TUI open, and settle retain-or-release with the human. The canonical agent owns verification, integration, the commit boundary, and cleanup.\n\nExact command shapes: [Orca lifecycle commands](references\u002Forca-lifecycle-commands.md).\n\n## Output Contract\n\nReturn status, exact worktree path\u002Froot, hydration result, pre-sync and post-sync baselines, Orca Run\u002FTask\u002FDispatch selectors, launch surface, worker boundary, `worker_done` outcome, retain-or-release decision, and verification\u002Fintegration status. Attribute provisioning-owned generated files to sync, not to the worker, and name the paths excluded from staging. On hydration or launch failure, preserve the worktree for inspection and report the exact path and failed phase. Never silently create a duplicate, claim execution without proof, release a terminal the human did not close, or commit sync output.\n\n## References\n\n- [Orca lifecycle commands](references\u002Forca-lifecycle-commands.md)\n- [Worktree creation command](..\u002F..\u002F..\u002Fcatalog\u002Frecipes\u002Fworktree-flow\u002Fcommands\u002Fworktree-new.md)\n- [Worktree flow skill](..\u002F..\u002F..\u002Fcatalog\u002Frecipes\u002Fworktree-flow\u002Fskills\u002Fworktree-flow\u002FSKILL.md)\n- [Project runtime brief](..\u002F..\u002F..\u002FAGENTS.md)\n",{"name":5,"license":14,"metadata":36,"description":7},{"scope":37,"author":38,"version":39,"auto_invoke":40},[30],"ai-specs","1.2",[41,42],"Explicitly naming Orca CLI, Orca orchestration, or an Orca worktree","Explicitly requesting delegation through Orca","main","c092fc1f51280350a4434827e2f6d6d99e3431ca","ai-specs\u002Fskills\u002Forca-aware-delegation",2,"https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli","https:\u002F\u002Fgithub.com\u002Fparada1104","2026-11-15 03:00:26",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add parada1104\u002Fai-specs-cli --skill orca-aware-delegation",{"tool":56,"command":57},"bunx","bunx skills add parada1104\u002Fai-specs-cli --skill orca-aware-delegation",{"tool":59,"command":60},"pnpm","pnpm dlx skills add parada1104\u002Fai-specs-cli --skill orca-aware-delegation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Fai-specs\u002Fskills\u002Forca-aware-delegation\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Forca-lifecycle-commands.md","REFERENCE","参考文档",1561,"https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Fai-specs\u002Fskills\u002Forca-aware-delegation\u002Freferences\u002Forca-lifecycle-commands.md",[71,84,95,103,112,122],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":31},"01M71F2TF9TS9DNCJ68M7C3B5S","test-skill","Test skill for fixture purposes.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Frecipes\u002Ftest-fixture\u002Fskills\u002Ftest-skill\u002FSKILL.md",[],[78,79,80,30,81,82,83],"Test Skill","test","for","fixtures","fixture","testing",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":31},"01M71F2RTH94ZB7XEAW4P6ZG0D","obsidian-markdown","Fixture skill for obsidian-markdown.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fkepano-obsidian-skills\u002Fskills\u002Fobsidian-markdown\u002FSKILL.md",[],[91,92,93,80,82,94],"markdown","obsidian markdown","obsidian","fixture skill",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":31},"01M71F2R20CPTJXD9F7DP4JPP6","obsidian-cli","Fixture skill for obsidian-cli.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fkepano-obsidian-skills\u002Fskills\u002Fobsidian-cli\u002FSKILL.md",[],[102,93,21,80,82,94],"obsidian cli",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":31},"01M71F2PCH4NWVTT1J57SHJX33","obsidian-bases","Fixture skill for obsidian-bases.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fkepano-obsidian-skills\u002Fskills\u002Fobsidian-bases\u002FSKILL.md",[],[110,111,93,80,82,94],"bases","obsidian bases",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":31},"01M71F2MSS6EVFEYVYAA1KBYCC","json-canvas","Fixture skill for json-canvas.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fkepano-obsidian-skills\u002Fskills\u002Fjson-canvas\u002FSKILL.md",[],[119,120,121,94,82,80],"json","json canvas","canvas",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":31},"01M71F2KY5QVNEN1Q3REFB0MQZ","defuddle","Fixture skill for defuddle.","https:\u002F\u002Fgithub.com\u002Fparada1104\u002Fai-specs-cli\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fkepano-obsidian-skills\u002Fskills\u002Fdefuddle\u002FSKILL.md",[],[124,94,82,80]]