clean-branches
Installation
SKILL.md
Clean Branches - Delete Merged Local Branches
Clean up local branches by checking their GitHub PR status and deleting those that have been merged.
Steps
- Fetch and list branches — Fetch the latest remote state, then get all
local branches except
master:
git fetch origin master
git branch --format='%(refname:short)' | grep -v '^master$'
Show the list to the user. If no branches exist besides master, report that
and stop.
- Check merge status for each branch — Use multiple methods to detect
Related skills
More from brave/brave-core
pr
Create a pull request for the current branch using `gh`.
1review
Review code for quality, root cause analysis, and fix confidence. Supports PR
1prs-reviewed
Get PRs a user reviewed on brave/brave-core. Shows PR number, title, author,
1fix-bp-docs
Audit and fix best practices docs for stale references, duplicates, obsolete
1preflight
Run all preflight checks (format, gn_check, presubmit, build, tests) to make
1review-prs
Review PRs in the configured PR repository for best practices violations.
1