Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mole

БесплатноЗапускает вложенные скриптыНе проверен

Drive Mole (`mo`), tw93's GPL-3.0 macOS maintenance CLI that cleans caches and app leftovers, uninstalls apps with their remnants, purges rebuildable project…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Mole — macOS cleanup, uninstall, analyze, optimize, monitor

Mole is a terminal-first macOS maintenance toolkit: a Bash CLI (mole, aliased mo) plus two Go/Bubble Tea TUI binaries (analyze-go, status-go). It reclaims disk space, removes apps together with their remnants, purges rebuildable project artifacts, and reports system health — with dry-run previews, path protection, and an operations log on every destructive path.

It deletes files on someone's live machine. That single fact drives every rule below.

When to use this skill

  • A user wants to free disk space, find what is eating their disk, or fully uninstall a Mac app including leftovers
  • Reading Mole's machine-readable output (--json / --watch / the dry-run list file) instead of scraping a TUI
  • Installing, updating, or removing Mole, or untangling a Homebrew-vs-script install-channel conflict
  • Configuring whitelists, purge scan paths, shell completion, or Touch ID
  • Diagnosing a Mole run that skipped everything, hung, or asked for permissions
  • Contributing to the tw93/Mole repo (Bash 3.2 + Go, bats tests, the # SAFE: deletion contract)

When not to use this skill

  • Non-macOS cleanup, or Linux/Windows disk tooling → Mole is Darwin-only
  • Questions about the paid Mole for Mac GUI (mole.fit) → separate closed-source product, not this repo; the CLI is not a feature mirror of it
  • Generic "delete these files for me" work with no Mole involved → use plain shell; do not route arbitrary deletions through Mole
  • Package management, app installation, or background monitoring → explicitly out of scope per the project's own product filter

Instructions

Step 0: The five rules (non-negotiable)

These come from the project's own agent guide (.claude/skills/mole/SKILL.md upstream) and override convenience:

  1. Preview before you delete. Always. Every destructive command takes --dry-run. Run it, show the user what would go, then offer the real run. The dry-run is the undo.
  2. The user runs the destructive command, not you — unless they asked for it in this turn. "Clean my Mac" is such an ask; "why is my disk full" is not.
  3. Never parse a TUI frame. mo analyze and TTY-attached mo status are full-screen Bubble Tea programs whose output is drawn, not printed. Use the JSON surfaces.
  4. Never invent flags. The surface is small. If it is not in references/commands.md, run mo <command> --help. There is no --yes and no --force on the cleanup commands.
  5. Protection is a whitelist, not an argument. To keep a cache, use mo clean --whitelist — never a hand-rolled find/rm around the safety layer.

Step 1: Pick exactly one mode

Mode Use when Go to
run-command the user wants space freed, an app gone, projects purged Step 2
automate you need data: disk map, health, what was deleted Step 3
install-update install, update, nightly, remove, channel conflict Step 4
configure whitelist, purge paths, completion, Touch ID, launchers Step 5
troubleshoot permissions, "did nothing", missing binary, recovery Step 6
contribute editing the tw93/Mole repo itself Step 7

Step 2: run-command — map the question to one command, preview, hand over

The user asks Command
"What is eating my disk?" mo analyze --json (or scope it: mo analyze ~/Library --json)
"Free up space" mo clean --dry-run → review → mo clean
"Remove this app completely" mo uninstall --dry-run <app> → mo uninstall <app>
"My Mac feels slow" / caches look broken mo optimize --dry-run → mo optimize
"Clean up my old projects" mo purge --dry-run → mo purge
"Get rid of downloaded installers" mo installer --dry-run → mo installer
"What did Mole delete?" mo history --json --limit 20

Two things to say out loud before a real run:

  • mo clean and mo purge delete permanently. mo uninstall and mo analyze route through Trash. Say which one applies.
  • mo optimize is the destructive command whose effect is not "files disappear" — it flushes DNS, rebuilds Finder/icon caches, and touches system services. Describe what it will do first.

For mo purge, distinguish locally rebuildable output (target/, build/, dist/, .next/) from network-restorable dependencies (node_modules/, Pods/, venv/, vendor/). The second kind is not recoverable offline.

Step 3: automate — use the four machine-readable surfaces

mo analyze --json ~/Library     # one JSON object: entries[], large_files[], totals
mo status  --json               # one health snapshot
mo status  --watch --interval 1s  # NDJSON stream — BOUND IT, then terminate
mo history --json --limit 20    # sessions[] + the log paths
cat ~/.config/mole/clean-list.txt  # every candidate from the last `mo clean --dry-run`

`~/.config/mole/clean-list.txt

Полный SKILL.md на GitHub

Установить mole в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

SKILL.toonreferences/commands.mdreferences/contributing.mdreferences/safety.mdscripts/mole.sh

FAQ

Что делает скилл mole?

Drive Mole (`mo`), tw93's GPL-3.0 macOS maintenance CLI that cleans caches and app leftovers, uninstalls apps with their remnants, purges rebuildable project artifacts, removes downloaded installers, explores disk usage, runs bounded system optimization, and reports live health. Routes one request to one mode: run a command safely (`--dry-run` first, the user runs the destructive step), consume the JSON/NDJSON agent surfaces (`mo analyze --json`, `mo status --json` / `--watch`, `mo history --json`, `~/.config/mole/clean-list.txt`), install/update/remove on the right channel, configure whitelists and scan paths, troubleshoot, or contribute to the repo. Use when a user wants to free Mac disk space or fully uninstall a Mac app. Triggers on: mole, `mo clean`, `mo uninstall`, `mo analyze`, `mo purge`, `mo status`, tw93/Mole, mole.fit, clean my Mac, what is eating my disk, CleanMyMac / AppCleaner / DaisyDisk alternative, brew install mole.

Как установить скилл mole?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mole запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить mole с