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 sarahcallmesmaddsv0.5.1MITIn 1 marketplace
Tells you which branches are proved safe to delete, keeps project worktrees in one configured folder, and cleans up finished worktrees. It removes only the branches and worktrees you approve, re-checks each one first, and keeps anything it cannot prove safe.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Safe branch cleanup for branches proved safe to delete, plus one folder for your project worktrees and a careful way to clean them up.
Branches pile up. Every so often you notice, feel vaguely bad about it, and either delete a pile of them or none of them. Both are bad options, because the pile is two completely different things mixed together.
There are two facts about a branch and they have nothing to do with each other.
How old it is. This is why you noticed it.
Whether there is positive evidence that it is safe to delete. That evidence can come from commit reachability or from a separate content or merge check.
A branch untouched since March whose commits are reachable from the default branch is only a label over reachable history. A branch with three commits not reachable from the default branch is held unless separate evidence proves its content is already represented there. The count alone does not prove the work exists nowhere else.
Sorting by age mixes those together. That is how people lose work while tidying up. So this never shows you one list. It shows you two, and it will not move anything from the second list to the first.
/stale-branches this repository
/stale-branches owner/name a repository on GitHub
/stale-branches all every repository you own
/merge-strategy recommend how to merge the current change
/git-hygiene:worktree-hygiene status inspect linked worktrees
/git-hygiene:worktree-hygiene create create an isolated checkout
/git-hygiene:worktree-hygiene activate lock an existing checkout as active work
/git-hygiene:worktree-hygiene relocate move a checkout into the worktree folder
/git-hygiene:worktree-hygiene finish unlock a worktree once its work is done
/git-hygiene:worktree-hygiene cleanup remove approved finished worktrees
/git-hygiene:setup choose the project and worktree folders
You get something like this:
you/web-app: 3 branches besides the default one.
Safe to delete (1) — the default branch already has this work:
deploy/staging-config (105 days old, merged in #51)
Keep (2), not proved safe to delete:
fix/checkout-redirect (103 days old) — it has an open pull request, 1 commit not reachable from the default branch; that does not prove their work is absent from it
spike/pricing-page (99 days old) — 3 commits not reachable from the default branch; that does not prove their work is absent from it
Delete the 1 safe one? (all / a list of names / none)
Every kept branch says why it was kept. There is no unexplained row.
/merge-strategy is the read-only companion for a branch or pull request. It
reads the commit count and shape, review/draft state, and whether the history is
public. It asks whether anyone else has based work on the branch instead of
pretending a pushed branch is private.
It recommends squash-and-merge for private fixup-heavy work, rebase-and-merge for private branches with a small number of meaningful commits, and a merge commit for shared/public history or meaningful merge topology. It says “not ready” when the change is a draft, uncommitted, or cannot be compared safely. It never merges, rebases, pushes, or deletes.
worktree-hygiene uses Git's registered worktree list as its source of truth.
It does not infer ownership from a directory name. One deterministic script
classifies every linked checkout in this order:
Only merged reaches ordinary removal. For a GitHub repository the open pull
request check needs the gh CLI; if it cannot read the list, the worktree is
unknown and kept. Only the origin remote is looked up. The script checks the
exact path again immediately before git worktree remove runs, and re-reads that
one worktree's branch, commit, lock and status just before Git acts, so a change
made by another session in between stops the removal or move. It refuses the primary checkout,
the caller's current directory, a changed registration, a lock, any working-tree
change, ignored local data, an open review, unique work, and incomplete evidence. It never uses
--force, never removes more than one approved path at a time, and never deletes
the branch.
Creating a worktree uses the folder set by /git-hygiene:setup, the same one
the guard below enforces:
<worktreeRoot>/<repo>/<task>/
npx claudepluginhub sarahcallmesmadds/infra-plugins --plugin git-hygieneBuilt 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