What problem does it solve?
Manually cleaning up merged Git branches carries high risk of accidentally deleting active work, unmerged feature branches, or branches tied to open pull requests, which can lead to lost code and broken team workflows.
Core Features & Use Cases
- Safe Merged Branch Detection: Automatically identifies only branches fully merged into the configured base branch (main/master) to avoid targeting active work.
- Strict Safety Guardrails: Blocks deletion of the base branch, unmerged branches, and branches with open pull requests, with fallback rules when GitHub CLI is unavailable to verify PR state.
- Targeted or Bulk Cleanup: Supports cleaning up a single specified branch or all eligible merged branches in the repository.
- Use Case: After merging a set of feature branches for a quarterly release, use this skill to automatically purge all merged local and remote branches without risking your ongoing development work or open PRs.
Quick Start
Use the cleanup-merged-branches skill to safely delete all merged feature branches from your local repository and the origin remote.