mole-mac-tool
Skill10 starsChanged 5 months agoMITView on GitHub
Mole (https://github.com/tw93/mole) is a macOS terminal maintenance tool that replaces CleanMyMac, AppCleaner, DaisyDisk, and iStat Menus with a single binary. This skill should be used when the user asks about Mac cleanup, disk space analysis, app uninstallation, system optimization, system monitoring, or project build artifact cleanup. Triggers include: "Mole", "mo clean", "mo uninstall", "mo analyze", "mo status", "mo optimize", "mo purge", "Mac清理", "磁盘分析", "系统优化", "Mac维护", or any question about using Mole commands.
- Pipes a download into a shell
- Installs packages
In this repository4 other files it gives its agents.
- frontend-slidesSkill
- kb-lintSkill
- pptx-generatorSkill
- tool-call-repairSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 79
Read-only viewer for the operation log at ~/Library/Logs/mole/operations.log.
- Distinctive: line 105
Use keyboard to navigate, find large old files.
- Distinctive: line 150
Check if the command is destructive (clean, uninstall, optimize, purge, installer)
- Very specific: line 151
If destructive, remind them to use --dry-run first and warn about irreversibility
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mole Mac Tool
Mole is a single-binary macOS maintenance CLI that replaces multiple paid tools. It handles system cleanup, app uninstallation, disk analysis, system monitoring, optimization, and project build artifact cleanup.
Installation
brew install moleOr via install script:
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bashCommand Reference
mo clean — Deep System Cleanup
Scans and cleans user app caches, browser caches (Chrome/Safari/Firefox), dev tool residuals (Xcode, Node.js, npm), system logs, temp files, app-specific caches, and Trash. Can free tens of GB.
Key flags:
--dry-run— Preview what would be deleted without actually deleting--json— Machine-readable output
mo uninstall — Smart App Uninstall
Interactive app selection. Removes the app AND 52+ related files across 12 locations: Application Support, Caches, Preferences, Logs, WebKit storage, Cookies, Extensions, Plugins, Launch daemons, etc.
Key flags:
--dry-run— Preview removal plan- Deletes route to Trash where possible (safer than
mo clean)
mo optimize — System Optimization
Rebuilds system databases, clears caches, resets network services, refreshes Finder/Dock, cleans diagnostic/crash logs, removes swap files, rebuilds Launch Services and Spotlight index.
Key flags:
--dry-run— Preview optimization plan--whitelist— Exclude specific optimization items
mo analyze — Disk Space Analysis
Visual disk usage with percentage bars. Finds large files, shows last access time. Supports keyboard navigation (arrow keys, vim h/j/k/l).
Key flags:
--dry-run— Preview analysis- Deletes route to Finder Trash (safest deletion path in Mole)
mo status — Real-time System Monitor
Live dashboard with health score (based on CPU, memory, disk, temp, I/O load). Shows per-core CPU usage, load average, memory details, disk R/W, battery health/cycles/temp, fan speed, network speed, proxy info, process ranking. Press k to toggle cat display.
Key flags:
--json— JSON output (auto-enabled in pipe mode)
mo purge — Project Build Artifact Cleanup
Scans and cleans node_modules, target, .build, build, dist, venv, etc. Projects modified within 7 days are unchecked by default to prevent accidental deletion. Supports custom scan path configuration.
Key flags:
--dry-run— Preview what would be purged- Custom paths can be configured
mo installer — Installer Package Cleanup
Finds installer files in Downloads, Desktop, Homebrew cache, iCloud, and Mail. Annotates each file's source for identification.
mo history — Operation Log Viewer
Read-only viewer for the operation log at ~/Library/Logs/mole/operations.log. No destructive actions.
Key flags:
--json— JSON output
Security Guidelines
CRITICAL: Always remind users of these safety rules before running any destructive command.
- Always use
--dry-runfirst to preview what will be deleted before the real run mo cleanis permanent after confirmation — no Trash, no undo. Review carefullymo analyzedeletions use Finder Trash — safest deletion path, but limited scopemo uninstallroutes to Trash where possible — safer thanmo clean- Operation log is at
~/Library/Logs/mole/operations.log— check if unsure what was done - Protected paths are never touched:
/,/System,/bin,/sbin,/usr,/etc,/var,/private,/Library/Extensions - Sensitive data is excluded: Keychain, VPN configs, browser history/cookies, AI tool data, iCloud docs, Time Machine backups
For the full security audit report, see references/security_audit.md.
Common Usage Scenarios
1. Disk is running low, find what's eating space
mo analyzeUse keyboard to navigate, find large old files. Deletions go to Trash.
2. Thorough system cleanup
mo clean --dry-run # Preview first
mo clean # Then run if looks good3. Uninstall an app completely
mo uninstall --dry-run # Preview first
mo uninstall # Then run, select app interactively4. System feels sluggish, do maintenance
mo optimize --dry-run # Preview first
mo optimize # Then run5. Check system health in real-time
mo status6. Clean up project build artifacts (devs)
mo purge --dry-run # Preview first
mo purge # Then run7. Clean up leftover installer files
mo installerWorkflow When User Asks for Mole Help
- Identify which command(s) the user needs based on their intent
- Check if the command is destructive (clean, uninstall, optimize, purge, installer)
- If destructive, remind them to use
--dry-runfirst and warn about irreversibility - Provide the command with relevant flags
- Reference
references/security_audit.mdif the user has security concerns
Important Notes
- Mole is macOS-only (Windows experimental branch exists but not recommended)
- iTerm2 has known compatibility issues; recommend Kaku, Alacritty, kitty, WezTerm, Ghostty, or Warp
- A paid GUI version exists at https://mole.fit (not needed — CLI is fully functional)
- Raycast/Alfred integration scripts are available for quick command access
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

