mac-disk-cleanup
Skill5 starsChanged 2 days agoMITView on GitHub
Trigger: liberar espacio, disco lleno, limpiar caches, free disk space, docker ocupa mucho. Reclaim macOS disk space safely: caches, build artifacts, Kiri Docker data.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- alvaroofernaandez/dotfilesword for word, first seen Nov 29, 2026
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 2026
- Esi-Abolfazl/skillstheir own version, first seen Nov 16, 2026
- stv-io/claude-skillstheir own version, first seen Nov 15, 2026
- deBilla/claude-skillstheir own version, first seen Oct 25, 2026
Other versions9 projects use a version of this.
Word for word · 1
- alvaroofernaandez/dotfiles★ 5100% same
Edited · 0
None found.
Wrote their own version · 8
- karanmrn/karanagentskills★ 11same name
- karanmrn/kstack★ 11same name
- Esi-Abolfazl/skills★ 3same name
- Shaybush/claude-skills★ 3same name
- Mateeb11/skills★ 1same name
- deBilla/claude-skills★ 0same name
- MaksimZinovev/mac-disk-cleanup-skill★ 0same name
- stv-io/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aval-architectureSkill
- aval-docsSkill
- aval-release-notesSkill
- aval-releaseSkill
- aval-testingSkill
- accessibilitySkill
- ai-sdk-5Skill
- architecture-evidenceSkill
- branch-prSkill
- chained-prSkill
- cognitive-doc-designSkill
- design-pipelineSkill
- design-refactorSkill
- docker-build-optimizedSkill
- docker-space-optimizerSkill
- herdrSkill
- issue-creation-proSkill
- kiri-dockerSkill
- kiri-healthSkill
- laws-of-uxSkill
- lightpanda-browserSkill
- pdf-reportSkill
- plan-deckSkill
- prs-proSkill
- react-19Skill
- readme-guardianSkill
- readme-portalSkill
- repo-prepSkill
- skill-creatorSkill
- strict-tddSkill
- tailwind-4Skill
- typescriptSkill
- work-unit-commitsSkill
- zod-4Skill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
NEVER delete: Docker images/volumes/containers, ~/.local/share/opencode/opencode.db, Steam games, WhatsApp data, without asking.
- Very specific: line 21
Before deleting images, list them (repo:tag, size, age) and recommend keeping the current/latest tag.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Activation Contract
Load when the user asks to free disk space on this Mac, says the disk is full, or asks to clean caches or Docker data.
Hard Rules
- Measure free space (
df -h /System/Volumes/Data) BEFORE and AFTER; report both. - Regenerable caches (Tier 1) need no confirmation. Everything else needs explicit user approval, item by item.
- NEVER delete: Docker images/volumes/containers,
~/.local/share/opencode/opencode.db, Steam games, WhatsApp data, without asking. - Docker runs only on Kiri (OrbStack and Colima are retired). Delegate all Docker cleanup to the
docker-space-optimizerskill; never install or start OrbStack or Colima. - zsh does not word-split variables: write
docker --context X ...literally, never$C rmi. - Report the active docker context at the end (must be
kiri). - Before deleting images, list them (
repo:tag, size, age) and recommend keeping the current/latesttag.
Decision Gates
| Finding | Action |
| Tier 1 caches | Delete directly |
| Docker build cache / images | Load docker-space-optimizer |
| Old image tags / big apps | List + recommend + ask |
Execution Steps
- Baseline
df; measure paths inreferences/targets.mdwithdu -sh; rundocker context ls,docker system df. - Tier 1: run the cache commands in
references/targets.md. - Docker: follow
docker-space-optimizer(safe prunes viaaval docker cleanup; it ends with an fstrim of the VM disk; measure~/Library/Application Support/Kiri/vm/data.imgbefore/after). If only trimming is wanted, use the manual trim in that skill. - Present Tier 2 candidates (images, big dirs) as a table with sizes; delete only what the user approves.
- Final
df; note that shared image layers may free ~0 B even when many tags are removed.
Output Contract
Return: before/after free space, what was deleted with sizes, what was left untouched and why, the remaining biggest consumers, and the active docker context.
References
references/targets.md— paths, cleanup commands, and history of past passes.../docker-space-optimizer/SKILL.md— Docker/Kiri cleanup.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

