AGENT SKILL
Quick Cleanup
One-command safe cleanup of auto-regenerated caches — no full scan needed, single confirmation
- License 许可
- MIT
- 最近更新
- 2026-03-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Quick Cleanup
- tools
- [ "Bash", "Read", "Write", "Glob" ]
- description
- One-command safe cleanup of auto-regenerated caches — no full scan needed, single confirmation
03 SKILL.md 正文
Quick Cleanup
No Full Scan Needed
This skill directly checks known-safe paths without dispatching scanner agents.
Safe Paths to Check (existence + size via du -sh)
~/Library/Caches/*— all app caches~/Library/Logs/*— only files older than 30 days (find -mtime +30)- Browser caches: Chrome, Firefox, Safari, Edge, Arc
/tmp/*and/var/folders/temp files~/Library/Saved Application State/- Crash reports:
~/Library/Logs/DiagnosticReports/,/Library/Logs/DiagnosticReports/ - Xcode DerivedData:
~/Library/Developer/Xcode/DerivedData/(if it exists) - Package manager caches (only if they exist):
~/.npm/,~/Library/Caches/Homebrew/,~/.cache/pip/,~/.cargo/registry/cache/
Skip ALL of these
- Downloads, Desktop, Documents (user files)
- iOS backups, Time Machine snapshots
- iMessage, Mail
- Docker (may have running containers)
- Android Studio, AVDs (dev environment)
- Any REVIEW-level items
Flow
- Check each path, sum sizes
- Skip paths in safe-zones exclusion list
- Present single summary: "Delete X.X GB of auto-regenerated caches? These will rebuild automatically when needed."
- List the categories and sizes being cleaned
- On "yes": Move all to
~/.Trash/usingmv - Log to
~/.macos-cleanup/deletions-{timestamp}.json - Show disk space freed: before vs after
04 同仓库更多 Skills
Storage Monitor
Disk health dashboard showing usage percentage, trends, growth areas, and color-coded status
★ 0
Storage Analysis
Comprehensive macOS storage analysis — orchestrates scanner agents, aggregates results, and presents categorized cleanup recommendations
★ 0
Restore
Restore previously deleted files from Trash using cleanup session logs
★ 0
Interactive Report
Generate an interactive HTML report with category breakdown, checkboxes, and cleanup selection UI
★ 0
Cleanup History
Track and display cleanup history — total freed, timeline, categories, restorable items
★ 0