clean-branches

Installation
SKILL.md

Clean Git Branches

Safely remove merged and stale git branches with confirmation.

Process

If $ARGUMENTS is provided, treat it as a glob pattern to filter branch candidates (e.g., feature/*) and pass it to the candidate script in Step 1.

1. Fetch latest state

git fetch --all --prune

If fetch fails (no remotes configured), note remote data is unavailable and continue with local analysis only.

2. Identify candidates

Run the candidate detection script, passing the optional pattern filter:

bash ${CLAUDE_PLUGIN_ROOT}/skills/clean-branches/scripts/find-candidates.sh "$PATTERN"
Related skills
Installs
3
GitHub Stars
249
First Seen
Mar 10, 2026