macos-cleaner

macos-cleaner is a skill for Claude Code, Codex from julianobarbosa/claude-code-skills. It costs 58 tokens per session (8,484 once invoked), scanned D, original, MIT.

A macOS storage-analysis and cleanup guide that identifies what is using disk space and recommends what may be safe to remove.

In plain words
What is it for?
Use it to inspect disk usage, distinguish disposable files from valuable data, and approve cleanup actions interactively.
Why use it?
It helps reclaim storage while explaining the consequences of deletion and avoiding removal of useful caches or important files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to inspect disk usage, distinguish disposable files from valuable data, and approve cleanup actions interactively.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/julianobarbosa/claude-code-skills/macos-cleaner
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 julianobarbosa/claude-code-skills --skill macos-cleaner
Clone the repo
git clone --depth 1 https://github.com/julianobarbosa/claude-code-skills

Made for: Claude Code, Codex.

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/julianobarbosa/claude-code-skills/macos-cleaner/github.svg)](https://agentmods.dev/skills/julianobarbosa/claude-code-skills/macos-cleaner)
Your own site
<a href="https://agentmods.dev/skills/julianobarbosa/claude-code-skills/macos-cleaner"><img src="https://agentmods.dev/badge/skills/julianobarbosa/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/julianobarbosa/claude-code-skills/macos-cleaner"><img src="https://agentmods.dev/badge/skills/julianobarbosa/claude-code-skills/macos-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,484 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.
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.00058 $0.08484
Opus 5 $0.00029 $0.04242
Sonnet 5 $0.00012 $0.01697
Haiku 4.5 $0.00006 $0.00848

Measured 10d ago against content hash 9c89f8cbc7ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/analyze_caches.py, scripts/analyze_dev_env.py, scripts/analyze_large_files.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.

sudo rm -rf /Library/Caches/*

Recursive force deletehighDestructive command

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

1. **Safety First, Never Bypass**: NEVER execute dangerous commands (`rm -rf`, `mo clean`, etc.) without explicit user confirmation. No shortcuts, no workarounds.
skills/macos-cleaner/SKILL.md · 1,059 lines

How it starts

The opening of the file, as written. The whole thing — 1,059 lines — stays where its author put it; the contents beside it link to each section on GitHub.

macOS Cleaner

Overview

Intelligently analyze macOS disk usage and provide actionable cleanup recommendations to reclaim storage space. This skill follows a safety-first philosophy: analyze thoroughly, present clear findings, and require explicit user confirmation before executing any deletions.

Target users: Users with basic technical knowledge who understand file systems but need guidance on what's safe to delete on macOS.

Core Principles

  1. Safety First, Never Bypass: NEVER execute dangerous commands (rm -rf, mo clean, etc.) without explicit user confirmation. No shortcuts, no workarounds.
  2. Value Over Vanity: Your goal is NOT to maximize cleaned space. Your goal is to identify what is truly useless vs valuable cache. Clearing 50GB of useful cache just to show a big number is harmful.
  3. Network Environment Awareness: Many users (especially in China) have slow/unreliable internet. Re-downloading caches can take hours. A cache that saves 30 minutes of download time is worth keeping.
  4. Impact Analysis Required: Every cleanup recommendation MUST include "what happens if deleted" column. Never just list items without explaining consequences.
  5. Patience Over Speed: Disk scans can take 5-10 minutes. NEVER interrupt or skip slow operations. Report progress to user regularly.
  6. User Executes Cleanup: After analysis, provide the cleanup command for the user to run themselves. Do NOT auto-execute cleanup.
  7. Conservative Defaults: When in doubt, don't delete. Err on the side of caution.

ABSOLUTE PROHIBITIONS:

  • ❌ NEVER run rm -rf on user directories automatically
  • ❌ NEVER run mo clean without dry-run preview first
  • ❌ NEVER use docker volume prune -f or docker system prune -a --volumes
  • ❌ NEVER skip analysis steps to save time
  • ❌ NEVER append --help to Mole commands (except mo --help)
  • ❌ NEVER recommend deleting useful caches just to inflate cleanup numbers

Workflow Decision Tree

User reports disk space issues
           ↓
    Quick Diagnosis
           ↓
    ┌──────┴──────┐
    │             │
Immediate    Deep Analysis
 Cleanup      (continue below)
    │             │
    └──────┬──────┘
           ↓
  Present Findings
           ↓
   User Confirms
           ↓
   Execute Cleanup
           ↓
  Verify Results

Read the full file on GitHub · 1,059 lines

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. 10d ago First seen · 1,059 lines · 58 tokens per session scan D 9c89f8cbc7ff

Subscribe to this mod's changes

macos-cleaner is a skill published in the GitHub repository julianobarbosa/claude-code-skills (10 stars, last pushed 14d ago), licensed MIT. It adds 58 tokens to every session and 8,484 once invoked, about $0.0003 per session on Opus 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-31.