Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

macos-cleaner

БесплатноЗапускает вложенные скриптыНе проверен

Diagnoses and safely reclaims macOS disk space: caches, logs, app remnants, large/duplicate files, Docker/OrbStack, Chromium code-sign clones, developer…

daymadeот 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. **Use precise supported controls — and check them for known defects fi
Полный SKILL.md на GitHub

Установить macos-cleaner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/apfs-shared-blocks.mdreferences/apple_content_caching.mdreferences/batch-selection.mdreferences/chromium_code_sign_clones.mdreferences/cleanup_targets.mdreferences/docker_analysis.mdreferences/external-cold-archives.mdreferences/generated-payload-plans.mdreferences/growth_attribution.mdreferences/mole_integration.mdreferences/proving-redundancy-before-deletion.mdreferences/report_templates.mdreferences/safety_rules.mdreferences/storage-diagnosis.mdreferences/task-evidence-closeout.mdscripts/_apfs_core.pyscripts/_apfs_native.pyscripts/analyze_caches.pyscripts/analyze_code_sign_clones.pyscripts/analyze_dev_env.pyscripts/analyze_large_files.pyscripts/apfs_cow.pyscripts/batch_budget.pyscripts/check_gate_plan.pyscripts/cleanup_report.pyscripts/find_app_remnants.pyscripts/measure_apfs_allocation.pyscripts/relocate_directory.pyscripts/safe_delete.pyscripts/storage_diagnosis.pyscripts/stream_accounting.pyscripts/task_evidence_archive.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить macos-cleaner с