git-clean-gone-branches

Installation
SKILL.md

Clean Gone Branches

Delete local branches whose remote tracking branch has been deleted, including any associated worktrees.

Workflow

Step 1: Discover gone branches

Run the discovery script to fetch the latest remote state and identify gone branches:

bash scripts/clean-gone

scripts/clean-gone

The script runs git fetch --prune first, then parses git branch -vv for branches marked : gone].

If the script outputs __NONE__, report that no stale branches were found and stop.

Related skills

More from everyinc/compound-engineering-plugin

Installs
230
GitHub Stars
16.7K
First Seen
Mar 26, 2026