What problem does it solve?
Managing Git worktrees can be error-prone and manual, especially when reviewing PRs or developing features in parallel. This skill provides a unified interface to create, list, switch, and cleanup worktrees while keeping environment consistency.
Core Features & Use Cases
- Create worktrees from a main branch with predictable naming
- List existing worktrees and their current status
- Switch between worktrees and quickly access them
- Clean up inactive worktrees with safety confirmations
- Auto-manage .gitignore and copy environment files (.env*) to new worktrees
- Interactive prompts to prevent accidental destructive actions
Quick Start
Use the git-worktree manager to:
- Create a new worktree: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh create feature-login
- List worktrees: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh list
- Switch to a worktree: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh switch feature-login
- Copy env files to an existing worktree: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh copy-env feature-login
- Cleanup inactive worktrees: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh cleanup