LaunchKit · 2026
Back to Skills

mole-mac-cleanup

Mac cleanup & optimization tool combining CleanMyMac.

2
2.6k downloads
by @bjesuiter

Setup & Installation

openclaw skills install @bjesuiter/mole-mac-cleanup

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install mole-mac-cleanup

Version History

v1.1.0Jan 14, 2026 - Version note by skill developer:

- 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.

INPUT

User asks: Free up disk space on my Mac without deleting anything important

AGENT
  1. 1Run `mo clean --dry-run --debug` to preview caches, logs, and browser data flagged for removal
  2. 2Review the output and confirm nothing critical is listed
  3. 3Run `mo clean` to execute the cleanup
  4. 4Run `mo optimize --dry-run` then `mo optimize` to rebuild system databases and reset services
  5. 5Run `mo purge` to remove stale build artifacts like node_modules and target directories
OUTPUT

Disk space recovered by removing caches, logs, browser data, and project artifacts; Spotlight index rebuilt and system services reset