What problem does it solve?
This skill consolidates Git worktree operations into a single, lightweight manager, reducing manual steps and preventing misconfigurations when creating parallel development environments.
Core Features & Use Cases
- Create new worktrees from the main branch and track them with a named directory
- List, switch, and clean up worktrees to keep a clean workspace
- Automatically copy environment files from the main repository into each new worktree to preserve local config
- Use during code reviews, feature development, and multi-feature workflows to keep work in isolation
Quick Start
Run the worktree manager to create a new worktree, list existing ones, switch between them, or cleanup inactive ones.
Examples:
- Create: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh create feature-login
- List: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh list
- Switch: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh switch feature-login
- Cleanup: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh cleanup