Command Palette

Search for a command to run...

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

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от 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, and git log --oneline <base>..<audited-head>. main is this checkout; windows is its own worktree (git worktree list), never checked out over main. Fetch the remote branch read-only (git fetch origin windows) and audit origin/windows when 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.md on main: 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 linux branch, checked out at ~/www/mole-cli-linux (bash 5, GNU tools, Go). Freeze and fetch it like windows, and give every dimension its head. Its contract is the Safety contract in its own AGENTS.md; its run record is docs/ledger.md and its SYNC.md, and it has no incident table. Bats and Go tests run on the LazyCat devbox as the user mole (linux-devbox skill), 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 its AGENTS.md, whose baseline is in docs/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.

  1. Unsafe. macOS: every removal goes through mole_delete / safe_clean / safe_remove or carries a same-line # SAFE: reason; matching stays on exact bundle IDs or paths (no vendor prefix, TeamID or common-word
Полный SKILL.md на GitHub

Установить weekly-audit в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/prompts.mdreferences/rule-compression.md

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), без исполняемых скриптов.

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

Сравнить weekly-audit с