git-post-merge-cleanup

Installation
SKILL.md

Git Post-Merge Cleanup

After a batch of PRs land, the local repo accumulates debris: fully merged branches, tracking refs whose remote was deleted by GitHub, and worktrees that still show "modified" files even though those changes are already on main. This skill cleans all of it in one pass — scan, classify, present a plan, confirm, execute. The scan is cheap; always do both classes.

Flags

  • --dry-run — scan and present the plan, but do not delete anything.
  • --yes — skip the confirmation prompt. Still presents the plan first.

Default (no flags): scan, present plan, wait for confirmation.

Step 1 — Refresh remote state

Installs
1
GitHub Stars
11
First Seen
Sep 4, 2026