Skip to content
TakoAPI
Back to skills

mole-mac-cleanup

by bjesuiter

Apple Apps & Services
2.6kDownloads reported by clawskills.sh
2Stars
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

Mac cleanup & optimization tool combining CleanMyMac.

Description

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

INPUT

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

AGENT
  1. 1

    Run mo clean --dry-run --debug to preview caches, logs, and browser data flagged for removal

  2. 2

    Review the output and confirm nothing critical is listed

  3. 3

    Run mo clean to execute the cleanup

  4. 4

    Run mo optimize --dry-run then mo optimize to rebuild system databases and reset services

  5. 5

    Run 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

Installation

clawhub install bjesuiter/mole-mac-cleanup

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links