Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
- Added author information to the skill metadata. - Changed metadata formatting structure for improved clarity. - No changes to features or usage instructions.
What This Skill Does
Mole is a Mac-only CLI tool invoked as `mo` that removes caches, logs, browser data, and app remnants, and purges dev project artifacts like node_modules and build directories. It also optimizes system services by rebuilding databases, resetting Spotlight, and refreshing Finder and Dock. Always use `--dry-run` before executing any operation.
Replaces separate GUI tools like CleanMyMac, AppCleaner, and DaisyDisk with a single scriptable CLI command that runs non-interactively in agent workflows.
When to use it
- Clearing browser and app caches before a big release
- Removing leftover files after uninstalling an app
- Purging stale node_modules across multiple projects
- Cleaning old .dmg and installer files from Downloads
- Rebuilding Spotlight index and resetting system services after slowdowns
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Free up disk space on my Mac without deleting anything important
- 1Run `mo clean --dry-run --debug` to preview caches, logs, and browser data flagged for removal
- 2Review the output and confirm nothing critical is listed
- 3Run `mo clean` to execute the cleanup
- 4Run `mo optimize --dry-run` then `mo optimize` to rebuild system databases and reset services
- 5Run `mo purge` to remove stale build artifacts like node_modules and target directories
Disk space recovered by removing caches, logs, browser data, and project artifacts; Spotlight index rebuilt and system services reset