| name | make-worktree |
| description | Creates isolated git worktrees for this repository. Use when the user asks to make a worktree, create a branch checkout, isolate changes, copy .env, or link .settings into a worktree. |
Make Worktree
Instructions
Use .claude/skills/make-worktree/scripts/make-worktree from the repository root when creating a new isolated worktree.
.claude/skills/make-worktree/scripts/make-worktree <name> [base-ref]
The script:
- creates
.claude/worktrees/<name> from [base-ref] or HEAD;
- creates a branch named
worktree/<name> unless BRANCH_NAME is set;
- copies the root
.env into the worktree when present;
- symlinks the root
.settings into the worktree when present;
- prints shell assignments for the created worktree path and branch.
After the script succeeds, move the agent to the new worktree root when the user wants the conversation to continue there.
Examples
.claude/skills/make-worktree/scripts/make-worktree protocol-cleanup
.claude/skills/make-worktree/scripts/make-worktree protocol-cleanup origin/main
BRANCH_NAME=tyler/protocol-cleanup .claude/skills/make-worktree/scripts/make-worktree protocol-cleanup origin/main