mac-storage-cleaner
Fungsinya
Skill ini mencari apa yang memenuhi disk Mac dan membebaskan ruang dengan hati-hati, dengan transparansi dan opsi untuk membatalkan. Skill ini ditujukan bagi pengguna Mac yang penyimpanannya hampir penuh.
Kapan dipakai
- โSaat Mac Anda memberi tahu bahwa disk startup hampir penuh atau kekurangan penyimpanan.
- โKetika Anda ingin menghapus cache atau sisa file dari aplikasi yang sudah Anda hapus.
- โKetika Anda ingin tahu apa yang paling banyak memakan ruang di disk Anda.
Link skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/mac-storage-cleaner/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โDisk startup Mac saya hampir penuh. Tolong cari apa yang paling banyak memakan ruang dan bersihkan apa yang aman untuk dihapus.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengukur pemakaian disk terlebih dahulu, hanya menghapus file cache yang akan dibuat ulang sendiri, dan memindahkan apa pun yang lebih berisiko ke Tempat Sampah agar Anda bisa memulihkannya. Setiap tindakan penghapusan dicatat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah akan menghapus file pribadi saya?
Tidak. Selain cache murni, item dipindahkan ke Tempat Sampah dan tidak langsung dihapus permanen, dan agent bertanya dulu sebelum tindakan yang mahal.
Di mana log disimpan?
Di folder log milik skill di dalam folder Library Anda, yang mencantumkan setiap tindakan yang dilakukan.
Apa bedanya dengan pembersih satu klik?
Skill ini dibuat agar transparan dan bisa dibatalkan, dengan menunjukkan apa yang akan dihapus dan alasannya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8887
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
owasp-security
33kMengajari agent Anda panduan keamanan OWASP untuk aplikasi web, API, mobile, kontainer, dan agent AI, sehingga bisa menemukan kelemahan umum dan menyarankan perbaikan.
agent-management
33kMembiarkan agent Anda membuat, mencantumkan, menidurkan, membangunkan, mengganti nama, dan menghapus agent AI menggunakan baris perintah AI Maestro, sambil mengelola siklus hidup setiap agent.
agent-messaging
33kMembiarkan agent Anda mengirim, menerima, dan membalas pesan bertanda tangan antaragent AI, menggunakan Agent Messaging Protocol, sebagian besar di mesin Anda sendiri.
docs-search
33kMembiarkan agent Anda mencari dokumentasi kode yang dibuat otomatis untuk tanda tangan fungsi, definisi kelas, dan komentar, sehingga agent memeriksa API yang sebenarnya sebelum mengubah kode.
Skill serupa
blucli
394kMembantu agent Anda menemukan, memutar, menjeda, mengelompokkan, dan mengatur volume speaker Bluesound dan NAD lewat perintah blu.
camsnap
394kMembantu agent Anda mengambil foto, klip pendek, atau peristiwa gerakan dari kamera jaringan dan webcam lokal yang sudah Anda atur.
eightctl
394kMembantu agent Anda memeriksa dan mengendalikan perangkat Eight Sleep, termasuk suhu, alarm, dan jadwal tidurnya.