delete-merged-branches - Delete Merged Git Branches Safely
Safely delete local and remote branches merged into a specified base branch using ancestry and GitHub PR data
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- fetch remote branches
- identify base branch
- list merged PRs
- list closed PRs
- compare branch tips
- delete local branch
- delete remote branch
- show deletion list
- run dry mode
Inputs
- Git repository
- base branch name
- GitHub token
Outputs
- deleted local branches
- deleted remote branches
- deletion report
Requirements
- Git environment
- GitHub CLI installed
- GitHub authentication
- origin remote configured
