@tank/git-worktrees
Installation
SKILL.md
Git Worktrees
Manage the full worktree lifecycle: create → work → resolve → clean up.
Core Philosophy
- Worktrees are temporary. Create for a task, remove when done. Lingering worktrees waste disk and create confusion.
- One branch, one worktree. Git enforces this — a branch can only be checked out in one worktree at a time.
- Always clean up. After merging or closing a PR, ask the user to remove the worktree and delete the branch. Never leave stale worktrees behind.
- Fetch before creating. Run
git fetch originbeforegit worktree addto ensure you have current remote state. - Dependencies are per-worktree. Each worktree needs its own
npm install,pip install, etc. — build artifacts are not shared.