
Mole Mac Cleaner
- 1.4k installs
- 66 repo stars
- Updated July 9, 2026
- aradotso/trending-skills
mole-mac-cleaner is an agent skill that deep clean and optimize your mac using the mole cli tool.
About
mole-mac-cleaner is an agent skill from aradotso/trending-skills that deep clean and optimize your mac using the mole cli tool. # Mole Mac Cleaner > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. Mole (`mo`) is an all-in-one macOS maintenance CLI that combines deep cleaning, smart app uninstallation, disk analysis, system optimization, live monitoring, and project artifact purging into a single binary. ## Installation ```bash # Via Homebrew (recommend Developers invoke mole-mac-cleaner during idea/discover work for ai & agent building tasks. The skill documents triggers, prerequisites, and step-by-step workflows grounded in SKILL.md. Compatible with Claude Code, Cursor, and Codex agent runtimes that load marketplace skills. Review the Security Audits panel on this listing before installing in production environments. Category AI & Agent Building with ai vertical focus supports repeatable agent-guided delivery.
- Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
- Via Homebrew (recommended)
- Via install script (supports version pinning)
- curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
- curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s 1.17.0
Mole Mac Cleaner by the numbers
- 1,362 all-time installs (skills.sh)
- +13 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #845 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
- Security screen: CRITICAL risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
mole-mac-cleaner capabilities & compatibility
- Capabilities
- skill by [ara.so](https://ara.so) — daily 2026 s · via homebrew (recommended) · via install script (supports version pinning) · curl fssl https://raw.githubusercontent.com/tw9
- Use cases
- orchestration
What mole-mac-cleaner says it does
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s 1.17.0
npx skills add https://github.com/aradotso/trending-skills --skill mole-mac-cleanerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.4k |
|---|---|
| repo stars | ★ 66 |
| Security audit | 1 / 3 scanners passed |
| Last updated | July 9, 2026 |
| Repository | aradotso/trending-skills ↗ |
What it does
Deep clean and optimize your Mac using the Mole CLI tool
Who is it for?
Developers working on ai & agent building during idea tasks.
Skip if: Tasks outside AI & Agent Building scope described in SKILL.md.
When should I use this skill?
Deep clean and optimize your Mac using the Mole CLI tool
What you get
Completed ai & agent building workflow aligned with SKILL.md steps.
- Disk space reclaimed
- Removed app remnants
- Disk usage and system health reports
By the numbers
- Mole CLI combines 6 maintenance capability areas in one binary
Files
Mole Mac Cleaner
Skill by ara.so — Daily 2026 Skills collection.
Mole (mo) is an all-in-one macOS maintenance CLI that combines deep cleaning, smart app uninstallation, disk analysis, system optimization, live monitoring, and project artifact purging into a single binary.
Installation
# Via Homebrew (recommended)
brew install mole
# Via install script (supports version pinning)
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
# Specific version
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s 1.17.0
# Latest main branch (nightly)
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s latestCore Commands
mo # Interactive menu (arrow keys or vim h/j/k/l)
mo clean # Deep system cache + browser + dev tool cleanup
mo uninstall # Remove apps plus all hidden remnants
mo optimize # Rebuild caches, reset network, refresh Finder/Dock
mo analyze # Visual disk space explorer
mo status # Live real-time system health dashboard
mo purge # Remove project build artifacts (node_modules, target, dist)
mo installer # Find and remove installer .dmg/.pkg files
mo touchid # Configure Touch ID for sudo
mo completion # Set up shell tab completion
mo update # Update Mole
mo update --nightly # Update to latest unreleased build (script install only)
mo remove # Uninstall Mole itself
mo --help
mo --versionSafe Preview Before Deleting
Always dry-run destructive commands first:
mo clean --dry-run
mo uninstall --dry-run
mo purge --dry-run
# Combine with debug for detailed output
mo clean --dry-run --debug
mo optimize --dry-run --debugKey Command Details
mo clean — Deep Cleanup
Cleans user app caches, browser caches (Chrome, Safari, Firefox), developer tool caches (Xcode, Node.js, npm), system logs, temp files, app-specific caches (Spotify, Dropbox, Slack), and Trash.
mo clean # Interactive cleanup
mo clean --dry-run # Preview what would be removed
mo clean --whitelist # Manage protected caches (exclude from cleanup)Whitelist config lives at ~/.config/mole/. Edit it to protect paths you want to keep.
mo uninstall — Smart App Removal
Finds apps, shows size and last-used date, then removes the app bundle plus all related files:
- Application Support, Caches, Preferences
- Logs, WebKit storage, Cookies
- Extensions, Plugins, Launch Daemons
mo uninstall # Interactive multi-select list
mo uninstall --dry-run # Preview removalsmo optimize — System Refresh
mo optimize # Run all optimizations
mo optimize --dry-run # Preview
mo optimize --whitelist # Exclude specific optimizationsOptimizations include:
- Rebuild system databases and clear caches
- Reset network services
- Refresh Finder and Dock
- Clean diagnostic and crash logs
- Remove swap files and restart dynamic pager
- Rebuild launch services and Spotlight index
mo analyze — Disk Explorer
mo analyze # Analyze home directory (skips /Volumes by default)
mo analyze ~/Downloads # Analyze specific path
mo analyze /Volumes # Include external drives explicitly
# Machine-readable output for scripting
mo analyze --json ~/DocumentsJSON output example:
{
"path": "/Users/you/Documents",
"entries": [
{ "name": "Library", "path": "...", "size": 80939438080, "is_dir": true }
],
"total_size": 168393441280,
"total_files": 42187
}Navigator shortcuts inside `mo analyze`:
| Key | Action |
|---|---|
↑↓ or j/k | Navigate list |
←→ or h/l | Go back / Enter directory |
O | Open in Finder |
F | Reveal in Finder |
⌫ | Move to Trash (via Finder, safer than direct delete) |
L | Show large files |
Q | Quit |
mo status — Live Dashboard
mo status # Real-time CPU, GPU, memory, disk, network, processes
mo status --json # JSON output for scripting
mo status | jq '.health_score' # Auto-detects pipe → outputs JSONJSON output example:
{
"host": "MacBook-Pro",
"health_score": 92,
"cpu": { "usage": 45.2, "logical_cpu": 8 },
"memory": { "total": 25769803776, "used": 15049334784, "used_percent": 58.4 },
"disks": [],
"uptime": "3d 12h 45m"
}Shortcuts inside mo status: k toggles the cat mascot, q quits.
mo purge — Project Artifact Cleanup
Scans for node_modules, target, build, dist, venv, and similar directories. Projects newer than 7 days are unselected by default.
mo purge # Interactive multi-select
mo purge --dry-run # Preview
mo purge --paths # Configure custom scan directoriesConfigure custom scan paths (~/.config/mole/purge_paths):
~/Documents/MyProjects
~/Work/ClientA
~/Work/ClientBWhen this file exists, Mole uses only those paths. Otherwise it defaults to ~/Projects, ~/GitHub, ~/dev.
Installfdfor faster scanning:brew install fd
mo installer — Installer File Cleanup
mo installer # Find .dmg/.pkg files in Downloads, Desktop, Homebrew cache, iCloud, Mail
mo installer --dry-run # Preview removalsConfiguration Files
All config lives in ~/.config/mole/:
| File | Purpose |
|---|---|
purge_paths | Custom directories for mo purge to scan |
operations.log | Log of all file operations |
Disable operation logging:
export MO_NO_OPLOG=1
mo cleanShell Tab Completion
mo completion # Interactive setup for bash/zsh/fishTouch ID for sudo
mo touchid # Enable Touch ID authentication for sudo commands
mo touchid enable --dry-runScripting & Automation Patterns
Check disk health in a script
#!/bin/bash
health=$(mo status --json | jq -r '.health_score')
if [ "$health" -lt 70 ]; then
echo "Health score low: $health — running cleanup"
mo clean --dry-run # swap to `mo clean` when ready
fiGet largest directories as JSON and process with jq
mo analyze --json ~/Downloads | jq '.entries | sort_by(-.size) | .[0:5] | .[] | {name, size_gb: (.size / 1073741824 | . * 100 | round / 100)}'Automated project purge in CI teardown
#!/bin/bash
# Non-interactive purge of build artifacts after CI
MO_NO_OPLOG=1 mo purge --dry-run # always preview first in scriptsRaycast / Alfred quick launchers
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
# Then bind `mo clean`, `mo status`, `mo analyze` as script commands in RaycastSafety Boundaries
mo analyzemoves files to Trash via Finder (recoverable) instead of direct deletion — prefer it for ad hoc cleanupclean,uninstall,purge,installer, andremoveare permanently destructive — always--dry-runfirst- Mole validates paths and enforces protected-directory rules; it skips or refuses high-risk operations
- Operation log:
~/.config/mole/operations.log— disable withMO_NO_OPLOG=1 - Review SECURITY.md and SECURITY_AUDIT.md before using in automated pipelines
Troubleshooting
| Problem | Solution |
|---|---|
mo: command not found | Run brew install mole or re-run install script; check $PATH |
| Purge scan is slow | Install fd: brew install fd |
| External drives not appearing in analyze | Run mo analyze /Volumes explicitly |
| Want to protect a cache from being cleaned | Run mo clean --whitelist to add it |
| Need to exclude an optimization step | Run mo optimize --whitelist |
| Script getting interactive prompts | Use --dry-run flag; check for MO_NO_OPLOG=1 env var |
| Nightly update not working | Nightly updates (--nightly) only work with script install, not Homebrew |
Update & Remove
mo update # Update to latest stable
mo update --nightly # Update to latest main (script install only)
mo remove # Uninstall Mole completely
mo remove --dry-run # Preview what remove would deleteRelated skills
How it compares
Use mole-mac-cleaner when you want a unified Mac maintenance CLI instead of separate du, uninstaller, and manual rm scripts for dev artifacts.
FAQ
What does mole-mac-cleaner do?
Deep clean and optimize your Mac using the Mole CLI tool
When should I use mole-mac-cleaner?
During idea discover work for ai & agent building.
Is mole-mac-cleaner safe to install?
Review the Security Audits panel on this listing before production use.