cleanup-merged-branches
Installation
SKILL.md
Cleanup Merged Branches
This skill safely deletes git branches that have been merged into the main branch.
Procedure
1. Fetch and Prune Remote
git fetch --prune
2. List Merged Branches (Preview)
# Local branches merged into main (excluding main itself)
git branch --merged main | grep -v "main" | grep -v "^\*"
# Remote branches merged into main
git branch -r --merged main | grep -v "main" | grep -v "HEAD"