mutation-test

Installation
SKILL.md

Activation Contract

Use this skill to measure test quality by injecting manual mutants into a whole repo (global) or given paths/modules (targeted) and checking whether the tests detect them. Not for writing tests, reviewing PRs, or hunting bugs (use bug-scan).

Hard Rules

  • NEVER leave production code modified: each mutant lives only in its own temporary git worktree (fallback: mutate in place and git checkout -- {file}); git status clean at the end.
  • NEVER edit or add tests in the repo; suggested tests live only in the report (temp files are deleted).
  • ALWAYS open with one option prompt before any work: mode, mutation categories, output format (chat | markdown); never infer them from the prompt.
  • Require a green baseline before mutating; abort and report if red.
  • One mutant = one atomic change; cite file:line, operator, exact diff.
  • Previous reports are leads, never evidence: re-run every inherited survivor.
  • docs/mutation-test/{YYYY-MM-DD}.json is the only artifact: it is the report and the history. Never write a ledger or a rendered file.
  • Delegate reconnaissance to an exploration subagent; verdicts stay with you.
  • Run mutants in parallel, one write-capable subagent per mutant in its own worktree, at most 4 concurrent; each returns facts, not verdicts.
  • ALWAYS state what was not reviewed.
  • ALWAYS run python3 assets/reconcile.py --report <report.json>, then python3 assets/validate_report.py --file <report.json>; fix every ERROR: until exit 0. Never overwrite an existing report.

Decision Gates

Installs
16
GitHub Stars
2
First Seen
Oct 3, 2026