Creates isolated git worktrees for parallel development. Use when starting feature work needing isolation or working on multiple branches simultaneously. Not for simple branch switching or basic git operations.
From dev-toolsnpx claudepluginhub alexei-led/cc-thingz --plugin dev-toolsThis skill is limited to using the following tools:
WORKFLOW.mdscripts/setup-worktree.shSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Main repo stays on main/master — never edit directly. Every branch gets its own worktree (a sibling folder). Delete the worktree after the branch merges.
Think of a worktree as a disposable branch folder, not a long-lived parallel environment.
Exception: Trivial one-liner commits on a solo project can go directly on main to avoid ceremony overhead.
# 1. Create worktree for new work (from main repo)
git worktree add ../myproject-fix-cron -b fix-cron
# 2. Work there (open editor/Claude Code in that folder)
cd ../myproject-fix-cron
# 3. After PR is merged — clean up from main repo
cd ../myproject
git worktree remove ../myproject-fix-cron
git branch -d fix-cron
git pull
Worktrees are sibling directories (not nested inside the repo):
~/projects/
├── myproject/ # main worktree — always on main, always clean
├── myproject-fix-cron/ # worktree for fix-cron branch
└── myproject-add-model/ # worktree for add-model branch
Why siblings: no .gitignore pollution, clean git status, independent build artifacts.
<project>-<branch-slug> — slashes become dashes, self-documenting.
| Branch | Worktree Directory |
|---|---|
fix-cron | ../myproject-fix-cron |
feature/auth | ../myproject-feature-auth |
bugfix/issue-123 | ../myproject-bugfix-123 |