weekly-audit
БесплатноБез исполняемых скриптовНе проверенAudit both Mole CLI branches for safety, correctness, performance and stale guidance, then land authorized fixes. Use for weekly or whole-CLI reviews. Not for…
от tw93★ 76 812 звёзд на GitHubОб этом скилле
Weekly Audit (CLI)
Adapted from Mole Mac's weekly audit (mole-mac .claude/skills/weekly-audit).
The first run (2026-10-16, main eb531ba2, windows 159657d5) found mo clean
deleting Nix profile generations older than 30 days with no timeout or real
preview, the whole ~/Library/Application Support/Steam game library offered as
one uninstall data row on macOS while Windows already refuses Steam libraries,
a dozen undocumented tuning variables, dead Windows cleanup stubs with tests that
cannot fail, per-app forks in mo uninstall <name> and --list, and five stale
release lines. Most of the tree was fine; the value is in the few findings that
survive refutation. Run it once a week and keep the report short.
Phase 1: Freeze and scope
- For each branch record
git rev-parse HEAD, the remote head,git status --short --branch -uall, andgit log --oneline <base>..<audited-head>.mainis this checkout;windowsis its own worktree (git worktree list), never checked out overmain. Fetch the remote branch read-only (git fetch origin windows) and auditorigin/windowswhen no clean worktree is at its head. Freeze the merged PR IDs and count for the same window. Use raw output or structured results for counts, test summaries and complete coverage; RTK summaries may omit entries. - Read the newest entry of
docs/weekly-audit.mdonmain: its "Next window from" commits are this run's base per branch, its "Decided, do not re-report" list goes to every agent, and its "Open" items are rechecked first. The codify dimension reads that window; the others follow the scope selected below. - Exclude
tests/tmp-*,.git, build output and other sessions' worktrees from every grep. - Mole CLI (Linux) is the third audited tree since 2026-11-10: the
linuxbranch, checked out at~/www/mole-cli-linux(bash 5, GNU tools, Go). Freeze and fetch it likewindows, and give every dimension its head. Its contract is the Safety contract in its ownAGENTS.md; its run record isdocs/ledger.mdand itsSYNC.md, and it has no incident table. Bats and Go tests run on the LazyCat devbox as the usermole(linux-devboxskill), never on macOS. Where this file says "both branches", read all three. - Mole CLI (Windows) keeps its per-command rules in
.claude/rules/since 2026-11-10 (147eef15); the stale and rule-volume checks read those five files with itsAGENTS.md, whose baseline is indocs/weekly-audit.md. - An explicit whole-codebase request takes precedence over incremental defaults. Otherwise audit both branches whole on the first run, after a release, or when the window touched more than about 40 source files; otherwise incremental: the files changed in each branch's window, their direct callers, and every Open item. Mole for Windows' first whole-tree run cost about 1.15M sub-agent tokens for 18 findings, most in code untouched for weeks.
- Read-only until Phase 4. "看看 / 检查 / 跑一遍" never authorizes a write.
- Record coverage by module and evidence level. Before reporting or writing, recheck both heads and worktrees; review new commits and preserve concurrent edits. Reconcile the frozen PR set and list newly merged PRs separately.
Phase 2: Five read-only audits in parallel
Assign each dimension to a sub-agent, batching assignments to fit available
slots. Start from the matching prompt in
references/prompts.md (shared header plus dimension body) so coverage does not
drift between runs, each covering both branches and naming which branch
every finding belongs to. Read-only: no edit, commit, build, real cleanup or
sudo. Tests may run only with MOLE_TEST_NO_AUTH=1 against isolated fixtures.
Discover available test hosts: shared Go tests may run on macOS; PowerShell
behavior needs a Windows host, an available VM or native CI. Record the host,
shell version and source SHA. Do not change machine settings or install tools
without authorization. Each agent must try to refute every candidate once (find the guard
that already blocks it, the test that locks it, or the AGENTS.md / .claude/rules/ / SYNC.md line
recording the decision, which may sit on the other branch, so grep both before
reporting) and report only survivors, with branch:file:line, a concrete failure
scenario and the smallest fix.
Correctness is mandatory across the five dimensions: compare TUI and JSON, initial/live/completed/cached results, selection identity, empty and partial results, encoding, exit status and cancellation. A bounded recursive summary must not truncate a directly browsable child list. For each repaired contract, inspect the other CLI's actual consumer and route applicable gaps through an existing SYNC.md row before adding a new one.
- Unsafe. macOS: every removal goes through
mole_delete/safe_clean/safe_removeor carries a same-line# SAFE:reason; matching stays on exact bundle IDs or paths (no vendor prefix, TeamID or common-word
Установить weekly-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл weekly-audit?
Audit both Mole CLI branches for safety, correctness, performance and stale guidance, then land authorized fixes. Use for weekly or whole-CLI reviews. Not for a single defect or individual PR review.
Как установить скилл weekly-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл weekly-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic