/tool:storage [analyze|clean] [targets] [threshold]from tool
Use when measuring or freeing space on the Mac, folders, cloud drives, VPS machines, or Docker engines, covering APFS clones, duplicates, litter, and cleans
Ships in tool. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Arguments $ARGUMENTS name a mode (analyze by default, or clean), targets, and a threshold in any order, each told by its form, and the request supplies values they lack:
<remote>:<path>, mega:<path>, or drive by references/cloud.md, machines by references/machines.md, else the Mac2G) cutting folder rows of cloud and machine listings, 1 GiB when absentTargets naming a cloud drive send your next call to Read references/cloud.md, and targets naming a VPS machine or its rclone sftp remote, a Docker engine, a Colima VM, CI runners, or a cache store to Read references/machines.md before any ssh or docker call, its steps replacing [STEPS]; Read each again after a compaction.
[REFERENCES]:
[SCRIPTS]:
Volume reads run as Claude Code loads this skill, and a Read of this file sends each line as its own parallel call first. Purgeable bytes are important-usage capacity minus available capacity, snapshots keep the blocks of deleted files until thinned and the processes lsof +L1 names until each quits, and df available blocks are the baseline of every clean, as du counts each clone and misses what a clone keeps:
diskutil apfs list -plist | plutil -convert json -o - - | jq -c '.Containers[] | {container: .ContainerReference, free: .CapacityFree, volumes: [.Volumes[] | {name: .Name, roles: .Roles, used: .CapacityInUse}]}'
diskutil apfs listSnapshots -plist /System/Volumes/Data | plutil -convert json -o - - | jq -c '.Snapshots[] | {SnapshotName, Purgeable}'
osascript -l JavaScript -e 'ObjC.import("Foundation"); JSON.stringify(ObjC.deepUnwrap($.NSURL.fileURLWithPath("/System/Volumes/Data").resourceValuesForKeysError($(["NSURLVolumeAvailableCapacityKey", "NSURLVolumeAvailableCapacityForImportantUsageKey"]), null)))'
df --libxo json -k /System/Volumes/Data | jq '.["storage-system-information"].filesystem[0]["available-blocks"]'
sudo -n lsof -nP +c 0 +L1 | awk 'NR > 1 && $5 == "REG" && !seen[$6 ":" $9]++ {held[$1 " " $2] += $7} END {for (p in held) print held[p], p}' | sort -rn | head -20
[STEPS]:
clean alone, each item found by [03], its row holding the df delta against the baseline or why it stayedstorage <mode> <targets>
baseline: <df available bytes>
totals: <allocated>, <physical>, <purgeable> purgeable, <snapshot bytes> snapshots
gap: <bytes> <holder pid and command, or cause>
safe: <bytes>
<path> bytes=<n> call=<clean> freed=<df delta in clean mode>
ruling: <bytes>
<path> bytes=<n> call=<clean> decides=<what the owner rules>
held:
<path> bytes=<n> holder=<pid command>
findings:
<path> bytes=<n> cause=<file:line>
scripts/usage.py walks a local target once and writes nothing, its environment sitting in the uv cache, and its report, read whole in one Read, answers every local question, /System/Volumes/Data standing for the whole Mac:
uv run --locked --script scripts/usage.py <target> [floor] > <scratchpad>/usage-<session>-<target>.txt
4K, 1) sets the smallest file the files and duplicates rows and clone take, 1 MiB when absentallocated counts every clone in full and each hard link once at its first path, the figure du givesphysical counts each clone stream once, and a clone written after cloning takes a stream of its own, counting the blocks it still shares againphysical equal to allocated means each shared stream holds one walked file, private below both counting blocks shared with clones outside the targetvolume on a volume root states used and the gap that snapshots, refused folders, metadata, and deleted files still open holdprivate counts bytes deleting a file or folder alone frees, a folder holding every clone of a stream freeing that stream, snapshots asidelogical above allocated marks a sparse, compressed, or dataless file, flags names which, and the walk never downloads a dataless oneallocated, 40 rows each, and a rerun on a listed folder reaches below the cut in place of dustream number being clonesEACCES paths take the sudo -H rerun the line names, EPERM ones sit under SIP, or under TCC that Full Disk Access liftsWalk litter rows rank folders by empty files, empty folders, and broken links, which free no space, beside these reads:
git -C <repo> ls-files --others --exclude-standard --directory, ignored outputs belong to the project's cleanczkawka_cli temp -d <folder>... -C <out.json> over ~/Downloads, ~/Desktop, and ~/Documents~/Library/Caches, ~/Library/Logs, ~/Library/Developer, ~/.Trash, ~/.cache, $TMPDIR, $(getconf DARWIN_USER_CACHE_DIR), tool cachesMode clean frees what [01] and [02] found, each item in this order:
lsof -nP -t -- <lock file>, pgrep -fl <tool>, and lsof -nP -- <file>... over the log and temporary files a deletion names, a held item staying with holder pid and command, never forcedCases:
docker --context colima-<profile> ps -q for its VM finishuv -> UV_CACHE_DIR=<root> uv cache prune per root (~/.cache/uv, and the uv cache dir a project's mise env sets) when <root>/.lock has no holder, as uvx servers hold it for lifepnpm store prune, npm cache verify, uvx --from huggingface_hub hf cache prune --dry-run, mise prune -n, cargo clean -n, cargo -Zgc clean gc -n --max-download-age=<age>rsync -aHAXNS -n -i <src>/ <dst>/ to an APFS disk or -aHXS to a VPS, the real run, rsync -c -n -i printing nothing, deletionrustup toolchain list -v, a version mise prune -n keeps unnamed being pinned by a config rg -l <version> $(readlink ~/.local/state/mise/tracked-configs/*) namesbrew cleanup -n -s --prune=all, nh clean all --dry --keep <n>, and nix-store --gc --print-dead | xargs du -sk | awk '{s += $1} END {print s}' for dead KiBgit -C <repo> lfs dedup --test then lfs dedup clones working files from LFS storage, lfs prune --dry-run --verify-remote drops pushed objects, per submodule too.git (.git/<tool>) -> deletion where command -v <tool> fails and no .git/hooks file names itinfo.plist WorkspacePath is gone, and ModuleCache.noindex with SDKExplicitPrecompiledModules once Xcode quits, CompilationCache.noindex staying under its size limitxcrun simctl delete unavailable, xcrun simctl runtime delete --dry-run with --unusable, then --outdated for runtimes a newer one replacestmutil thinlocalsnapshots /System/Volumes/Data <bytes> 4 for Time Machine, OS update snapshots stayfindings row with the line causing each copy, never a clean.indd, .ai, or .blend links by path, project references) -> usage.py clone <target> [floor], deletion taking a ruling.git, app libraries and containers, and tool stateWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bsamiee/rasm --plugin tool6 skills in this plugin
/debuggingUse when a program misbehaves at runtime and its cause is unproven (crash, hang, wrong value, breakpoint that never stops), covering the method from stop to report, debugger sessions, breakpoints, stops, hang and crash evidence, and cleanup/ghidraUse when reading, annotating, or emulating a binary through Ghidra, covering headless scripts and the Serve process/googleUse when work reads or writes any Google account or service (Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, Tasks, Forms, Chat, Keep, YouTube, Apps Script, Cloud APIs, Workspace admin) or drives the owner's signed-in Chrome, web and chrome:// pages alike, covering account routing across gog, GAM, and Drive mounts, output shapes, edits, misleading errors, and Chrome settings, flags, and extensions through chrome-devtools