← ClaudeAtlas

git-worktree-managerlisted

Manage git worktrees: create, list, remove, prune, and audit worktree state. Use when setting up parallel development environments, isolating branches for review, or managing multi-branch workflows.
Git-Fg/taches-principled · ★ 0 · Code & Development · score 73
Install: claude install-skill Git-Fg/taches-principled
# git-worktree-manager Create, audit, and remove git worktrees for parallel development. Run the commands directly via the `Bash` tool — this skill is a reference for the exact git invocations, not a subagent. ## CONTRAST - NOT for: commit / push / branch / merge — use the `git` skill - NOT for: PR review of changes in a worktree — use `git-pr-reviewer` - NOT for: persistent session isolation — worktrees are git-level, not session-level - This skill is purely for git-worktree plumbing; release and review are separate ## Available operations ### Create a new worktree ```bash git worktree add -b <branch> <path> <start-point> ``` Before running, verify: - The target path does not already exist - The branch name is not already in use (`git branch --list <branch>`) - The start-point is a valid commit / branch / tag ### List all worktrees ```bash git worktree list --porcelain ``` The `--porcelain` flag gives parseable output (one worktree per record, with branch + commit + path). Use this for any state-reading code. ### Remove a worktree ```bash git worktree remove <path> # or, if the worktree has uncommitted changes: git worktree remove --force <path> ``` Before removing, check for uncommitted changes: ```bash git -C <path> status --porcelain # If non-empty, warn before forcing removal. ``` ### Prune stale references ```bash git worktree prune ``` Use after a worktree's directory is deleted out-of-band (manual `rm`, crash, etc.) to clean up `.git/worktrees/`. ###