What problem does it solve? Local repositories accumulate stale branches and worktrees after PRs merge, making it hard to tell which branches are safe to delete and which contain unpushed work. This Skill analyzes every branch and worktree, categorizes them by merge status, and deletes only what the user explicitly confirms. ## Core Features & Use Cases - Merge Status Categorization: Classifies branches as merged, squash-merged, superseded, remote-gone, unpushed, or synced, choosing git branch -d or -D accordingly. - Related Branch Grouping: Groups branches by name 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 exact deletion commands for final confirmation, and blocks dirty worktree removal. - Use Case: After months of feature work, run the cleanup to discover that four feature/api- branches were all merged via PRs #29, #45, and #67, then delete them in one confirmed batch. ## Quick Start Ask the assistant to run /git-cleanup to analyze and safely clean up your local git branches and worktrees.