Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Removes local git branches whose remote tracking branch is gone, safely removing clean linked worktrees first.
64% 82%+18 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 14 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Remove local git branches whose remote tracking branch has been deleted, cleaning attached worktrees safely first.
Prune remote references
git fetch --prune.Inspect branches and worktrees
git branch -vv to find branches marked [gone].git worktree list to check whether any [gone] branch is checked out in a linked worktree (and check git status --short inside each candidate worktree so dirty work is never lost).Remove clean worktrees first
[gone] worktrees with git worktree remove <path> before deleting the branch.Delete gone branches
[gone] branches with git branch -d <branch>. Confirm with the user before force-deleting unmerged branches (-D), noting squash-merged PRs when relevant.Report clearly
[gone] branches exist, report that the repo is already clean.Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.