Command Palette

Search for a command to run...

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

mole

БесплатноБез исполняемых скриптовНе проверен

Drive the Mole CLI (`mo`) on macOS or Windows: find what uses disk space, preview and run cleanup, uninstall apps, and read system health and cleanup history…

tw93от tw93★ 76 812 звёзд на GitHub

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

Mole

Mole (mo) is a maintenance CLI with two editions that share one command set: Mole CLI (macOS) and Mole CLI (Windows). It deletes real files on the user's own machine. Your job is to read the machine, show the user exactly what would change, and hand them the decision. Done means the user's question is answered from Mole's own output, and nothing was removed that the user had not seen and approved.

1. Identify the edition

Run mo --version. The second line names the system (macOS: … or Windows: …). Then read exactly one reference and use only its commands:

Mole CLI (Linux) on the linux branch is not covered by this skill yet; on Linux, point the user to https://github.com/tw93/Mole/tree/linux#readme instead of using macOS commands.

The two editions differ in flags, JSON fields and what goes to the Trash or Recycle Bin, so never carry a command across. If the installed version is older than the one the reference names, or a flag is rejected, run mo <command> --help and trust it over this skill.

If mo is not found, tell the system from the shell (uname prints Darwin; in PowerShell, $env:OS is Windows_NT), say so and offer the install command from that system's reference. Install only after the user agrees.

2. Rules

  1. Read before you change. Answer with the read-only commands first: analyze --json, status --json, history --json, uninstall --list, and every --dry-run. They are safe to run without asking.
  2. Preview before every removal. Run the command with --dry-run, read the result, and summarize it for the user: total size, the largest groups, and for each group whether it is gone for good, goes to the Trash or Recycle Bin, or needs a download to rebuild. A preview is a snapshot; the real run rescans, so do not promise an exact number.
  3. Get consent before you type a removing command. Without a terminal, mo clean and mo optimize do not ask for confirmation: they start as soon as they are invoked. The consent therefore has to come first, in this conversation, after the user has seen the preview. "Why is my disk full" is a question, not consent; "go ahead and clean those" after the preview is. Consent covers what the preview showed. mo clean and mo optimize have no selection list, so if the user wants only part of it, protect the rest first; commands with a list go to the user.
  4. Some steps belong to the user's terminal. App uninstall, interactive selection lists, whitelist editors, and anything that needs an administrator password or an elevated shell cannot be completed from an agent. Give the user the exact command to run in their own terminal and stop. Never run sudo, ask for a password, or try to elevate.
  5. Use only the surfaces in the reference. Never parse a full-screen TUI frame, never invent a flag such as --yes or --force where the reference does not list it, and never fall back to rm, find -delete or Remove-Item to remove what Mole skipped or protected. A skip is Mole's answer.
  6. Leave Mole itself alone. Do not run mo update, mo remove, a nightly install, or configuration commands unless the user asked for that command.
  7. Stay out of the user's files. What you read can leave the machine with this conversation. Answer from Mole's output and logs. Do not list personal folders, run find or mdfind over them, or repeat file names from documents and photos unless the user asked you to look there. Report folders and sizes rather than the names inside them, and never rerun mo with a different HOME.

3. If your shell is sandboxed

Many agent hosts deny writes outside the workspace. Mole writes under the home folder, and removing a file counts as a write, so a sandbox changes what its output means. The signs are Operation not permitted or No such file or directory on clean-list.txt or operations.log, audit log unavailable, Unable to create a safe cleanup preview file, and top_processes: null with fork/exec /bin/ps: operation not permitted. On Windows they are Access to the path ... is denied on .config, clean-list.txt or app_scan_cache, and a bare Access is denied in the language of the system. There mo analyze --json and mo status --json still work; mo clean --dry-run, mo optimize --dry-run and mo uninstall --list do not.

  • A failed preview is the sandbox, not an empty result and not a Mole bug. Say so.
  • mo --version failing on .config on Windows means Mole has never run for this user. Running mo --version once in their own terminal creates the folder, and the read-only commands then work here.
  • Never run a removing command inside the sandbox. mo clean can print Cleanup complete and exit 0 with nothing removed, because a denied delete rea
Полный SKILL.md на GitHub

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

references/macos.mdreferences/windows.md

FAQ

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

Drive the Mole CLI (`mo`) on macOS or Windows: find what uses disk space, preview and run cleanup, uninstall apps, and read system health and cleanup history. Use before running any `mo` command. Not for editing Mole source code.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить mole с