Creates isolated Git worktrees for experimental or risky changes, isolating work from the current branch. Performs safety checks, project setup, and baseline tests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-optimized:using-git-worktreesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create an isolated branch workspace with safe defaults.
Create an isolated branch workspace with safe defaults.
Announce: I'm using the using-git-worktrees skill to set up an isolated workspace.
.worktrees/worktrees/CLAUDE.md)For project-local worktree directories, verify ignore rules before creating:
git check-ignore -q .worktrees || git check-ignore -q worktrees
If not ignored, add ignore entry before proceeding.
git worktree add <path> -b <branch>
cd <path>
cd in step 2 does not persist across separate shell calls. Use absolute paths or cd <path> && <command> in every subsequent Bash call rather than assuming the working directory carried over.If baseline tests fail, report failures and ask whether to continue.
Report:
Use with:
writing-planssubagent-driven-developmentexecuting-plansCleanup is handled by finishing-a-development-branch.
npx claudepluginhub repozy/superpowers-optimizedCreates isolated git worktrees for feature branches needing workspace isolation, with smart directory selection, .gitignore safety checks, auto project setup, and baseline verification.
Creates isolated git worktrees with smart directory selection, safety checks, and automatic project setup for feature work.
Creates isolated Git worktrees for feature branches with directory selection, .gitignore safety verification, auto project setup for Node/Rust/Python/Go, and baseline tests.