What problem does it solve? Local repositories accumulate stale branches and worktrees over time, and deleting them blindly risks losing unpushed or unmerged work. This Skill performs a thorough, evidence-based analysis of every branch and worktree, then requires explicit user confirmation before any deletion. ## Core Features & Use Cases - Branch Categorization: Classifies branches as merged, squash-merged, superseded, remote-gone, unpushed, or synced, using commit history and PR merge evidence rather than name matching. - Related Branch Grouping: Groups branches sharing a prefix (e.g., feature/api-*) and traces which PRs incorporated each iteration before recommending deletion. - Two-Gate Safety Workflow: Presents a full analysis first, then shows the exact git commands (with correct -d or -D flags) for final confirmation before executing. - Use Case: After months of feature work, a developer has 30 local branches and several worktrees. The Skill identifies which were merged via PRs, which contain unpushed commits, and safely deletes only the confirmed stale ones. ## Quick Start Run /git-cleanup to analyze my local branches and worktrees and help me safely delete the ones whose work is already merged.