disk-cleanup

disk-cleanup is a skill for Claude Code from markmhendrickson/ateles. It costs 55 tokens per session (1,015 once invoked), scanned C, original, MIT.

A disk-space review and cleanup workflow that finds large files and caches, ranks cleanup options by safety, and asks before removing anything. A cache is temporary data that applications can usually download or rebuild.

In plain words
What is it for?
It helps investigate low disk space, identify large caches and temporary files, estimate cleanup impact, and run only the cleanup steps you approve.
Why use it?
It helps free storage while reducing the risk of deleting something important. Approval is requested separately for each cleanup tier.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./execution/scripts/preview_deletions.sh.

Good fit It helps investigate low disk space, identify large caches and temporary files, estimate cleanup impact, and run only the cleanup steps you approve.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/ateles
agentmods
npx agentmods add skills/markmhendrickson/ateles/disk-cleanup

Made for: Claude Code.

Wrote 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.

agentmods badge for disk-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/markmhendrickson/ateles/disk-cleanup/github.svg)](https://agentmods.dev/skills/markmhendrickson/ateles/disk-cleanup)
Your own site
<a href="https://agentmods.dev/skills/markmhendrickson/ateles/disk-cleanup"><img src="https://agentmods.dev/badge/skills/markmhendrickson/ateles/disk-cleanup/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.

agentmods 80×15 button for disk-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/markmhendrickson/ateles/disk-cleanup"><img src="https://agentmods.dev/badge/skills/markmhendrickson/ateles/disk-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01015
Opus 5.5 $0.00022 $0.00406
Sonnet 5.5 $0.00011 $0.00203
Haiku 4.5 $0.00006 $0.00102

Measured 3mo ago against content hash 4abc4261940b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

disk-cleanup 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 3mo ago.

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.

| CloudKit | `rm -rf ~/Library/Caches/CloudKit/*` |
.claude/skills/disk-cleanup/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Disk Cleanup

Core behavior

  1. Run analysis to discover candidates
  2. Surface candidates by tier (highest leverage, safest first)
  3. Ask for approval before executing each tier
  4. Execute only approved tiers; then present the next tier

Step 1: Run analysis

./execution/scripts/preview_deletions.sh
du -sh ~/Library/Caches/* 2>/dev/null | sort -hr | head -25
du -sh ~/.npm ~/Library/Application\ Support/Google/Chrome ~/Library/Containers/com.docker.docker/Data 2>/dev/null
docker system df 2>/dev/null

Step 2: Present tiers and ask for approval

Present each tier with estimated size and risk. Wait for user approval before executing. Only proceed to the next tier after the current one is approved and run.

Tier 1 — Automated script (zero risk)

Script clears Homebrew, pip, npm, old logs, trash. All reproducible.

Approve Tier 1? (yes/no)

If approved:

./execution/scripts/disk_cleanup.sh --yes

Tier 2 — Large app caches (zero risk, ~3–7 GB)

Apps re-download as needed. Present current sizes from analysis, then ask approval.

Cache Command
CloudKit rm -rf ~/Library/Caches/CloudKit/*
Telegram rm -rf ~/Library/Caches/ru.keepcoder.Telegram/*
OpenAI Atlas rm -rf ~/Library/Caches/com.openai.atlas/*
npm npm cache clean --force
Approve Tier 2? (yes/no)

Tier 3 — Medium app caches (zero risk, ~2–3 GB)

Cache Command
Mozilla rm -rf ~/Library/Caches/Mozilla/*
Granola rm -rf ~/Library/Caches/com.granola.app.ShipIt/*
Brave rm -rf ~/Library/Caches/BraveSoftware/*
Yarn rm -rf ~/Library/Caches/Yarn/*
Google rm -rf ~/Library/Caches/Google/*
Approve Tier 3? (yes/no)

Tier 4 — Smaller app caches (zero risk, ~0.5–1 GB)

Cache Command
Ledger Live rm -rf ~/Library/Caches/ledger-live-desktop-updater/*
node-gyp rm -rf ~/Library/Caches/node-gyp/*
Loom rm -rf ~/Library/Caches/loom-updater/*
Playwright rm -rf ~/Library/Caches/ms-playwright
Loom ShipIt rm -rf ~/Library/Caches/com.loom.desktop.ShipIt

Read the full file on GitHub · 125 lines

Changes

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.

  1. 3mo ago First seen · 125 lines · 55 tokens per session scan C 4abc4261940b

Subscribe to this mod's changes

disk-cleanup is a skill published in the GitHub repository markmhendrickson/ateles (5 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 1,015 once invoked, about $0.0002 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-08-31.

Related

disk-cleanup compared with skills from other repositories

disk-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
disk-cleanupmarkmhendrickson/atelesSkill52d agoMITC55Claude Code
vbot-docsVironnimo/vbotSkill2yesterdayApache-2.0A73Claude Code, Codex
workflowVironnimo/vbotSkill2yesterdayApache-2.0A16Claude Code, Codex
life-automation-audit0xNyk/oneclawSkill32mo agoMITA0Claude Code, Codex
discordkaivyy/kabotSkill208mo agoMITA0Claude Code, Codex
notionkaivyy/kabotSkill208mo agoMITA17Claude Code, Codex
gogkaivyy/kabotSkill208mo agoMITA20Claude Code, Codex