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 kattakathv1.0.0MITIn 1 marketplace
Operator-approved disk cleanup on a Mac, thin over the fleet's read-only disk-report: present its SAFE / ASK / KEEP plan with each item's native cleaner from the report's JSON, get SAFE approved as one batch and every ASK item one by one, run only the approved cleaners, and show before/after. A PreToolUse guard, active only in the session that saved a plan, asks before a removal that reaches a KEEP item or leaves the approved paths.
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.
Operator-approved disk cleanup on a Mac. The skill is thin on purpose: it runs the fleet's
read-only disk-report --json, presents the plan grouped SAFE / ASK / KEEP with each
item's native cleaner copied from the JSON, gets approval, runs only the approved cleaners
and re-measures.
| Part | What it does |
|---|---|
skills/disk-cleanup | The procedure: measure, save the plan, present, approve (SAFE as one batch, every ASK item alone, KEEP never offered), list before removing, run, re-measure, end. |
scripts/disk-cleanup-plan.js | Plan state (save, approve, halt, show, end) in $XDG_STATE_HOME/disk-cleanup/, one file per session. Refuses a report without cleaner, a redacted report, and approving KEEP or a null cleaner. |
scripts/disk-cleanup-guard.js | PreToolUse (Bash). Adds the session id to a plan call; then, only in a session with a plan, ASKS before a removal that reaches KEEP or leaves the approved paths, and before a cleaner that is not the approved string. |
| Command, while this session has a plan | Result |
|---|---|
an approved item's exact cleaner | allow |
rm -r / rmdir / srm / trash / unlink / find … -delete inside an item approved for removal (its cleaner is trash <path>) | allow |
the same under an item approved for a native cleaner (uv cache prune, nh clean all …) | ask |
any of those reaching a KEEP item (inside it, or an ancestor such as rm -rf ~) | ask |
any of those outside every approved item (a plain rm only asks for KEEP) | ask |
a target it cannot resolve ($VAR, a glob, xargs rm) | ask |
a report cleaner's verb (docker system prune …) that is not the approved string | ask |
anything after halt | ask |
reads, grep 'rm -rf', echo trash, docker system df | allow |
| any session without a plan | allow, silent |
It asks, never denies: the operator is the gate. On an internal error it asks if the text
names a removal and otherwise fails open, like mac-app-send's guard.
disk-report with the per-item cleaner field (kattakath/nix-config, packages/disk-report.py).
Its categories, risks and cleaners live in one data file there, packages/disk-report-rules.toml;
this plugin holds no copy.node --test plugins/disk-cleanup/tests/guard.test.js — must-ASK, must-ALLOW, session
binding, plan refusals, halt/end, and never-throws, on synthetic fixtures only.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kattakath/skills --plugin disk-cleanupPlugins from other owners that cover similar ground