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★ 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:
- macOS: references/macos.md
- Windows: references/windows.md
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
- 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. - 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. - Get consent before you type a removing command. Without a terminal,
mo cleanandmo optimizedo 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 cleanandmo optimizehave no selection list, so if the user wants only part of it, protect the rest first; commands with a list go to the user. - 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. - Use only the surfaces in the reference. Never parse a full-screen TUI
frame, never invent a flag such as
--yesor--forcewhere the reference does not list it, and never fall back torm,find -deleteorRemove-Itemto remove what Mole skipped or protected. A skip is Mole's answer. - Leave Mole itself alone. Do not run
mo update,mo remove, a nightly install, or configuration commands unless the user asked for that command. - 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
findormdfindover 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 rerunmowith a differentHOME.
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 --versionfailing on.configon Windows means Mole has never run for this user. Runningmo --versiononce in their own terminal creates the folder, and the read-only commands then work here.- Never run a removing command inside the sandbox.
mo cleancan printCleanup completeand exit 0 with nothing removed, because a denied delete rea
Установить mole в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic