Worktree
Create a sibling worktree on a fresh branch, then continue the user's task inside it.
Heavy lifting → scripts/create.sh (handles uniqueness, error checks).
When to apply
Start a task in an isolated worktree. Do not apply for removal — that is /worktree-done.
Steps
- Derive a kebab-case branch name (≤ 4 words) from the user's task description.
If no description was given (bare
/worktree), ask one short question first. - Run from the repo root:
The script's stdout is the new worktree path (stderr is progress). If it exits non-zero, stop and surface the error.bash <skill-dir>/scripts/create.sh <branch-name> cdinto that path (separate Bash call — child shells can't change parent cwd).- Confirm in one line:
Worktree ready: <path> (branch: <branch>) - Begin the user's task.