worktree-mastery
FreeNo executable scriptsNot checkedGit worktree patterns for parallel Claude sessions. Run multiple Claude instances on same repo without conflicts.
by spences10★ 37 GitHub starsAbout this skill
Worktree Mastery
Run 3-5 parallel Claude sessions on same repo. "The single biggest productivity unlock." - Boris Cherny
Core Concept
Git worktrees = independent working directories sharing one repo. Each Claude session gets its own worktree. No branch conflicts, no stash juggling.
Quick Setup
# 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
Naming Convention
myproject/ # Main worktree (original clone)
myproject-review/ # Code review session
myproject-refactor/ # Refactoring session
myproject-test/ # Test writing session
myproject-docs/ # Documentation session
Session Strategy
| Worktree | Use Case |
|---|---|
| main | Primary development, commits |
| main-review | PR reviews, code reading |
| main-refactor | Large refactors, experiments |
| main-test | Test writing, debugging |
Workflow
- Create worktrees before starting parallel work
- Start Claude in each worktree directory
- Work independently - each session has isolated state
- Sync via git - commit in one, pull in another
- Cleanup when done
Sync Between Sessions
# In worktree needing updates
git fetch origin
git rebase origin/main
# Or if working on branches
git checkout feature-branch
git pull
References
- worktree-commands.md - Full command reference
- session-strategies.md - Multi-session patterns
- cleanup.md - Removal and maintenance
Install worktree-mastery in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the worktree-mastery skill do?
Git worktree patterns for parallel Claude sessions. Run multiple Claude instances on same repo without conflicts.
How do I install the worktree-mastery skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the worktree-mastery skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic