Audit
Mutation analysis reporting surviving mutants on a change's diff or (`--exercised`) code called by changed tests; reverts tracked source and writes no tests…
от melodic-software★ 34 звезды на GitHub
Установить Audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit
Repository context. Gather first
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -20 - Changed files vs HEAD,
git diff --name-only HEAD
Variables
Arguments: $ARGUMENTS
The user config layer, rendered from this plugin's userConfig (empty or a literal
${user_config.…} token means unset; Phase 0 "Config" reads it):
operators:${user_config.operators}max_mutants:${user_config.max_mutants}
Argument parsing
- Scope (optional): a path limiting which changed files are considered. Default: every changed
file inside the configured
mutateglobs. Under--exercisedit narrows the changed tests considered, and it goes before the flag. --exercised [<test-path>]: mutate the production code the changed tests call, judged against those tests as one set (The exercised scope). The scope runs only when this flag is passed. The token right after the flag is the test path when it does not start with--, so--exercised --max 5takes no test path. Mutually exclusive with--fulland--paths: refuse the combination and name both flags.--full: mutate the whole configured scope instead of the diff. Expensive and rarely correct, print the estimate line from Phase 1 step 5 and confirm before running.--paths <globs>: mutate these paths regardless of the diff.--max <n>: cap generated mutants for this run, overridingmax-mutants.--no-suppress: include mutants that the arid-node record would otherwise suppress, marked as suppressed. Read-only inspection of the suppression policy; it never edits the record.--persist-findings: after reporting, also write the survivors as a findings file thereview:fanoutfixaction consumes (Phase 6). Off by default.--record-mutants <file>: with--exercised, write the mutants this run applied and their states to a record outside tracked space (Record and replay).--replay-mutants <file>: with--exercised <test-path>and--record-mutants <after>, apply exactly the recorded mutants and gate on lost kills (Record and replay).--phase generate|classify: one half of the audit; readcontext/split-runs.md.--phase triageis a deprecated alias ofclassify.- Target forms (
--repo,--repos-from,--owner,--fleet,--skip, or in words):--fullonly, once per repository; a scope path,--exercised,--paths,--phaseand record or replay refuse one. Readcontext/several-repositories.mdfirst.
Effort, the mutant cap of last resort
Caller effort for this run is ${CLAUDE_EFFORT}. If that still reads as a literal placeholder (a dollar sign and braces around
the variable name) rather than an effort level, this body was read directly instead of skill-loaded, so the substitution never ran: treat the run as high and leave the cap to the config.
The substitution and the levels it yields are Extend Claude with skills § Available string substitutions.
Effort supplies a default cap only when nothing else sets one. The precedence is --max first,
then the configured max-mutants, then this table; effort never lowers a cap the caller or the
config chose, and never raises one:
| Effort | Cap when neither --max nor max-mutants is set |
|---|---|
low |
5 mutants |
medium |
15 mutants |
high, xhigh, max |
uncapped |
An effort-derived cap is a cap like any other, so Phase 1 step 5 already governs how it is reported:
say what was dropped, because a truncated run must never read as a clean one. Nothing downstream
moves. Phase 4 survivor classification still runs in fresh context on every surviving mutant, at every effort level; only a light or off verification level skips it (Phase 4).
The exercised scope (`--exer
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- context/config-fallback.md
- context/exercised-scope.md
- context/mutant-record.md
- context/persist-findings.md
- context/restoration-regimes.md
- context/run-estimate.md
- context/several-repositories.md
- context/split-runs.md
- context/suppression.md
- context/tool-test-restriction.md
- evals/evals.json
- templates/report.md
FAQ
Что делает скилл Audit?
Mutation analysis reporting surviving mutants on a change's diff or (`--exercised`) code called by changed tests; reverts tracked source and writes no tests (`--persist-findings` for a fix pass). Use when: 'run mutation testing', 'my coverage is high but I do not trust it', auditing a green test suite's quality, or checking if tests check code.
Как установить скилл Audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…