mole-mac-cleanup
由 bjesuiter 提供
Apple Apps & Services简介
Mac cleanup & optimization tool combining CleanMyMac.
描述
该技能的功能
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.
何时使用
- 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
示例工作流
User asks: Free up disk space on my Mac without deleting anything important
- 1
Run
mo clean --dry-run --debugto preview caches, logs, and browser data flagged for removal - 2
Review the output and confirm nothing critical is listed
- 3
Run
mo cleanto execute the cleanup - 4
Run
mo optimize --dry-runthenmo optimizeto rebuild system databases and reset services - 5
Run
mo purgeto 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
安装
clawhub install bjesuiter/mole-mac-cleanup运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。