NikOneZ1

Mac Space Cleaner — Development skill for Claude Code

Development community

Safely free up disk space on macOS from Claude Code — scan, review, and delete only what you approve.

How to install Mac Space Cleaner

This entry records only its repository, not the path inside it, so there is no exact command to give. Open NikOneZ1/mac-space-cleaner and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Mac Space Cleaner does

Safely free up disk space on macOS from Claude Code — scan, review, and delete only what you approve.

Alternatives in Development

  • System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★
  • Huashu Mac Use — 让任何 agent 操控 Mac 上没有 API 的原生 app,读后台、写不打扰、每步留取证 · Agent Skill for macOS computer use 228 ★
  • Applemusic MCP — Apple Music MCP server: playlists, library, catalog, playback and the Up Next queue, on macOS, Windows and Lin 118 ★

README

🧹 mac-space-cleaner

A **safe, interactive** macOS disk-space cleanup skill for [Claude Code](https://claude.com/claude-code).

Your Mac says the disk is full but you "did almost nothing"? This skill finds the space that quietly disappeared — app caches, developer & AI-model caches, Trash, Xcode build data, Docker images, and **leftover data from apps you uninstalled long ago** — and reclaims it. It **scans first, shows you a report, and deletes only what you approve.** Nothing is removed without your say-so.

Built after a real session that recovered **~100 GB** (5 GB → 103 GB free).


Install

In Claude Code:

/plugin marketplace add NikOneZ1/mac-space-cleaner
/plugin install mac-space-cleaner@mac-space-cleaner

Then just ask, or run the command:

/mac-space-cleaner:free-space

…or say *"my Mac is low on space, clean it up"* and Claude will invoke it.

To update later: `/plugin marketplace update mac-space-cleaner`.


What it does

  1. Scans (read-only) every common space sink on macOS and prints a report grouped by safety.
  2. Summarizes the biggest wins with sizes.
  3. Asks which categories you want to clean (multi-select).
  4. Deletes only the approved groups, using safe per-category recipes.
  5. Reports before/after free space and what it intentionally left.

Categories it checks

Category Examples Safety
App caches ~/Library/Caches, Electron web caches ♻️ regenerates
Developer caches npm, uv, pip, yarn, pnpm, cargo, gradle, maven, go, bun, CocoaPods, Playwright, Homebrew ♻️ regenerates
Local AI models Ollama, HuggingFace, Torch, LM Studio ⬇️ re-downloadable
Trash ~/.Trash ♻️
Xcode / iOS DerivedData, DeviceSupport, simulator caches ♻️ (archives/backups protected)
Docker unused images (never the data disk) 🔎 review
Uninstalled apps leftover Application Support / Containers / prefs 🔎 review
Projects stale `node_mo