Surveys macOS/Linux disk usage, identifies caches, build outputs, and agent data to free space. User approves each item before deletion. Reports freed delta.
Ships in adonis-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Find out where a nearly full disk went, then free space without losing anything the owner still needs. You measure and propose; the user decides per item; you clean and prove the gain.
TIDY=<this skill's directory>/scripts/disk_tidy.py (Python 3.9+, standard library only) does the parts that must be exact: free space, well-known locations, and build output that is safe to delete. Use absolute paths.
Each rule protects something that is hard to get back.
GOOGLE_APPLICATION_CREDENTIALS), report the path, never the contents, and leave the file where it is.lsof -d cwd), the binary each running session executes (including running agy / Antigravity processes), and dev servers. Keep any version a running process uses, the version a launcher links to, and the one before it.git check-ignore). A folder that merely looks like a cache but is tracked or outside git is real work until shown otherwise.uv cache prune, pnpm store prune, npm cache clean --force, brew cleanup, in-app storage managers) over rm, because it knows what is still referenced.du overstates what deletion frees: APFS clones (pnpm, uv and Next.js copy files that way) and hard links are counted once per path. Quote du sizes as estimates and report only the free difference as the result.Run python3 "$TIDY" free --note before-cleanup. Every call is appended to ~/.local/state/disk-tidy/free.jsonl and compared with the previous snapshot, so "it shrank again since last time" gets a measured answer; when there is no earlier snapshot, say the weekly change cannot be computed. Start du -xhd1 ~ | sort -hr | head -30 in the background: it can take many minutes on a large home and tells you which top-level folders to look into.
macOS has no timeout command. Bound every slow du, including each one inside a loop, so one huge folder cannot stall the survey:
ls -d ~/code/*/ | while read -r dir; do
perl -e 'alarm shift; exec @ARGV' 120 du -sk "$dir" || echo "timeout $dir"
done
Find the code roots instead of assuming them: the user's words first, then folders holding several git repositories (find ~ -maxdepth 3 -name .git -prune -not -path '*/Library/*' 2>/dev/null, grouped by parent). Ask when it is unclear which roots to scan.
Split the survey by owner so slices don't overlap. With subagents available, run the slices in parallel (on Antigravity, use invoke_subagent(TypeName="research", ...) or run_workflow), each read-only and each told to return a table of path, size, what it is, tier, how to clean, and risk, listing only items above about 500 MB. Without subagents, do the slices in turn.
| Slice | Covers | Start with |
|---|---|---|
| Build output and dev caches | .next, .turbo, node_modules/.cache (webpack, babel, Remotion), Cargo target and similar under the code folders; package-manager caches; toolchains; Docker | python3 "$TIDY" artifacts <code roots> --out <scratch>/artifacts.json, python3 "$TIDY" known |
| Apps and system | ~/Library/Application Support, Containers, Group Containers, Caches, /Applications with last-used dates (mdls -name kMDItemLastUsedDate), iOS backups, local snapshots (tmutil listlocalsnapshots /) | known rows of tier B |
| AI agent data and repositories | each agent home (~/.claude*, ~/.codex*, ~/.grok*, ~/.cursor, ~/.gemini (antigravity*), ...): sessions by month, upgrade leftovers, old CLI versions; repository and worktree sizes, last commit, unpushed work | ls -la first: shared folders are often symlinks and must not be counted twice |
| The owner's files | Downloads, Desktop, Documents, Movies, large files, duplicates, installers | the file-tidy skill, if installed: its scan and dupes are read-only |
references/hotspots.md lists where space usually hides on a developer machine and how each place is cleaned; read it before writing the slice prompts.
A pile of near-identical items with consecutive dates means something keeps recreating them. Clearing it without stopping the cause only buys time. Examples: dozens of copies of one package in the uv cache (an MCP server launched with uvx or uv tool run and no pinned version), hundreds of marketplace-upgrade-* folders, a .next/dev that grows with every dev session. Find the source (agent MCP configs, launch agents, the tool's settings) and report it with the cleanup item. Say plainly when the source is gone and the pile is only history.
Merge the slices, drop paths two slices both counted, and sort by size into tiers:
Show A and B as tables with size, what is lost, and the risk, with an A total that is honest about clones. Ask which groups to clean; the host's question tool with multi-select (such as ask_question on Antigravity) works well here.
python3 "$TIDY" clean <artifacts.json> as a dry run, then --yes. It deletes only known build-output folder names that git ignores and that no dev or build process uses (editors, shells and agents sitting in a repository root do not count; any process inside the folder itself does), re-checks each just before deletion, and prints the free-space gain.lsof -p <pid> for each session) and launcher links, keep current and previous, then delete. Re-run each tool's --version afterwards.du suggests because node_modules is cloned.pgrep, then move the .app and its own Library folders (Application Support, Containers, Group Containers, Caches, Preferences, Saved Application State, matched by bundle id) to the Trash through Finder: osascript -e 'tell application "Finder" to delete {POSIX file "<path>", ...}'. Finder may answer -15260 (busy); wait a few seconds and retry. Confirm each path is gone.A step that fails stops that group; report it instead of working around it.
free --note after-cleanup), and the gain per group where it was measureddu could not read without sudo~/.config, ~/.local/share and ~/.cache instead of ~/Library. Windows is not covered.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
disk-cleanup, storage-management, cache-cleaning, disk-space
34 skills in this plugin
/agent-dispatchPick the lightest agent setup for coding, review, drafting or design research: do it yourself, fan out 2-3 workers across local CLIs and accounts (Claude Code, Codex, Grok, Cursor), run a scoped architecture loop, or brief independent researchers; choose a cross-model reviewer and track dispatched work on a Run Board. Use when work may need delegation, or the user asks to dispatch, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or check dispatched work. 中文触发:派活、并行、多开几个 agent、分给多个账号 / codex / grok、找另一个 AI 审、多方意见、派出的任务进行到哪了。Not for trivial edits, a single diff review (agentic-review-handoff) or the session list (sideby sessions); inside another named workflow, only size its workers./agentic-review-handoffValidate review findings, run auto Git review-fix-re-review loop, DecisionConsult, or DDD/cohesion review. Requires Git & review/consult intent./agent-practice-audit/adonis-skills:disk-tidyfrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skillsOther plugins' skills for the same job