[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71T1NS97NJ2MQ993V7FBES7":3,"skill-same:01M71T1NS97NJ2MQ993V7FBES7":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":34,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M71T1NS97NJ2MQ993V7FBES7","worktree",null,"Use when starting feature work that needs isolation from the current workspace, or when running multiple Claude sessions in parallel on different branches — creates and manages git worktrees. For fetching latest main into every existing worktree and branch across your sibling repos, use \u002Fclaudna:sync-branches instead.","Claudfather\u002FclauDNA","Claudfather","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F281278891?v=4","01M71SX82K0TBGQ394AB2G1T5Z","01M71SX83CE1S8YC06K9P3P962",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"worktrees","sessions","for","feature","parallel","running","isolation","git","repos","sync","work","across","needs","git worktrees","when","claude sessions","main","branches","branch","2026-11-10 13:02:02",false,"---\nname: worktree\nuser-invocable: true\ndescription: \"Use when starting feature work that needs isolation from the current workspace, or when running multiple Claude sessions in parallel on different branches — creates and manages git worktrees. For fetching latest main into every existing worktree and branch across your sibling repos, use \u002Fclaudna:sync-branches instead.\"\n---\n\n# Git Worktree Manager\n\n> **Codex:** Read `..\u002F_shared\u002Fcodex-tools.md` before following this skill. Apply its tool, root and dispatch mappings throughout.\n\nCreate worktrees and orchestrate parallel subagents for concurrent feature work.\n\n## Instructions\n\n### Step 1: Determine repo layout\n\nRun `git rev-parse --show-toplevel` to get the repo root. Shell variables do NOT persist between Bash calls — hardcode absolute paths everywhere.\n\nConvention: worktrees live at `\u003Crepo-root>-worktrees\u002F\u003Cbranch>\u002F` (sibling to repo, never inside it).\n\n**Note:** Inside a worktree, `--show-toplevel` returns the worktree root. Use `git worktree list` for the main repo path.\n\n### Step 2: Show current state\n\nAlways run `git worktree list` first.\n\n### Step 3: Create worktrees\n\nUse `git worktree add` with **absolute paths**. `mkdir -p` the parent first. Use `-b \u003Cbranch>` for new branches; omit `-b` for existing ones.\n\n**Critical**: `cd` does not persist between Bash calls from the orchestrator. Always use absolute paths.\n\n### Step 3b: Permission boundaries\n\n**On Codex:** follow `..\u002F_shared\u002Fcodex-tools.md` for actual checkout permissions and ownership. The orchestrator may edit\u002Ftest\u002Fcommit in its authorized owned checkout. Use real exposed subagent and wait controls; Claude-only `run_in_background` and `subagent_type` labels below are not Codex controls. Reuse suitable app-managed worktrees and clean them up only through their owner controls. Do not remove them to enable branch deletion; omit branch deletion when needed. Existing merge authority persists. The legacy permission assumptions below apply to Claude Code.\n\nWorktrees are sibling directories — **outside the orchestrating session's project scope**. Every Bash\u002FRead\u002FEdit command targeting a worktree triggers a permission prompt.\n\nTo minimize friction:\n- **Delegate all work to subagents** — they operate in their own permission scope and handle testing, committing, pushing, and PR creation.\n- **Orchestrator should only:** create worktrees, launch subagents, monitor via TaskOutput, and merge\u002Fcleanup.\n- **Never run tests, edit files, or commit from the orchestrator in a worktree.**\n- **Tell the user upfront** how many worktrees and subagents you'll create.\n\n### Step 4: Orchestrate parallel subagents\n\n1. **Read plan\u002Ftask documents first** — include complete content in each subagent prompt (subagents have no conversation history).\n2. **Create one worktree per task** (Step 3).\n3. **Launch Task agents in parallel** — one Task tool call per agent, all in a single message.\n\n**CRITICAL — `subagent_type` MUST be `\"general-purpose\"`** (that is Claude Code's name for it; a host that calls the general-purpose type something else is still the dispatch path — use its name). This gives all tools (Bash, Read, Edit, Write, Grep, Glob). Any other type fails silently.\n\nSet `run_in_background: true` for concurrency. Build each prompt from `subagent-prompt-template.md`, substituting absolute paths and full task description.\n\n**No dispatch primitive at all** (`..\u002F_shared\u002Forchestration-guide.md` §14.1) → the parallelism this skill exists for is unavailable, so say so and change shape rather than faking it. Per §14.2 and §14.5: announce the inline path, then work **one worktree at a time** from the main session, following `subagent-prompt-template.md` yourself as the task description. Two consequences to state to the user up front, not discover later: the orchestrator is now doing exactly the work Step 3b reserves for subagents, so **every** Bash\u002FRead\u002FEdit against the sibling directory raises a permission prompt; and there is no concurrency, so the cost is the sum of the tasks. If the prompt volume is unacceptable, the honest answer is to skip worktrees and work serially on branches in place — not to keep the worktree ceremony without the isolation it was buying.\n\n### Step 5: Monitor and handle failures\n\nUse TaskOutput with `block=false` for non-blocking checks. Wait for all agents to complete. (On the inline path there is nothing to monitor — each task is finished before the next starts.)\n\n**If a subagent fails:** read its output, report to the user, ask whether to relaunch, fix manually, or skip. Do NOT silently retry.\n\n### Step 6: Merge and cleanup\n\nBefore merging, inspect `git worktree list` and the retained creation receipts. Remove only the exact worktrees this task created, after all assigned work has completed, ownership is verified and uncommitted work is preserved. Keep pre-existing, foreign and app-managed checkouts; use app owner controls for managed scratch checkouts when removal is authorized. Never select cleanup by a branch prefix or remove every listed worktree.\n\nIf a branch remains checked out in a preserved worktree, omit branch deletion instead of removing that checkout to make `--delete-branch` succeed. Use existing merge authorization, asking only when it is missing.\n\n1. For each authorized, clean, task-created scratch checkout, remove its recorded absolute path with `git worktree remove \u003Cpath>`; prune only stale metadata afterward.\n2. Merge eligible reviewed PRs sequentially using the authorized method; use `--delete-branch` only when that branch is owned and no preserved checkout needs it.\n3. Rebase or update remaining branches only within their assigned ownership and merge topology; verify the resulting diff before any authorized push.\n4. Return to the intended owned checkout. Preserve others' branches and working changes.\n\n## Reference files\n\n- **`bootstrap-commands.md`** — Venv setup, npm install, .env copy (included in subagent prompts)\n- **`subagent-prompt-template.md`** — Full prompt template for Task tool calls\n- **`common-pitfalls.md`** — Pitfall\u002Ffix table for worktree operations\n\n## Shell aliases (user reference)\n\n`wt-new \u003Cbranch>`, `wt-list`, `wt-rm \u003Cpath>`, `wt-set a \u003Cpath>` — available in user's terminal (from `~\u002F.zshrc`), but may not work inside the Bash tool. Prefer explicit `git worktree` commands.\n","# Git Worktree Manager\n\n> **Codex:** Read `..\u002F_shared\u002Fcodex-tools.md` before following this skill. Apply its tool, root and dispatch mappings throughout.\n\nCreate worktrees and orchestrate parallel subagents for concurrent feature work.\n\n## Instructions\n\n### Step 1: Determine repo layout\n\nRun `git rev-parse --show-toplevel` to get the repo root. Shell variables do NOT persist between Bash calls — hardcode absolute paths everywhere.\n\nConvention: worktrees live at `\u003Crepo-root>-worktrees\u002F\u003Cbranch>\u002F` (sibling to repo, never inside it).\n\n**Note:** Inside a worktree, `--show-toplevel` returns the worktree root. Use `git worktree list` for the main repo path.\n\n### Step 2: Show current state\n\nAlways run `git worktree list` first.\n\n### Step 3: Create worktrees\n\nUse `git worktree add` with **absolute paths**. `mkdir -p` the parent first. Use `-b \u003Cbranch>` for new branches; omit `-b` for existing ones.\n\n**Critical**: `cd` does not persist between Bash calls from the orchestrator. Always use absolute paths.\n\n### Step 3b: Permission boundaries\n\n**On Codex:** follow `..\u002F_shared\u002Fcodex-tools.md` for actual checkout permissions and ownership. The orchestrator may edit\u002Ftest\u002Fcommit in its authorized owned checkout. Use real exposed subagent and wait controls; Claude-only `run_in_background` and `subagent_type` labels below are not Codex controls. Reuse suitable app-managed worktrees and clean them up only through their owner controls. Do not remove them to enable branch deletion; omit branch deletion when needed. Existing merge authority persists. The legacy permission assumptions below apply to Claude Code.\n\nWorktrees are sibling directories — **outside the orchestrating session's project scope**. Every Bash\u002FRead\u002FEdit command targeting a worktree triggers a permission prompt.\n\nTo minimize friction:\n- **Delegate all work to subagents** — they operate in their own permission scope and handle testing, committing, pushing, and PR creation.\n- **Orchestrator should only:** create worktrees, launch subagents, monitor via TaskOutput, and merge\u002Fcleanup.\n- **Never run tests, edit files, or commit from the orchestrator in a worktree.**\n- **Tell the user upfront** how many worktrees and subagents you'll create.\n\n### Step 4: Orchestrate parallel subagents\n\n1. **Read plan\u002Ftask documents first** — include complete content in each subagent prompt (subagents have no conversation history).\n2. **Create one worktree per task** (Step 3).\n3. **Launch Task agents in parallel** — one Task tool call per agent, all in a single message.\n\n**CRITICAL — `subagent_type` MUST be `\"general-purpose\"`** (that is Claude Code's name for it; a host that calls the general-purpose type something else is still the dispatch path — use its name). This gives all tools (Bash, Read, Edit, Write, Grep, Glob). Any other type fails silently.\n\nSet `run_in_background: true` for concurrency. Build each prompt from `subagent-prompt-template.md`, substituting absolute paths and full task description.\n\n**No dispatch primitive at all** (`..\u002F_shared\u002Forchestration-guide.md` §14.1) → the parallelism this skill exists for is unavailable, so say so and change shape rather than faking it. Per §14.2 and §14.5: announce the inline path, then work **one worktree at a time** from the main session, following `subagent-prompt-template.md` yourself as the task description. Two consequences to state to the user up front, not discover later: the orchestrator is now doing exactly the work Step 3b reserves for subagents, so **every** Bash\u002FRead\u002FEdit against the sibling directory raises a permission prompt; and there is no concurrency, so the cost is the sum of the tasks. If the prompt volume is unacceptable, the honest answer is to skip worktrees and work serially on branches in place — not to keep the worktree ceremony without the isolation it was buying.\n\n### Step 5: Monitor and handle failures\n\nUse TaskOutput with `block=false` for non-blocking checks. Wait for all agents to complete. (On the inline path there is nothing to monitor — each task is finished before the next starts.)\n\n**If a subagent fails:** read its output, report to the user, ask whether to relaunch, fix manually, or skip. Do NOT silently retry.\n\n### Step 6: Merge and cleanup\n\nBefore merging, inspect `git worktree list` and the retained creation receipts. Remove only the exact worktrees this task created, after all assigned work has completed, ownership is verified and uncommitted work is preserved. Keep pre-existing, foreign and app-managed checkouts; use app owner controls for managed scratch checkouts when removal is authorized. Never select cleanup by a branch prefix or remove every listed worktree.\n\nIf a branch remains checked out in a preserved worktree, omit branch deletion instead of removing that checkout to make `--delete-branch` succeed. Use existing merge authorization, asking only when it is missing.\n\n1. For each authorized, clean, task-created scratch checkout, remove its recorded absolute path with `git worktree remove \u003Cpath>`; prune only stale metadata afterward.\n2. Merge eligible reviewed PRs sequentially using the authorized method; use `--delete-branch` only when that branch is owned and no preserved checkout needs it.\n3. Rebase or update remaining branches only within their assigned ownership and merge topology; verify the resulting diff before any authorized push.\n4. Return to the intended owned checkout. Preserve others' branches and working changes.\n\n## Reference files\n\n- **`bootstrap-commands.md`** — Venv setup, npm install, .env copy (included in subagent prompts)\n- **`subagent-prompt-template.md`** — Full prompt template for Task tool calls\n- **`common-pitfalls.md`** — Pitfall\u002Ffix table for worktree operations\n\n## Shell aliases (user reference)\n\n`wt-new \u003Cbranch>`, `wt-list`, `wt-rm \u003Cpath>`, `wt-set a \u003Cpath>` — available in user's terminal (from `~\u002F.zshrc`), but may not work inside the Bash tool. Prefer explicit `git worktree` commands.\n",{"name":5,"description":7,"user-invocable":42},true,"fc776f04574726e261087dbb521c1831bf0ea9d5","skills\u002Fworktree",1,"https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA","https:\u002F\u002Fgithub.com\u002FClaudfather","https:\u002F\u002Fcrog.gg","Rise of the machines","2026-11-15 02:10:52",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":42},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Claudfather\u002FclauDNA --skill worktree",{"tool":57,"command":58},"bunx","bunx skills add Claudfather\u002FclauDNA --skill worktree",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Claudfather\u002FclauDNA --skill worktree","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002FSKILL.md",[64,70,74],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"bootstrap-commands.md","REFERENCE","参考文档",974,"https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002Fbootstrap-commands.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"common-pitfalls.md",1607,"https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002Fcommon-pitfalls.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"subagent-prompt-template.md",1594,"https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002Fsubagent-prompt-template.md",[79,105,115,140,157,184],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":37},"01M71T1STJ99BE1C0JYHCQW0XN","example-review","Use when you want to review pull requests with detailed, actionable feedback on code quality, correctness, and maintainability.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid-package\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,32,96,97,98,99,100,101,102,103,104],"review","example","example review","actionable","pull requests","with","code","correctness","Bash","you","use","gh","gh pr","diff","view","pr","code quality","feedback","pull",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":37},"01M71T1RMCD30MAJC954JC7580","bad-skill","Too short","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Ffailing-package\u002FSKILL.md",[],[112,113,114],"bad skill","bad","short",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":37},"01M71T1HNVG1CZY8P904P6RB7P","weigh-development-paths","Use when at a development junction with multiple viable approaches — architecture choices, refactoring strategies, where to put new code, or which pattern to follow. Triggers on 'which approach', 'how should I', 'Option A vs B', or any point where the next step isn't obvious and the wrong choice creates rework.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fweigh-development-paths\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,92,32,132,133,134,135,136,137,138,139],"development","weigh development paths","paths","next","auto","strategies","how","refactoring","at","architecture","next step","new","choice","option","which","pattern","path","junction",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":37},"01M71T1ECV1T5E168GH70AY5B3","verify-completion","Use when about to claim work is complete, fixed, or passing -- requires running verification commands and confirming output before making any success claims.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fverify-completion\u002FSKILL.md",[],[147,148,149,150,28,151,152,32,96,153,154,155,23,156],"verify completion","verify","commands","about","output","claims","true","claim","complete","verification",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":168,"publishedAt":37},"01M71T1BC1HA7XQH0Q1H574FYS","vercel","Use for Vercel operations — deploy to production or preview (or roll back), view, filter, or debug deployment logs, or check project status (deployments, domains, env vars, config). Replaces \u002Fvercel-deploy, \u002Fvercel-logs, \u002Fvercel-status.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fvercel\u002FSKILL.md",[163],{"categoryNo":164,"categoryName":165,"taxonomyType":166,"taxonomyTypeDesc":167},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[159,100,169,170,20,171,172,173,174,175,176,177,96,178,179,153,180,181,182,183],"project status","back","preview","check","filter","env","logs","debug deployment","debug","inspection","deployments","domains","deployment","env vars","project",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":37},"01M71T17HHK85ZRAKV58ENCYT0","using-claudna","Use to verify clauDNA installation is healthy — hooks, skills and capture — or orient at conversation start and choose an installed skill for a task. For discovering third-party skills from the public ecosystem, use \u002Fclaudna:find-skills. Replaces \u002Fskill-health.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fusing-claudna\u002FSKILL.md",[],[191,192,193,194,130,195,148,196,197,198,199,92,96,200,153,201,202,20,203,204],"using claudna","healthy","start","installation","find","skill-health","codex","health","task","orient","hooks","choose","ecosystem","conversation"]