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 melodic-software Verified Orgv0.21.28MITIn 1 marketplace
Clears tool caches, build output and stale git metadata after a dry run, and resets a repo to a fresh-pull state behind explicit confirmation. A session-scoped guard blocks destructive commands but needs Node.js and shfmt installed to be enforced.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
repo-cleanup, git-prune, build-artifacts, cache-cleanup, working-tree-reset, dry-run, multi-repo, maintenance ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Clean destructive-command guardclean_destructive_guard_enabled
Session-scoped PreToolUse guard that blocks destructive Bash and PowerShell commands while the clean skill is active. On by default.
booleandefault true
A Claude Code plugin that returns a repository toward a known-good state.
/repo-hygiene:clean is an action-router: it inventories reclaimable space,
removes tool caches and build artifacts, prunes stale git metadata, and, as a
deliberately-gated destructive tier, realigns the working tree to a fresh-pull
state. Every mutating path is dry-run-first, and the destructive tiers are
gated behind explicit confirmation plus a session-scoped destructive-command
guard.
/repo-hygiene:clean <action> routes every action below. Bare invocation infers
intent from the conversation, or presents a menu and falls back to the safe scan.
/repo-hygiene:setup is the separate, read-only prerequisite check. It verifies
git, node, the optional ghq, and the effective destructive-guard toggle, and cleans
nothing.
| Action | What it does | Risk |
|---|---|---|
scan | Read-only inventory of reclaimable caches, build output, and stale git refs | Safe |
caches | Remove tool / linter caches (.pytest_cache, .ruff_cache, __pycache__, .turbo, .vs, …) | Low |
build | Remove build artifacts (bin/obj/build/dist/out/target/TestResults, *.binlog), includes caches | Low |
git | Prune stale worktree/remote metadata and gc; audit branches (merged / PR-merged / stale) and delete only on per-branch opt-in | Low |
tree | Reset the working tree like a fresh pull. git reset --hard + git clean -fdx | Destructive |
tree-batch | Run tree across many repos (ghq list, a glob, or an explicit list) behind one confirmation gate, with a separator-agnostic skip list and a dirty-by-default guard | Destructive |
all | Sweep caches + build + git. never the tree reset | Medium |
Tiers are cumulative (build includes caches; all is build plus git), and
neither tree nor tree-batch is composed into all. One mistaken sweep cannot
trigger a reset --hard.
tree-batch)tree-batch is the supported way to reset a fleet of repos to a fresh-pull state
without hand-rolling a loop. It skips any repo with uncommitted/untracked changes
or unpushed commits by default (opt in with --include-dirty). Its skip
list is matched separator-agnostically, so a \-path skip entry reliably protects
a repo enumerated with / paths, the failure that lost an uncommitted edit in an
ad-hoc loop. A skip entry that matches nothing is reported, never silently ignored.
# Dry-run the whole ghq tree, skipping one repo (the agent shows the plan first):
ghq list -p | /repo-hygiene:clean tree-batch --repos-from - --skip melodic-software/standards
The branch and stash audits take the same repo selection as the batch tiers
(--repo, --repos-from, --skip, --skip-from) and print one Repo: <path>
block per repository. Linked worktrees of one repository are audited once, a
failing repo is reported without stopping the rest, and each repo writes its own
branch-tip capture (--capture-file is refused with more than one repo).
The audits delete no branch and change no working-tree file. Besides the
capture, the branch audit's landed-proof squash check writes one unreferenced
loose object per branch it reaches, which git gc prunes.
Deletion is not batched: run the delete from inside the audited repo, with that
repo's TipCapture: path. A branch audit across a fleet of repositories is
/repo-fleet-hygiene:audit. Per repository, add --read-only to write no capture
and no object (the squash check runs in a throwaway object directory), or --remote
to audit the live origin branches against merged PRs (a tip that differs from its
merged PR's head is MERGED-DRIFT).
ghq list -p | bash ${CLAUDE_PLUGIN_ROOT}/skills/clean/scripts/git-branch-audit.sh --repos-from -
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin repo-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