Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add gpsaggese/helpers --skill system.analyze_disk_space_usegit clone --depth 1 https://github.com/gpsaggese/helpersWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gpsaggese/helpers/system.analyze_disk_space_use)<a href="https://agentmods.dev/skills/gpsaggese/helpers/system.analyze_disk_space_use"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/system.analyze_disk_space_use/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/gpsaggese/helpers/system.analyze_disk_space_use"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/system.analyze_disk_space_use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.01434 |
| Opus 5.5 | $0.00005 | $0.00574 |
| Sonnet 5.5 | $0.00002 | $0.00287 |
| Haiku 4.5 | $0.00001 | $0.00143 |
Grade C, and why
system.analyze_disk_space_use scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
# rm -rf ~/.cache/uv How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Goal
- Find what consumes the most disk space. Identify what is safely reclaimable (unused container/VM images, caches, logs) and what needs manual review
- Never delete, move, or modify anything. Analysis only
Workflow
Check Overall Disk Usage
- Run
df -hto see total, used, and available space per volume - On macOS, user data lives on
/System/Volumes/Data, not/. Use itsCapacity/Availcolumns to judge urgency
Survey the Home Directory
-
List top-level home directory usage, largest first:
> du -sh ~/* 2>/dev/null | sort -rh -
Recurse one level at a time into the dominant directory (on macOS, often
~/Library), sorting by size, until you reach the actual large items:> /usr/bin/du -sh ~/Library/* 2>/dev/null | sort -rh | head -30 -
Track every directory measured. They feed the top-10 list in "Rank Findings And Write The Report"
Check Container and VM Engines First
- Container and VM engines are usually the biggest consumer on a dev machine. They cache every pulled or built image and rarely self-prune
- For each installed engine, check its usage report before raw directory sizes:
- Docker: if
dockerexists, rundocker system df -vfor a per-image and per-volume breakdown. Images withCONTAINERS= 0 are unused and reclaimable - Apple
containerCLI (native macOS containers): ifcontainerexists, runcontainer system df. Its data lives under~/Library/Application Support/com.apple.container. Docker's VM disk lives under~/Library/Containers/com.docker.docker - Other engines (
podman,colima,lima,nerdctl): use their equivalentsystem df/ usage-report command
- Docker: if
- The tool can report a builder container (Docker
buildxstate volume, Applebuildkitbuilder) as "active", which excludes it fromRECLAIMABLEeven when it is very large- Size it with
/usr/bin/du -sh <PATH>. Report it as a manual candidate, with the reset command (docker buildx prune --all, orcontainer builder stop && container builder delete)
- Size it with
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 133 lines · 12 tokens per session scan C f3fde46adb6e
system.analyze_disk_space_use is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 12 tokens to every session and 1,434 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
system.analyze_disk_space_use compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| system.analyze_disk_space_usegpsaggese/helpers | Skill | 158 | today | Apache-2.0 | C | 12 | Claude Code |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | today | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 99k | today | Apache-2.0 | A | 19 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 314k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| chat-pet-sprite-creationmicrosoft/vscode | Skill | 195k | today | MIT | A | 53 | Claude Code, Codex |