What problem does it solve?
This skill helps developers isolate experimental work by creating independent git worktrees, so changes to new features don’t affect the main working directory.
Core Features & Use Cases
- Create worktrees: spawn dedicated worktrees under ~/.claude-worktrees/<repo>/<branch> for parallel development.
- Automatic base handling: derives the default branch from origin HEAD when BASE_BRANCH is not provided.
- Include file synchronization: copies listed files from the source repo to the new worktree using .worktreeinclude.
- Management commands: remove a worktree and clean up empty parent directories to keep the structure tidy.
Quick Start
BRANCH_NAME="feature/my-feature" ./scripts/create-worktree.sh
BRANCH_NAME="eng-123/fix-bug" TICKET_URL="https://linear.app/team/issue/ENG-123/fix-bug" ./scripts/create-worktree.sh
BRANCH_NAME="feature/x" BASE_BRANCH="develop" ./scripts/create-worktree.sh