cleanMyMacSkill
/install clean-my-mac
cleanMyMacSkill
Read-only storage analyzer for macOS, Windows, and Linux. Produces an interactive, Apple-style web-based dashboard with safe one-click cleanup integrations.
Core Directives
- Read-Only Scanner. The scanning phase only uses safe operations (e.g.,
df,du,stat,ls). Direct modifications or deletions are strictly prohibited during scanning. - Interactive Deletions. In server mode, users can click "Move to Trash" or "Hard Delete" on the web page. The backend validates paths against strict session tokens and home boundaries.
- Accurate Estimates. Explicitly mark any reclaimable space values as estimates.
- Retain Command Snippets. Keep absolute paths and terminal command snippets exactly as they are (do not translate paths).
Execution Pipeline
Step 1: Run Storage Scan
Execute the multi-threaded scan script to collect filesystem size metadata:
python3 scripts/scan.py > /tmp/storage_scan.json
The script detects the OS automatically and concurrently queries cache targets, user folders, and developer structures using standard ThreadPoolExecutor. Denied folders are marked as denied.
Step 2: Interpret & Segment
Read /tmp/storage_scan.json. Load references at references/macos.md, references/windows.md, or references/linux.md depending on the OS platform. Perform the following checks:
- Identify Top 5 Space Consumers: Mark their types (User files, databases, developer caches, VM files, etc.).
- Track App Sandbox Folders: Correlate UUID folders in containers back to their parent bundle-id names.
- Partition into Clean Tiers:
- ๐ข Safe to Clean: Caches, logs, package registers. Offer one-click trashing or direct deletions.
- ๐ก Needs Review: Personal documents, downloads, active database container folders. Enable opening in the file manager or trashing verified safe subfolders.
- ๐ด Caution: Software application packages. Guide users to uninstall manually via official settings.
Step 3: Compile and Serve Report
Inject the interpreted classification JSON into the template. Use the server script for interactive dashboard functionality:
python3 scripts/server.py /tmp/storage_analysis.json
Alternatively, compile a static HTML file:
python3 scripts/build_report.py /tmp/storage_analysis.json ~/Desktop/cleanmymac-report.html
Step 4: Dialogue Summary
Once generated, output a concise summary in the chat:
- Total space scanned and free space remaining.
- Estimated reclaimable capacity.
- Top 2-3 cleanup priorities and potential risks.
Platform Prerequisites
- Runs on Python 3 Standard Library (no pip dependencies).
- Compatible with macOS, Linux (Freedesktop compliant trashing), and Windows.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clean-my-mac - After installation, invoke the skill by name or use
/clean-my-mac - Provide required inputs per the skill's parameter spec and get structured output
What is cleanMyMacSkill?
macOS / Windows / Linux read-only storage analysis helper. Scans disk usage, finds large files/directories, divides items into ๐ขSafe to Clean / ๐กNeeds Revi... It is an AI Agent Skill for Claude Code / OpenClaw, with 51 downloads so far.
How do I install cleanMyMacSkill?
Run "/install clean-my-mac" in the OpenClaw or Claude Code chat to install it in one step โ no extra setup required.
Is cleanMyMacSkill free?
Yes, cleanMyMacSkill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does cleanMyMacSkill support?
cleanMyMacSkill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created cleanMyMacSkill?
It is built and maintained by waiwai (@peizhou); the current version is v1.0.1.