From dev-environment
Sets up Git worktrees for running multiple parallel Claude sessions on the same repo without conflicts. Use for review, refactor, test, and docs workflows with isolated directories.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-environment:worktree-masteryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run 3-5 parallel Claude sessions on same repo. "The single biggest productivity unlock." - Boris Cherny
Run 3-5 parallel Claude sessions on same repo. "The single biggest productivity unlock." - Boris Cherny
Git worktrees = independent working directories sharing one repo. Each Claude session gets its own worktree. No branch conflicts, no stash juggling.
# From repo root, create worktrees
git worktree add ../myproject-review main
git worktree add ../myproject-refactor main
git worktree add ../myproject-test main
# List active worktrees
git worktree list
myproject/ # Main worktree (original clone)
myproject-review/ # Code review session
myproject-refactor/ # Refactoring session
myproject-test/ # Test writing session
myproject-docs/ # Documentation session
| Worktree | Use Case |
|---|---|
| main | Primary development, commits |
| main-review | PR reviews, code reading |
| main-refactor | Large refactors, experiments |
| main-test | Test writing, debugging |
# In worktree needing updates
git fetch origin
git rebase origin/main
# Or if working on branches
git checkout feature-branch
git pull
npx claudepluginhub spences10/claude-code-toolkit --plugin dev-environmentCreates and manages git worktrees for parallel coding sessions while waiting on tests, builds, CI, or during code review and exploration.
Creates, lists, and cleans up Git worktrees for parallel Claude Code sessions on separate branches, enabling conflict-free multi-feature development.
Creates a git worktree for isolated parallel development — new branch in a separate directory with project setup and test baseline. Enables multiple Claude Code sessions on different tasks simultaneously.