Loading...
Loading...
Reclaim disk space on macOS. Use when storage is low, disk usage needs investigating, or the user asks what is safe to delete.
npx skill4agent add tejas-kale/skills macos-disk-cleanupdf -h /# 1. Top-level
du -sh /System /Users /private /Applications /Library 2>/dev/null | sort -rh
# 2. Home breakdown
du -sh ~/Library ~/Code ~/Downloads 2>/dev/null | sort -rh
# 3. Library breakdown
du -sh ~/Library/Application\ Support/* ~/Library/Caches/* ~/Library/Group\ Containers/* 2>/dev/null | sort -rh | head -20| Profile | Check first | Typical gain |
|---|---|---|
| Developer | Homebrew, uv/npm/pip, DerivedData, simulators | 10–20G |
| AI/ML user | Ollama unused models, HuggingFace, LM Studio | 5–15G |
| Chrome-heavy | OptGuideOnDeviceModel, GoogleUpdater | ~5G |
| Command | Frees | Notes |
|---|---|---|
| 2–10G | Cached installers |
| 1–10G | uv package cache |
| 500M–2G | npm cache |
| 100–500M | pip cache |
| 200–500M | pre-commit envs |
| 500M–5G | Rebuilds on demand |
| 1–10G | Unused iOS simulators |
references/paths.mddf -h /tmutil listlocalsnapshots /