By loevlie
macOS system cleanup that replicates CleanMyMac X via terminal. Cleans caches, logs, Xcode junk, package manager caches, iOS backups, mail attachments, and more. Safe by default with dry-run scan mode.
A free, open-source Claude Code plugin that replicates what CleanMyMac X does — entirely via terminal. No app to install, no subscription, no GUI.
Just type /clean-my-mac in Claude Code and it handles the rest.
| Command | What it does |
|---|---|
/clean-my-mac | Full cleanup with safe defaults |
/clean-my-mac scan | Dry run — shows reclaimable space, cleans nothing |
/clean-my-mac full | Aggressive cleanup (includes iOS backups, Docker, mail) |
/clean-my-mac caches | Clear caches only |
/clean-my-mac logs | Clear logs only |
/clean-my-mac xcode | Clear Xcode junk only |
/clean-my-mac dev | Clear dev tool caches only |
/clean-my-mac mail | Clear mail downloads only |
/clean-my-mac trash | Empty all trash bins |
/clean-my-mac ios | Remove old iOS backups |
/clean-my-mac maintenance | Run macOS maintenance scripts |
/clean-my-mac large-files | Find large files (>100MB) |
/clean-my-mac old-files | Find files untouched for 6+ months |
Add the marketplace and install:
/plugin marketplace add loevlie/clean-my-mac-plugin
/plugin install clean-my-mac@loevlie
Or manually clone and point Claude Code at it:
git clone https://github.com/loevlie/clean-my-mac-plugin.git
claude --plugin-dir ./clean-my-mac-plugin/plugins/clean-my-mac
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub loevlie/clean-my-mac-plugin --plugin clean-my-macApple-native MCP server with production governance built in — HMAC-chained audit log, per-call HITL, OAuth 2.1 + Resource Indicators, scope gate, rate limit, emergency stop file. 272 tools across 29 modules: Calendar, Notes, Mail, Reminders, Contacts, Messages, Music, Finder, Safari, Photos, Maps, Podcasts, Weather, iWork, Google Workspace, Apple Intelligence, UI Automation, Shortcuts, Context Memory. Native Swift bridges into EventKit, HealthKit, PhotoKit, Vision, Foundation Models. macOS local-first, multi-client (Claude, Codex, opencode, Gemini CLI, Antigravity, Cursor, Zed, Cline, ChatGPT MCP Apps).
Automates macOS apps via Apple Events using AppleScript (discovery) and JXA (production logic). Use when asked about AppleScript, JXA, osascript, or macOS app automation.
Claude Code skill pack for Apple Notes (24 skills)
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns