← Back to Skills Marketplace
apprithm

Mac Cleaner - Because your Mac shouldn't have more baggage than your ex.

by Jason · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
404
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install mac-cleaner
Description
Analyze and safely clean disk space on macOS. Use when the user asks about Mac storage, "System Data" taking too much space, disk cleanup, freeing up space,...
README (SKILL.md)

Mac Cleaner

Safely analyze and reclaim disk space on macOS. Designed for everyday Mac users — no technical knowledge required.

When to use

  • "My Mac says System Data is taking too much space"
  • "How do I free up disk space?"
  • "Why is my disk full?"
  • "Clean up my Mac storage"
  • "What's taking up space on my Mac?"

What this skill covers

Category Safe to Clean Notes
User Caches ✅ Yes App temporary files
iOS Simulators ✅ Yes Unused simulator devices
Xcode Derived Data ✅ Yes Build artifacts (rebuildable)
Browser Caches ✅ Yes Chrome, Safari, Firefox
System Logs ✅ Old only 7+ days old, requires sudo
Trash ✅ Yes Empty trash
iOS Backups ⚠️ Review Check if backups are needed
Parallels VMs ⚠️ Review Only if Windows not needed
Time Machine Snapshots ⚠️ Review Can delete old snapshots

NEVER delete

  • /System folder contents
  • /Library/Extensions or kernel extensions
  • /private/var/db (system databases)
  • Active iOS backups you need
  • Parallels VMs you use

Quick start

Analyze (safe, read-only)

bash scripts/mac-cleanup.sh analyze

Shows disk usage and identifies large items without making changes.

Clean (with confirmation)

bash scripts/mac-cleanup.sh clean

Performs safe cleanup after user confirmation.

What gets cleaned

  1. User Caches (~/Library/Caches/*)

    • App temporary files, thumbnails, downloaded content
    • Safe: apps rebuild these automatically
  2. Xcode Derived Data (~/Library/Developer/Xcode/DerivedData/*)

    • Build artifacts and intermediate files
    • Safe: rebuilds on next compile
  3. iOS Simulators (unavailable devices only)

    • Old iOS simulator images
    • Safe: easily re-downloaded via Xcode
  4. Browser Caches

    • Chrome, Safari, Firefox cache files
    • Safe: websites reload, login sessions preserved
  5. Old System Logs (7+ days)

    • Requires sudo password
    • Preserves recent logs for debugging
  6. Trash

    • Empties .Trash folder
    • Safe: user already chose to delete these

Manual cleanup for large items

If the script identifies large items you want to handle manually:

iOS Device Backbacks (~/Library/Application Support/MobileSync/Backup)

# List backups
ls -lah ~/Library/Application\ Support/MobileSync/Backup/

# Delete specific backup (use folder name from above)
rm -rf ~/Library/Application\ Support/MobileSync/Backup/[FOLDER_NAME]

Or use Finder → Locations → [Your iPhone] → Manage Backups

Time Machine Local Snapshots

# List snapshots
tmutil listlocalsnapshots /

# Delete all local snapshots
sudo tmutil deletelocalsnapshots /

# Or delete specific date
sudo tmutil deletelocalsnapshots 2024-01-15-123456

Parallels VMs

Open Parallels Desktop:

  • Right-click VM → Reclaim Disk Space (safest)
  • Or Delete if you don't need Windows

WeChat / Large Apps

Clear from within the app:

  • WeChat: Settings → General → Storage → Manage
  • Telegram: Settings → Data and Storage → Storage Usage
  • Slack: Help → Troubleshooting → Clear Cache

Large folders to review manually

Path What it is Safe to delete?
~/Downloads Downloaded files Review first
~/Movies Videos Review first
~/Parallels Windows VMs Only if not using
~/Library/Containers/com.tencent.xinWeChat WeChat data Clear from WeChat app
~/Library/Application Support App data Review per app

Expected results

Typical cleanup results for an everyday Mac user:

  • Light user: 2-5 GB freed
  • Developer: 20-50 GB freed (Xcode, simulators)
  • Heavy messaging apps: 50-100 GB freed (WeChat, Telegram)
  • With VMs: 50-200 GB freed (if deleting Parallels)

Troubleshooting

"Operation not permitted" errors

Grant Terminal Full Disk Access:

  1. System Settings → Privacy & Security → Full Disk Access
  2. Add Terminal (or iTerm)
  3. Restart terminal

Cleanup didn't free much space

Run the analyze mode again:

bash scripts/mac-cleanup.sh analyze

Look for:

  • iOS device backups (often 50-200GB)
  • Parallels VMs (20-100GB each)
  • WeChat/Telegram data (can be 100GB+)
  • Time Machine snapshots (can accumulate)

These require manual review before deletion.

References

Usage Guidance
This skill appears to do what it says: local analysis and safe cleanup of common macOS space hogs. Before using it: (1) Inspect the script yourself (it uses rm -rf on user caches, Xcode DerivedData, and other directories and sudo for old logs). (2) Run analyze mode first (bash scripts/mac-cleanup.sh analyze) to review what it would remove. (3) Back up or verify important items (iOS backups, Parallels VMs, Downloads, Time Machine snapshots) before deleting. (4) Only grant Full Disk Access or run sudo commands if you understand the implications. (5) If you don't want an agent to run destructive actions automatically, keep this skill user-invocable and run the cleanup manually after confirming prompts.
Capability Analysis
Type: OpenClaw Skill Name: mac-cleaner Version: 1.0.0 The OpenClaw AgentSkills skill bundle 'mac-cleaner' is classified as benign. Both the `SKILL.md` documentation and the `scripts/mac-cleanup.sh` script are transparent and align with the stated purpose of safely cleaning disk space on macOS. The script uses `rm -rf` and `sudo` for cleanup, but these operations are highly targeted at temporary files, caches, and old logs, avoiding critical system directories. Crucially, the `clean` mode in the script requires explicit user confirmation before any modifications are made, significantly mitigating potential risks. There is no evidence of data exfiltration, persistence mechanisms, obfuscation, or malicious prompt injection attempts against the agent.
Capability Assessment
Purpose & Capability
The name/description promise (analyze and clean macOS disk space) matches the included SKILL.md and the provided shell script: it inspects home folders, caches, Xcode derived data, simulators, browser caches, trash, and optionally system logs. No unrelated capabilities (cloud access, networking, unrelated credentials) are requested.
Instruction Scope
SKILL.md tells the agent to run the bundled script in analyze or clean modes and includes manual commands for Time Machine, backups, and rm -rf of backup folders. The script performs destructive local operations (rm -rf on caches, DerivedData, simulator cleanup, sudo-based log deletions and uses osascript to empty Trash). These actions are coherent with the purpose but are inherently destructive—the skill prompts for confirmation before cleaning and warns about items that require review.
Install Mechanism
No install spec or external downloads. This is an instruction-only skill with a bundled bash script; nothing is fetched from remote URLs and no new binaries are installed.
Credentials
The skill requires no environment variables, no credentials, and no config paths. It does reference sudo for removing old logs, which is proportional to cleaning system logs and is documented in SKILL.md.
Persistence & Privilege
always is false and the skill is user-invocable. The default ability for an agent to invoke the skill autonomously is enabled (disable-model-invocation=false) — this is platform default. Because the skill can run a local cleanup script that performs deletions, allow autonomous invocation only if you trust the agent's decision-making; otherwise restrict invocation and run the script manually after review.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mac-cleaner
  3. After installation, invoke the skill by name or use /mac-cleaner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Is "System Data" eating 300GB like a hungry teenager at a buffet? Is your Mac wheezing every time you open Photos? We've all been there — frantically deleting old screenshots while macOS laughs and hides the actual space hogs in 47 nested folders named things like com.apple.parsecd. This skill finds the culprits (caches, iOS simulators, Xcode's "I might need this later" pile, and that 80GB WeChat folder you forgot existed) and safely evicts them. It's like Marie Kondo for your Mac, except everything we delete actually doesn't spark joy. Side effects may include: Finally having room for that 4K movie you definitely won't watch, your Mac not sounding like a jet engine, and the smug satisfaction of knowing exactly where your storage went.
Metadata
Slug mac-cleaner
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Mac Cleaner - Because your Mac shouldn't have more baggage than your ex.?

Analyze and safely clean disk space on macOS. Use when the user asks about Mac storage, "System Data" taking too much space, disk cleanup, freeing up space,... It is an AI Agent Skill for Claude Code / OpenClaw, with 404 downloads so far.

How do I install Mac Cleaner - Because your Mac shouldn't have more baggage than your ex.?

Run "/install mac-cleaner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Mac Cleaner - Because your Mac shouldn't have more baggage than your ex. free?

Yes, Mac Cleaner - Because your Mac shouldn't have more baggage than your ex. is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Mac Cleaner - Because your Mac shouldn't have more baggage than your ex. support?

Mac Cleaner - Because your Mac shouldn't have more baggage than your ex. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Mac Cleaner - Because your Mac shouldn't have more baggage than your ex.?

It is built and maintained by Jason (@apprithm); the current version is v1.0.0.

💬 Comments