Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mac-storage-cleaner

Skill by davila7

Mac Storage Cleaner frees disk space on macOS by surveying usage first and clearing only pure caches. Riskier items go to the Trash so they can be restored. It is for Mac users whose startup disk is full or nearly full.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mac-storage-cleaner

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/productivity/mac-storage-cleaner ~/.claude/skills/mac-storage-cleaner

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mac-storage-cleaner in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Mac Storage Cleaner is an agent skill that helps reclaim disk space on a Mac. It starts with a read-only survey that reports free space and sizes caches on the machine, grouped into safe, ask, never and app-data categories. It then clears only a vetted safe allowlist of pure caches, runs Homebrew cleanup, and removes unavailable simulators. Anything riskier, such as app leftovers and big files, is moved to the Trash with a script so the user can restore it. Every deletion is logged, and the skill reports before and after free space.

The skill is aimed at Mac users whose disk is full or who get a low-storage warning. It accepts requests in any language, and the source gives examples in English and Georgian. It is not meant for cloud storage, RAM, or a single app's own cache button.

Written from the project's SKILL.md and checked against it.

What it can do

  • Storage surveyReports free space and sizes caches on the machine, grouped by safety tier.
  • Safe tier cleanupDeletes only a vetted allowlist of pure caches and logs each deletion.
  • Trash-based removalMoves riskier items to the Trash with trash-items.sh so they can be restored.
  • Ask-tier recommendationsLists large caches such as Docker images, ML models and Xcode Archives for the user to choose.
  • Leftover and large file scanFinds leftover data from uninstalled apps, files over 500MB, installers and old Downloads.
  • Before and after reportReports free space before and after, with the list of cleared items and the log path.

What you need

  • macOS
  • Bash shell (Terminal)
  • Finder Automation permission for trashing items

Try asking

  • My Mac disk is almost full. Survey it and clear what is safe.
  • Find what is eating my storage, including leftovers from apps I uninstalled.
  • Clean caches on my Mac and move anything risky to the Trash.

Good to know

  • Does not handle cloud storage, RAM or memory pressure, or a single app's in-app cache.
  • Trashing items needs Finder Automation permission; without it, nothing is removed.
  • Freed space may show as APFS purgeable space that macOS releases on demand.
  • Never deletes iOS backups, Photos or Mail data, keychains, or Time Machine snapshots.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: cli-tool/components/skills/productivity/mac-storage-cleaner/SKILL.md, cli-tool/components/skills/productivity/mac-storage-cleaner/scripts/clean-safe.sh, cli-tool/components/skills/productivity/mac-storage-cleaner/scripts/find-extras.sh, cli-tool/components/skills/productivity/mac-storage-cleaner/scripts/lib.sh, cli-tool/components/skills/productivity/mac-storage-cleaner/scripts/survey.sh, cli-tool/components/skills/productivity/mac-storage-cleaner/scripts/trash-items.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/cache-catalog.md11 KB
  • scripts/clean-safe.sh3 KB
  • scripts/find-extras.sh4 KB
  • scripts/lib.sh8 KB
Show all 7 files
  • scripts/survey.sh3 KB
  • scripts/trash-items.sh1 KB

Alternatives to mac-storage-cleaner

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

mac-storage-cleaner: common questions

Does it delete files without asking?

It auto-clears only pure caches from the safe tier. Everything riskier is moved to the Trash, and expensive items are only recommended for the user to choose.

Can deletions be undone?

Items moved to the Trash can be restored. Every destructive run is logged to ~/Library/Logs/mac-storage-cleaner/operations.log.

Will it delete my iOS backups or photos?

No. The source says iOS backups, the Photos library, Mail and Messages data, SSH and AWS folders, keychains and Time Machine snapshots must not be deleted.

How do I install mac-storage-cleaner?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mac-storage-cleaner free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mac-storage-cleaner safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mac-storage-cleaner?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

mac-storage-cleaner Install

Add to stack

Loading.