mac-storage-cleaner
Qué hace
Esta skill encuentra lo que llena el disco de un Mac y libera espacio con cuidado, con transparencia y la opción de deshacer. Está pensada para usuarios de Mac con el almacenamiento casi lleno.
Cuándo usarla
- ✓Cuando tu Mac indica que el disco de inicio está casi lleno o con poco almacenamiento.
- ✓Cuando quieres borrar cachés o archivos sobrantes de apps que desinstalaste.
- ✓Cuando quieres saber qué ocupa más espacio en tu disco.
Link de la skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/mac-storage-cleaner/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“El disco de inicio de mi Mac está casi lleno. Busca lo que ocupa más espacio y limpia lo que sea seguro borrar.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente primero mide el uso del disco y borra solo los archivos de caché que se regeneran por sí solos. Lo más arriesgado lo envía a la Papelera para que puedas restaurarlo. Registra cada acción destructiva.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Mac Storage Cleaner
Free disk space the way a careful engineer would, and earn the trust one-click cleaners lose: measure first, delete only what provably regenerates, make anything riskier reversible, ask before anything expensive, log every action, and report honestly. The differentiator over CleanMyMac-style tools is judgment and transparency — the user sees what will go and why, and can undo it.
Scripts live in scripts/; the full tiered inventory, exact reclaim commands,
and gotchas are in references/cache-catalog.md. Read the catalog whenever you
hit something a script didn't classify or you need the precise command.
Core principles
- Safe tier → delete outright (space back immediately). These are pure caches; the only cost is a slower next build/install.
- Everything else → Trash, not
rm. Ask-tier items, app leftovers, big files — move them to the Trash withtrash-items.shso the user can restore them. Reversibility is the whole point; never hard-delete a user's data. - When unsure, demote a tier. A slower rebuild is trivial; deleting a license, an unpushable Xcode archive, or someone's only local backup is not.
- Every destructive run is logged to
~/Library/Logs/mac-storage-cleaner/operations.log.
Workflow
Locating the scripts. The commands below resolve $D to this skill's own
directory so they work whether the skill was installed as a plugin
($CLAUDE_PLUGIN_ROOT is set) or as a standalone skill (~/.claude/skills/…).
Shell state doesn't persist between commands, so each block re-resolves $D.
1. Survey — caches (always first, read-only)
D="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/mac-storage-cleaner}"; D="${D:-$HOME/.claude/skills/mac-storage-cleaner}"
bash "$D/scripts/survey.sh"
Prints free space and sizes every cache that exists on this machine, grouped safe / ask / never / app-data. Never skip it — locations and sizes differ on every Mac. Note current free space for the before/after report.
2. Clear the safe tier (no per-item permission needed)
Tell the user briefly what the safe tier removes and roughly how much it frees, then:
D="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/mac-storage-cleaner}"; D="${D:-$HOME/.claude/skills/mac-storage-cleaner}"
bash "$D/scripts/clean-safe.sh"
Removes only the vetted safe allowlist (nothing else — the survey's "other large
caches" list is for the user to review, not for auto-deletion), handles read-only
files, skips anything macOS protects (reporting rather than failing), runs
brew cleanup -s --prune=all and removes unavailable simulators, logs each
deletion, and prints what it reclaimed. If the user only wanted specific items,
delete those directly instead.
Browser & Electron app caches (Chrome/Arc/Slack/VS Code/…) are safe but live
inside app-data folders — clear only the Cache/Code Cache/GPUCache
subfolders the survey lists, ideally with the app quit, and never the whole
app folder. Exact paths: references/cache-catalog.md.
3. Surface the "ask" tier — recommend, don't delete
Big but not free caches (Docker images, ML models, simulator devices, Xcode Archives, module stores). List each with size + a specific recommendation; let the user choose. Use the tool-native command, and prefer Trash for file deletions. Key ones (full detail in the catalog):
- Docker —
docker system prune -a, neverrmthe VM disk. - ML models (HuggingFace/Ollama) — often duplicated variants; offer to remove unused ones.
- Simulators — only
xcrun simctl delete unavailableis safe; deleting active devices wipes state. - Xcode Archives — warn: holds dSYMs for crash symbolication and shippable builds.
4. Go beyond caches — the space the cleaners miss (read-only scan)
D="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/mac-storage-cleaner}"; D="${D:-$HOME/.claude/skills/mac-storage-cleaner}"
bash "$D/scripts/find-extras.sh"
Surfaces the real hogs a cache sweep ignores: leftover data from uninstalled apps, big files (>500MB), stale installers (.dmg/.pkg), and old Downloads. Everything here is ask-tier — present candidates, let the user pick, then remove reversibly:
D="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/mac-storage-cleaner}"; D="${D:-$HOME/.claude/skills/mac-storage-cleaner}"
bash "$D/scripts/trash-items.sh" "/path/one" "/path/two"
**If trashing reports "could NOT trash (permi
Preguntas frecuentes
¿Borrará mis archivos personales?
No. Todo lo que no sea caché pura va a la Papelera en lugar de borrarse para siempre, y el agente te pregunta antes de las acciones costosas.
¿Dónde se guarda el registro?
En una carpeta de registros de la skill dentro de tu carpeta Library, con cada acción realizada.
¿En qué se diferencia de los limpiadores de un clic?
La skill está diseñada para ser transparente y reversible, mostrándote qué se va a eliminar y por qué.
Detalles
Descripción original del autor
Safely reclaim disk space on a Mac — the trustworthy, transparent, reversible alternative to CleanMyMac and similar tools. Use whenever the user says their Mac disk or storage is full or nearly full, gets a "startup disk almost full" / low-storage warning, asks to free up space, clean/clear caches, remove junk, delete leftover files from apps they uninstalled, or find what's eating their disk — in any language (e.g. English "my mac is out of space", "free up disk", "clear caches", "what's taking up my storage"; Georgian "ქეში გაასუფთავე", "მეხსიერება გადამევსო", "ადგილი აღარ მაქვს"). Surveys u
Popularidad
- Estrellas en GitHub
- 33 mil
- Posición en el ranking
- #8887
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
owasp-security
33 milEnseña a tu agente la guía de seguridad OWASP para webs, APIs, móviles, contenedores y agentes de IA, para detectar debilidades comunes y sugerir correcciones.
agent-management
33 milPermite que tu agente cree, liste, hiberne, despierte, renombre y elimine agentes de IA con la CLI de AI Maestro, gestionando su ciclo de vida.
agent-messaging
33 milPermite que tu agente envíe, reciba y responda mensajes firmados entre agentes de IA con el Protocolo de Mensajería de Agentes, sobre todo en tu equipo.
docs-search
33 milBusca en la documentación generada del código las firmas de funciones, clases y comentarios, para revisar la API real antes de cambiar nada.
Skills parecidas
blucli
394 milAyuda a tu agente a buscar, reproducir, pausar, agrupar y ajustar el volumen de los altavoces Bluesound y NAD con el comando blu.
camsnap
394 milAyuda a tu agente a capturar fotos, clips cortos o eventos de movimiento de cámaras de red y cámaras web locales que hayas configurado.
eightctl
394 milAyuda a tu agente a consultar y controlar un pod de Eight Sleep, incluida su temperatura, sus alarmas y sus horarios de sueño.