/all-my-ai-needs:mole-mac-cleanupfrom all-my-ai-needs
Safely operates the Mole CLI (mo) on macOS for disk, CPU, memory, and network inspection, large file discovery, cleanup preview, app removal, and Mole diagnostics/upgrades.
Ships in all-my-ai-needs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the official Mole agent skill at tw93/Mole/skills/mole/SKILL.md and its references/macos.md as the command-semantics baseline. The repo-only runtime.yaml pins the audited upstream version. For version-sensitive behavior, confirm the installed version and read mo <command> --help; trust the actual dry-run over stale assumptions.
--dry-run, inspect its candidates, summarize the impact, and obtain explicit user confirmation in the current turn before running the destructive command.clean, uninstall, purge, installer, slim, and optimize as destructive. Treat update, remove, and whitelist changes as state-changing and require an explicit request.mo <command> --help when the documented surface is insufficient.mo clean --whitelist for protected paths; never replace Mole with raw rm, hand-written recursive deletion, or broad globs.sudo, close applications, remove login items or dotfiles, prune Docker/OrbStack, or delete virtualenvs and project artifacts unless the user separately confirms that exact scope. A cached sudo session can still let clean or optimize perform system-level work without a new prompt; not invoking sudo does not limit the command to user-level cleanup. If that scope is not approved, stop and let the user run the appropriate command themselves.mo status --watch running in the background.Confirm the binary, version, and real package manager:
command -v mo
mo --version
brew list --versions mole
brew info mole --json=v2
Do not trust the Install: line from mo --version alone; a Homebrew-managed build can report Manual. If brew list --versions mole succeeds, manage it with Homebrew.
| User intent | Agent-facing command |
|---|---|
| Explain disk usage | mo analyze --json or mo analyze --json <path> |
| Preview safe cleanup | mo clean --dry-run |
| List installed apps with exact uninstall names | mo uninstall --list |
| Remove one app completely | mo uninstall --list to read the exact name, then mo uninstall --dry-run <app> |
| Preview bounded maintenance | mo optimize --dry-run |
| Preview old project artifacts | mo purge --dry-run |
| Preview downloaded installers | mo installer --dry-run |
| Audit prior cleanup | mo history --json --limit 20 |
| Capture one health snapshot | mo status --json |
| Capture a short time series | mo status --watch --interval 1s |
Interactive analyze, terminal-attached status, app selectors, and installer selectors are human surfaces. Prefer the commands above. If a dry-run still opens a selector, stop after reporting the visible candidates and ask the user to make the selection.
mo analyze --json returns one JSON object containing path, overview, and entries[]. Each entry includes name, path, size, is_dir, and insight; sizes are bytes. Current versions also expose scan_status at the top level and on entries: partial sizes are lower bounds, and unavailable means unknown, not zero. Do not report an interrupted or partial scan as complete. Scope expensive scans when possible, for example:
mo analyze --json "$HOME/Library"
mo clean --dry-run prints a summary and writes the candidate paths to:
~/.config/mole/clean-list.txt
Mention in every clean preview that mo clean empties ~/.Trash by default unless the Trash row is protected in the whitelist. Read that file to review the paths this dry-run found. It is a preview snapshot, not an executable deletion plan: a later mo clean rescans and revalidates current candidates, so the two target sets can differ. Never promise the user that the real run will remove exactly this list. purge --dry-run and installer --dry-run report their candidates in the terminal and do not write this list.
mo history --json --limit N (N is 1-200) returns logs, sessions[], and deletions[]. Use actions.removed, trashed, skipped, and failed to verify the outcome. When failed is nonzero, inspect only the matching session in the operations log and classify permission-protected or running-app paths separately from real cleanup failures.
In Mole 1.59.0+, each session includes an opaque run_id and an attribution: run identifies one run, command groups older command-based records, and ambiguous means older markers cannot distinguish interrupted or overlapping runs. Do not assign ambiguous counts to one run. An empty run_id means no identity was logged; an empty ended_at means no end marker was recorded, not confirmed completion. Each deletion records timestamp, mode, status, size_kb, and path; control bytes in paths appear as \n, \r, \t, or \xHH.
mo uninstall --list prints the app inventory as a JSON array when stdout is not a TTY. Each entry has name, bundle_id, source, uninstall_name, path, and size. Read uninstall_name for the exact argument mo uninstall accepts, so the app selector TUI never has to be opened.
mo uninstall --list
Use mo status --json for a single CPU, memory, disk, and network snapshot. mo status --watch --interval 1s emits NDJSON; collect only the number of samples needed, then terminate it.
mo clean permanently removes caches, empties unprotected Trash, and also sweeps evidence-backed leftovers from already-uninstalled apps. It does not uninstall an installed app.mo uninstall moves the app and matched leftovers to Trash by default, so they remain recoverable until Trash is emptied. Personal data is kept by default; show the dry-run list and ask before including it. Do not add --with-data or --permanent automatically. Real uninstall needs a terminal and is a user action. In 1.61.0 and older, a non-terminal dry-run may print the plan then exit 1 with an interactive-confirmation message; 1.62.0+ finishes with exit 0. Neither preview deletes the app.mo clean --external <path> cleans macOS metadata from an external volume; resolve and show the exact mounted path before asking for confirmation.mo purge targets both local build output (target/, build/, dist/, .next/) and dependency directories that require a network to restore (node_modules/, Pods/, venv/, vendor/). A purge is therefore not always recoverable offline: classify the dry-run candidates by recovery type and show that distinction before requesting confirmation. Add --include-empty to surface zero-size candidates. A non-interactive real run requires an explicit --yes; dry-run does not. mo purge has no positional path argument. --yes removes every currently eligible candidate, not a selected subset; if only some projects are authorized, hand the interactive selection to the user. Recent activity within 7 days, unverifiable activity, and cloud-synced folders are skipped. Use --yes only after the user has authorized the full eligible scope in the current turn. Artifacts with authored content stay protected, and an inconclusive content probe keeps the candidate and reports an incomplete run. mo purge --paths opens an interactive editor for the scan directories; it is a human surface, so report that the user has to edit it themselves instead of entering it.mo optimize refreshes caches and system services rather than only deleting files. Explain the planned effects before requesting approval.purge_paths file is unreadable or invalid, preserve it and stop. Do not delete or recreate the file to get past the refusal; an existing whitelist replaces optional defaults. Protection changes require their own approval and a fresh preview.--debug only to diagnose a command that did nothing or failed; normal runs should stay concise.If Homebrew manages Mole, prefer:
HOMEBREW_NO_INSTALL_CLEANUP=1 brew upgrade mole
Confirm brew info mole --json=v2 points to the reviewed release before upgrading; a mirror can lag behind official metadata. Retain the previous keg for rollback instead of running cleanup as part of the upgrade.
Otherwise, upstream provides mo update. mo update --nightly installs unreleased main; never run it unless the user explicitly requests nightly. After any upgrade, verify the installed version and run a non-destructive smoke test:
mo --version
mo analyze --json "<small_test_directory>"
mo history --json --limit 1
mo clean --dry-run
A bounded full-disk preview can time out. Report that as incomplete, retain its local log, and do not infer that unvisited paths are safe to clean.
Before cleanup, report the command, potential bytes/items, largest categories, exact risky paths, protected/running-app skips, and the proposed real command. After an approved cleanup:
mo history --json --limit 1.failed and important skipped counts without escalating to sudo automatically.A dry-run provides no backup and no undo. Clean deletions are normally permanent, so the preview is the only point at which the user can veto; it is not a way to reverse anything afterwards, and it does not guarantee the real run will target the same set. If a user asks whether Mole removed a specific file, use the deletion log path returned by history and answer from the exact matching record.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codingsamss/all-my-ai-needs --plugin all-my-ai-needs23 skills in this plugin
/aihot查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI 事件及来龙去脉、AI 模型排行、Codex 额度重置,或其它 AI 行业动态时使用。必须实时查询 AIHOT,不凭训练记忆回答新闻;匿名只读,无需 API Key。/apifox-cli通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含 agentHints.nextSteps;所有命令支持 --help。/apifox-test-caseApifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。/bilibiliRead Bilibili (B站) content. Actions: search videos, view hot/rank feeds, read video details, prepare audio, and read subtitles through OpenCLI. Keywords: bilibili, b站, 哔哩哔哩, BV, 视频, 字幕, 热门, 排行./bird-bookmark-foldersOrganize X/Twitter bookmark folders (collections) via GraphQL with Chrome cookie auth. Actions: list folders, list folder contents, add/remove/move a bookmark between folders, create a folder. Keywords: twitter, x, bookmark folder, collection, 收藏夹, 书签分类, 整理收藏夹, 移动书签./bird-twitterRead X/Twitter content via Bird CLI. Actions: read tweets, search, view all bookmarks or bookmark folders, trending, news, timeline, mentions, lists. Keywords: twitter, x, tweet, trending, bookmarks, bookmark folder, 收藏夹, timeline. 整理收藏夹(移动/新建/增删)用 bird-bookmark-folders。Other plugins' skills for the same job