Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By flyoverheadv1.0.0MITIn 1 marketplace
User-started triage of local git branches and worktrees: sorts each into delete, needs review or keep from git state and merge or squash commit messages (gh optional), tries to disprove every delete candidate, and removes nothing until the user picks branches at a first gate and approves the exact commands at a second. Never touches remotes or pull requests.
Claude hands work to one, or you mention it with @.
Finds the local branches and worktrees whose work already lives elsewhere, shows the proof for
each, and deletes them only after you have picked them and approved the exact commands. It works
in repositories with no remote at all. Squash merges are recognised from the default branch's
commit messages and a content check, and gh is an optional extra source.
/plugin install git-cleanup@devops
The skill never starts on its own. Run it by name:
/git-cleanup:git-cleanup # repository in the current directory
/git-cleanup:git-cleanup ~/src/portal # another repository
Anything typed after the path is read as a note. It never replaces a confirmation.
| Section | Meaning | Command offered |
|---|---|---|
Delete with -d | reachable from the default branch | git branch -d, after an ancestry check |
Delete with -D | squash-merged (PR, merge request or squash commit named) or superseded by a newer branch | git branch -D |
| Needs review | upstream gone and no proof, or a claim that failed refutation | none |
| Keep | protected names, unpushed commits, in sync with the remote, local-only work | none |
| Worktrees | stale (clean, branch being deleted) or dirty, with the changed files | git worktree remove |
| Unanalyzed | anything the run did not get to | none |
Protected and never offered: the default branch, the current branch, main, master, trunk,
develop, dev, devel, integration, staging, stage, production, prod, preprod,
qa, uat, next, canary, stable, and release/, release-, hotfix/, support/,
maint/, maintenance/ prefixes.
--merged, worktrees and their
status, the recent default-branch messages. It runs git fetch --prune only when a remote
exists.gh pr list --state merged --head <branch> if gh works for a GitHub remote, then
compares the branch's files with the cited commit and checks supersession by ancestry or
cherry. Branches sharing two leading name segments are examined together. For more than
eight such branches it hands batches to the branch-investigator agent.git branch -d/-D and git worktree remove are not pre-allowed, so
each also raises a permission prompt.git branch -d refuse my squash-merged branch?" is a question; ask it plainly and
you get an answer, not a cleanup run.python3 -m pytest git-cleanup/tests -q
claude plugin eval ./git-cleanup --trust-plugin --scaffold --no-publish --allow-tools Bash
MIT
npx claudepluginhub flyoverhead/devops-plugins --plugin git-cleanupBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground