macos-cleaner

macos-cleaner is a skill for Claude Code from daymade/claude-code-skills. It costs 87 tokens per session (9,406 once invoked), scanned D, original, MIT.

A macOS storage diagnostic and cleanup guide. It helps identify what is using disk space and reclaim approved space safely.

In plain words
What is it for?
Use it to investigate caches, logs, leftover application files, large or duplicate files, Docker and OrbStack data, Homebrew, development packages, Xcode, and Apple Content Caching.
Why use it?
It reduces the risk of deleting needed files or disrupting services while trying to free storage. It also focuses investigation on the most likely source instead of scanning everything blindly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Codex.

Part of the daymade-macos plugin — 6 skills shipped together

Good fit Use it to investigate caches, logs, leftover application files, large or duplicate files, Docker and OrbStack data, Homebrew, development packages, Xcode, and Apple Content Caching.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/macos-cleaner
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,557 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daymade/claude-code-skills --skill macos-cleaner
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-macos, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macos-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-cleaner/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/macos-cleaner)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/macos-cleaner"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-cleaner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macos-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/macos-cleaner"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,406 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 1 Dec 2026
  • Snyk warn 30 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.09406
Opus 5.5 $0.00035 $0.03762
Sonnet 5.5 $0.00017 $0.01881
Haiku 4.5 $0.00009 $0.00941

Measured today against content hash 8e57e1b76cb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

macos-cleaner scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 17 executable files (scripts/_apfs_core.py, scripts/_apfs_native.py, scripts/analyze_caches.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

The same-volume fallback is a quarantine move, not Trash: `mv` each exact approved target to a directory on the same volume (`<approved-dir>/_quarantine-<date>/`), writing a MANIFEST (original path, size, timestamp) besi

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

7. **Avoid broad destructive shell forms.** Do not recommend or execute broad `rm -rf` or glob deletion. For exact approved ordinary files, prefer Finder Trash. The bundled legacy helper permanently deletes and has only
daymade-macos/macos-cleaner/SKILL.md · 333 lines

How it starts

The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on 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
The internal disk is filling now, or a background job may be refilling it Trace the active writer first
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

Read the full file on GitHub · 333 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines 8e57e1b76cb9
  2. 2d ago Changed 09c0e1274f84
  3. 5d ago Changed · +3 lines d88c506c8bdf
  4. 7d ago Changed 8b1b0b66d98f
  5. 16d ago Changed · +6 lines · +7 tokens per session 8e32ca3eedcc
  6. 17d ago Changed · +2 lines 59e92d99e211
  7. 25d ago Changed · +1 lines 5f93c038e182
  8. 26d ago Changed · +1 lines 9bc5a96bf845
  9. 27d ago Changed · +1 lines 51bda5333399
  10. 1mo ago First seen · 318 lines · 80 tokens per session scan D 71f97f1b1ec9

Subscribe to this mod's changes

macos-cleaner is a skill published in the GitHub repository daymade/claude-code-skills (1,557 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 9,406 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

macos-cleaner compared with skills from other repositories

macos-cleaner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
macos-cleanerdaymade/claude-code-skillsSkill1.6ktodayMITD87Claude Code
orbit-notionnexu-io/open-designSkill111ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill119ktodayMITA30Claude Code, Codex
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k14d agoMITA184Claude Code
feishuHmbown/CodeWhaleSkill41k3d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k7d agoMITA52Claude Code, Codex