macos-cleaner
БесплатноЗапускает вложенные скриптыНе проверенDiagnoses and safely reclaims macOS disk space: caches, logs, app remnants, large/duplicate files, Docker/OrbStack, Chromium code-sign clones, developer…
от daymade★ 1 556 звёзд на GitHubОб этом скилле
macOS Cleaner
Diagnose the actual source of disk pressure, reclaim only approved space, and prove that the cleanup did not damage user data or co-resident services.
Entry router
Choose the narrowest path that can answer the request:
| User signal | Route |
|---|---|
| Old task directories need useful work retained and intermediate state retired | Use task evidence closeout; separate implementation, originals, rebuildable output and active/unknown inputs before copying or deleting |
| A directory was already copied to an external disk; compare, sync recent work, or retire the internal copy | Start at lightweight copied-directory verification; reuse the copy and existing evidence, then use scripts/relocate_directory.py for journaled cutover and retirement |
| Move selected cold data to an SD card or external disk while retaining its original entry | Read external cold archives before copying; bind volume identity, pilot metadata fidelity, verify the retained copy and test original-path consumption before retiring the internal payload |
| Identical inactive local files must retain every path and offline availability | Read references/apfs-shared-blocks.md; use only authorized explicit pairs, native APFS checks and the bundled guarded executor |
Apple Content Caching, AssetCacheManagerUtil, CacheUsed, ActualCacheUsed, iCloud cache, or “Caching needs more space” |
Read references/apple_content_caching.md completely before probing or proposing commands |
| Docker, OrbStack, images, containers, or volumes | Read Docker analysis and object verification |
| Docker build cache | Read exact-record BuildKit eviction |
Cargo target trees or manual CI outputs |
Read references/cleanup_targets.md → Cargo and manual CI outputs before selecting files; requested test executables and unknown results can live inside dependency-named directories |
| Exact dependency/build trees, retired test Apps, release payloads or generated CI copies | Use generated-payload plan facts in Phase 2; the plan checker consumes current-use, unique-state, recovery and retention facts before returning decisions. If the target contains Git metadata, use git-safety-net Mode E before classifying any rebuildable interior |
Chrome, ChromeDriver, Playwright, Codex Computer Use, Edge, or Chromium has large *.code_sign_clone directories |
Read references/chromium_code_sign_clones.md completely; use the bundled analyzer to separate active, inactive, and unknown exact children and never equate du with physical release |
| A named cache, directory, application, or service is already the suspect | Inspect that target first and read the matching semantics in references/cleanup_targets.md; do not start a home-directory or whole-disk scan |
The user asks what has been growing or filling the disk lately, free space fell between two readings, or an older scan export exists (GrandPerspective text export, saved du output) |
Read references/growth_attribution.md; answer with a delta table whose rows name their writer, not a size ranking |
| The source is genuinely unknown | Use the general analysis workflow below; Mole is optional, not the universal first step |
User-provided scope exclusions override every generic scan suggestion. Do not inspect personal directories, credentials, databases, application state, or unrelated services when the user excludes them.
Safety and authorization contract
- Separate observation from mutation. Complete a read-only diagnosis first. Do not delete, stop a service, edit settings, install or upgrade tools, or run a cleanup preview that may mutate state during that phase.
- Confirm the exact target. On a remote Mac, record the current host identity before any other work. Never infer the machine from an IP, old PID, directory name, or prior report.
- Plan before asking. Before any state change, list every command, what it changes, expected physical space reclaimed, impact, recoverability, and postconditions. Then stop if the user requested a plan-only phase.
- Resolve existing authorization before asking. If the user supplies an exact confirmation phrase, require that phrase. Otherwise reuse an explicit cleanup instruction within its stated scope and conditions. For “clean anything proven safe,” bind exact targets to verified disposable contents, inactivity, retained source/state and restoration cost, then execute those targets without asking again. Unknown contents, unique work, active resources or wider scope need a separate decision; a peer's non-use report supplies evidence, never authorization.
- **Use precise supported controls — and check them for known defects fi
Установить macos-cleaner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл macos-cleaner?
Diagnoses and safely reclaims macOS disk space: caches, logs, app remnants, large/duplicate files, Docker/OrbStack, Chromium code-sign clones, developer caches. Use when a Mac is low on storage, shows “Caching needs more space”, when consolidating old task evidence, or before deleting anything to avoid data loss. Not for Windows/Linux or permission issues (use macos-permissions).
Как установить скилл macos-cleaner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл macos-cleaner запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic