housekeeping
БесплатноЗапускает вложенные скриптыНе проверенUse when macOS disk space is low, "disk full", 硬碟空間不夠, startup disk almost full, or before installing something large — diagnoses what is eating space and…
от htlin222★ 78 звёзд на GitHubОб этом скилле
macOS Disk Housekeeping
Overview
Diagnose → reclaim safe targets → verify. Known-safe cleanup only; never touch personal data. reference/prune.sh automates the whole flow (dry-run by default).
Diagnosis
df -h /System/Volumes/Data # the REAL usage (df / shows the sealed system snapshot)
du -sh ~/Library/* | sort -rh | head # usual suspects
du -sh ~/* ~/.[a-z]* 2>/dev/null | sort -rh | head
tmutil listlocalsnapshots / # MSUPrepareUpdate = staged macOS update
Known hogs on this machine (2026-07 findings)
| Target | Typical size | Action |
|---|---|---|
~/Library/Application Support/Claude/vm_bundles |
~10G | delete if VM not running (pgrep -fl claudevm); rebuilds on demand |
~/Library/pnpm store |
7G+ | pnpm store prune |
~/Library/Caches/{com.spotify.client,BraveSoftware,Google,com.brave.Browser,pip,go-build,node-gyp} |
~4G | delete outright |
~/.cache/uv |
2G+ | uv cache prune (remainder is referenced by live venvs — leave it) |
/opt/homebrew |
20G+ | brew cleanup --prune=all && brew autoremove |
MSUPrepareUpdate snapshot |
few GB | finish the pending macOS update (reboot) — softwareupdate -l to see it |
Do NOT delete
~/Library/Caches/ms-playwright*— breaks E2E untilplaywright install~/.cache/codex-runtimes— Codex plugin runtime~/Pictures,~/Library/Group Containers, Mail — personal data- leftover
~/.cache/uvafter prune — hardlinked into venvs
Gotchas
ripdoes not free space. It moves files to/tmp/graveyard-$USERon the same volume. After ripping large targets runyes | rip --decomposeand re-checkdf.brew cleanupfrees nothing when packages are outdated — it only deletes versions older than the installed-latest. Upgrade first if you want real savings.uv cache prunevsclean: prune keeps in-use entries (correct); clean wipes all (pointless — hardlinked files free nothing).
Automation
reference/prune.sh # dry-run report of known-safe targets
reference/prune.sh --apply # actually clean them
# Find NEW candidates: large + old + cold, ranked by "storage rent"
# (score = size_GB × idle_days; gates on created>180d AND atime>90d;
# top hits cross-checked with Spotlight kMDItemLastUsedDate)
reference/clean-large-and-olds.sh # scan $HOME, top 20
reference/clean-large-and-olds.sh --root DIR --min-size 50 --top 30
clean-large-and-olds.sh is report-only — review, then rip <paths> + yes | rip --decompose.
Установить housekeeping в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл housekeeping?
Use when macOS disk space is low, "disk full", 硬碟空間不夠, startup disk almost full, or before installing something large — diagnoses what is eating space and reclaims it safely
Как установить скилл housekeeping?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл housekeeping запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic