Safe Cleanup

Use to safely clean up stale LOCAL feature branches left behind by the TDD harness once their slices have shipped — both merged branches and abandoned (closed-PR) branches. Phase 5 maintenance and the cleanup companion to safe-pr. It reports first, confirms before deleting, never force-deletes unmerged work, never touches the remote, and never deletes main, the current branch, or any branch with an open PR. Trigger on 'clean up merged branches', 'delete stale feature branches', 'tidy up branches', 'prune local branches', or after a PR merges. Records every deleted branch's SHA so anything is recoverable.

brainqub3 b7da155 2 files · 19.2 KB Updated

File contents

brainqub3/red-green-refactor/tree/main/.agents/skills/safe-cleanup commit b7da155705

Frequently asked questions

npx skillmds@latest add brainqub3/safe-cleanup