# git-worktrees Manage git worktrees to enable multi-branch parallel development across isolated directories. ## What it does This skill handles worktree operations within the git workflow suite. It creates, lists, locks/unlocks, moves, removes, prunes, and repairs worktrees — letting an agent work on multiple branches simultaneously without stashing. It returns structured results (paths, branches, lock status) suitable for agent composition. ## Usage ``` /git-worktrees ``` Describe your worktree task: create a worktree for a branch, list existing worktrees, lock one for removable media, move, remove, prune, or repair. The skill will handle the operation with appropriate safety checks and return results. ## Files | File | Purpose | |------|---------| | `SKILL.md` | Skill instructions for agents | | `references/README.md` | Describes the references directory contents | | `references/worktrees.md` | Full `add` flag table, sparse-checkout, removable-media locking, remote disambiguation, configuration | | `references/sources.md` | Research sources and provenance |