git-worktrees
SKILL.md
Git Worktrees
Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously.
When to Use
- MUST: When implementing features that need isolation
- MUST: Before executing multi-task implementation plans
- SHOULD: When parallel development on different features needed
- MAY: For experimental work that might be discarded
Directory Selection Priority
1. Check Existing Directories
ls -d .worktrees 2>/dev/null # Preferred (hidden)
ls -d worktrees 2>/dev/null # Alternative