home/categories/system-admin/everyinc-compound-engineering-plugin-plugins-compound-engineering-skills-git-clean-gone-branches-skill-md
system-admintools
git-clean-gone-branches
Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.
maintainer
EveryInc
Updated 3/27/2026
Stars
13965
Forks
1044
quick start
Installation and usage
Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.
Installation
$ install --globalskills.sh
Usage
Once installed, you can use this skill by running the following command in your terminal:
skills use git-clean-gone-branches