Command Palette

Search for a command to run...

Назад к скиллам
скилл № 89771

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от 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 mutate globs. Under --exercised it 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 5 takes no test path. Mutually exclusive with --full and --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, overriding max-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 the review:fanout fix action 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; read context/split-runs.md. --phase triage is a deprecated alias of classify.
  • Target forms (--repo, --repos-from, --owner, --fleet, --skip, or in words): --full only, once per repository; a scope path, --exercised, --paths, --phase and record or replay refuse one. Read context/several-repositories.md first.

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

Полный SKILL.md на GitHub

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

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

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

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

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

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

Сравнить Audit с