branch-cleanup

Installation
SKILL.md

🤖 Auto-generated by weekly-pattern-learner · dependabot-triage was added to merge dependency PRs in bulk but leaves stale remote branches behind; no skill follows up to prune them

Branch Cleanup

Remove stale remote and local branches safely after a merge wave. Defaults to dry-run so you see exactly what will be deleted before anything is removed.

Inputs

  • Remote (optional, default: origin)
  • Base branch (optional, default: main, detect from gh repo view)
  • --dry-run (optional, default: on): preview deletions without executing them
  • --execute: actually delete branches (requires explicit flag, safety default)
  • --include-local: also clean up merged local branches (off by default)

Step 1: Fetch and prune remote tracking references

Always start here. This removes local tracking refs for remote branches that are already gone, without touching anything else:

Installs
2
GitHub Stars
26
First Seen
Oct 29, 2026