Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

worktree-mastery

FreeNo executable scriptsNot checked

Git worktree patterns for parallel Claude sessions. Run multiple Claude instances on same repo without conflicts.

spences10by spences10★ 37 GitHub stars

About 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

  1. Create worktrees before starting parallel work
  2. Start Claude in each worktree directory
  3. Work independently - each session has isolated state
  4. Sync via git - commit in one, pull in another
  5. 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

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/cleanup.mdreferences/session-strategies.mdreferences/worktree-commands.md

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

Compare worktree-mastery with