Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Worktree Mastery

  • 4 installs
  • 35 repo stars
  • Updated April 29, 2026
  • spences10/claude-code-toolkit

Helps with ai & agent building tasks.

About

worktree-mastery is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • worktree-mastery
  • AI & Agent Building
  • AI-coding skill

Worktree Mastery by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #13,348 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/claude-code-toolkit --skill worktree-mastery

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars35
Last updatedApril 29, 2026
Repositoryspences10/claude-code-toolkit

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

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

WorktreeUse Case
mainPrimary development, commits
main-reviewPR reviews, code reading
main-refactorLarge refactors, experiments
main-testTest 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

  • worktree-commands.md - Full command reference
  • session-strategies.md - Multi-session patterns
  • cleanup.md - Removal and maintenance

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.