cleanup
Installation
SKILL.md
Cleanup
Remove what shipping left behind. Nothing else.
Read shared/git.md first — in particular that a rebase or squash merge rewrites commits, so git branch --merged does not list a branch that landed. Every deletion here is verified against the forge, never against git alone.
Default to --dry-run reasoning even without the flag: list everything, then delete. With no scope flag, all four passes run. With any of --branches, --remote, --worktrees, --residue, only those. --no-remote drops the remote pass and keeps the rest — for a fork you cannot push to, or when you only want the local side tidied.
0. Inventory, before deleting anything
git fetch --prune
git branch -vv
git worktree list
git status --porcelain
git ls-remote --heads origin