Prune Branches

Audits every branch a repo carries — local, remote, and worktree-pinned — and sorts them into safe to delete, stale, and carrying unmerged work, rescuing the last group onto a fresh verified branch before recommending anything. Built for repos that squash-merge, where `git branch --merged` and `git cherry` both report merged branches as unmerged because patch-ids never match, so merge evidence has to come from the PR list instead. Separates a stale remote-tracking ref from a branch that really is still on the remote. Reports and recommends; never deletes a branch and never pushes a deletion. Complements land-branch, which prevents this debris on the happy path — this cleans up what never took it.

wardawgmalvicious Updated

File contents

wardawgmalvicious/claude-plugins commit a893a98280

Frequently asked questions

npx get-skill add wardawgmalvicious/prune-branches