/test-skills:coverage-prooffrom Test Skills
Turn "are these tests enough?" and "can these tests go?" into stated, machine-checked claims - mutation kill-set certificates, partition and t-way covering-array completeness under an explicit uniformity hypothesis, property subsumption (one property replacing a table of examples), bounded-exhaustive checks under the small-scope hypothesis, differential tests against a reference model, confidence bounds for random testing, and TLA+/Lean proofs via proof-skills - then retire the example tests each claim subsumes, keeping one conformance test. Use this skill whenever the user asks to prove test adequacy, justify deleting tests mathematically, know how many tests a function really needs, replace many example tests with a property or model, get "provable coverage", or produce R4/R5 (Strict / High-Assurance) verification evidence - even if they just ask "is this enough?". It works on a named unit or cluster of tests; for auditing a whole suite use test-audit, and to cut or demote tests use test-reduce.
Ships in Test Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"We have 40 tests for parse_duration" says nothing. "parse_duration is complete under this
partition model at 2-way strength, a property kills every mutant the 40 examples killed, and
3 anchors remain" is a claim someone can check, and it justifies deleting 37 tests.
This skill produces claims of that second kind. The same claims serve as the evidence for R4 and R5 rigor.
Every claim has three parts. A claim missing any part is a guess:
T=${CLAUDE_SKILL_DIR}/../test-audit/scripts/tmx.py.
Pick the weakest rung that answers the question. Cost rises as you climb.
| Rung | Claim it supports | How | Tool |
|---|---|---|---|
| 1. Kill-set certificate | "Removing these tests loses no fault detection within this mutant scope." | The set cover over the kill matrix, independently verified | $T analyze, $T verify, $T compare |
| 2. Partition completeness | "Every class and every t-way class combination is exercised, so under uniformity the suite equals the exhaustive product." | Declare the model and check covering; generate the minimum rows | $T covering model.json --strength t [--generate] |
| 3. Property subsumption | "This property checks everything these N examples checked." | Every example's input lies in the generator's domain, and the property's kills ⊇ the examples' kills | $T subsumes matrix.json --by '<property>' --tests '<examples>' |
| 4. Bounded-exhaustive | "Correct for every input up to size k" (small-scope hypothesis) | Enumerate all inputs within the bound against the oracle | a plain loop or itertools; see the reference |
| 5. Differential vs a reference model | "The implementation agrees with the simple model on generated inputs." Cedar-style. | A PBT comparing impl(x) == model(x), with the model reviewed or proven | Hypothesis, fast-check or proptest; proof-skills lean-model differential testing |
| 6. Proof / model check | "The property holds for all states (TLA+ at bounds) or all inputs (a Lean theorem)." | Delegate to proof-skills formal-verify. It handles scoping, the correspondence map, the three-config sanity pattern and the trust audit. | proof-skills (installed separately) |
| 7. Statistical bound | "With n failure-free i.i.d. generated inputs, the failure probability under this distribution is < 3/n at 95%." | The rule of three. Say what the distribution is; it is not the operational profile unless you made it so. | arithmetic, stated in the claim |
test-plan step 0):references/models.md). Write
testing/partitions/<unit>.json:
../test-reduce/references/consolidation.md).$T subsumes --by '<new test>' --tests '<old cluster>'.NOT SUBSUMED, the listed mutants are exactly what the property
misses. Strengthen the property, or keep the specific example that kills each one
as an anchor.covering reports it
missing.testing/claims/<unit>.json (references/claims.md). One
record per claim: the kind, the statement, the hypothesis and bounds, the oracle, the
evidence commands and saved logs, the non-vacuity result, the tests it subsumes, the
conformance test kept, and the assumptions. Claims are what R4 and R5 reviews read, and
what later audits re-check.test-reduce. A proof or exhaustive check
is not a license to skip the pipeline:
For concurrency, async interleavings, retries and idempotency, state machines, protocols,
or graph and DAG algorithms, the right evidence is a model or a proof, not more examples.
If the proof-skills plugin is installed (skills formal-verify, tlaplus-model,
lean-model, proof-simplify), hand over:
If proof-skills is not installed, rungs 1–5 and 7 still work. Tell the user what rung 6
would add (unbounded or interleaving guarantees), and that /plugin install proof-skills@opum provides it.
references/models.md: partition and decision-table models, state-transition coverage,
choosing t, and the uniformity and regularity hypotheses (Gaudel), with worked examples.references/claims.md: the claim record schema and examples for each rung.references/exhaustive-and-statistics.md: bounded-exhaustive patterns, reference-model
differential tests, the rule of three and its limits, and Good-Turing stopping.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
test-skills@opum is listed by opum-ai/opum-marketplace — review the source before installing
npx claudepluginhub opum-ai/opum-marketplace --plugin test-skills6 skills in this plugin
/test-auditUse this skill to diagnose the health of a whole existing test suite and its CI, and to report how lean it could be without losing fault detection. It builds a per-test mutation kill matrix, certifies a minimal subset, and flags duplicate, subsumed and zero-signal tests, clone clusters, test smells, flakiness and CI tiering problems. Use it when the concern is the suite as a whole: it's bloated, slow, brittle, untrusted or agent-grown; the user wants to know how many tests they really need; they doubt their coverage or mutation score; or they want it checked against a test constitution. Vague complaints like "CI takes forever" count. Do not use it for narrow questions about specific named tests, such as whether one test is flaky or whether a given property test subsumes certain example tests. Also skip it for writing new tests, explaining concepts, or carrying out deletions and consolidation, which belong to test-reduce. This skill only measures and recommends./test-ciDesign or fix a CI test pipeline that stays fast and trustworthy as the suite and the agent-driven change rate grow - PR vs nightly tiers under a time budget, affected-test selection, sharding, flake quarantine with an expiry, no retry-until-green, the test-constitution gate with a budget ratchet, diff-scoped mutation testing on PRs and full mutation nightly, probation runs, and rigor-level approvals. Use this skill whenever the user asks to speed up CI, restructure test jobs, add or fix a test gate, handle flaky tests, add mutation testing to CI, enforce test budgets or a test policy in GitHub Actions/GitLab/other CI, or says CI is slow, red for no reason, or can't keep up with agent PRs./test-constitutionSet up (or amend) a project's test constitution - governance rules agreed up front that keep an agent-driven test suite adequate but lean - test budgets, risk-tiered adequacy by mutation score instead of 100% coverage, marginal-value admission of new tests, the Red-Green-Refactor-Prune TDD cycle, flake quarantine, certified deletion - as TEST-CONSTITUTION.md plus a machine-enforced test-policy.toml, an agent-instructions block in CLAUDE.md/AGENTS.md, and a CI gate. Use this skill whenever the user wants testing rules, standards, a testing policy, guardrails, or governance for humans or agents; says agents write too many or low-value tests and wants that to stop going forward; wants a coverage policy or test budget; or is starting a new project and wants to set testing up right. For measuring an existing suite use test-audit; for planning tests for one feature use test-plan./test-planPlan and write the smallest test set that adequately verifies a new feature, bug fix or module - derive behaviors from the spec, model input partitions and boundaries, choose property vs parametrized table vs single example, size a test budget, then run TDD as Red-Green-Refactor-Prune so scaffolding tests never pile up - at the rigor level the change requires (R1 Minimal to R5 High-Assurance). Use this skill whenever the user asks to write tests for new code, do TDD, "add tests for this feature", implement something from a spec with tests, decide how many or which tests a change needs, or wants test-first development that does not bloat the suite - including when an agent is about to add tests as part of any feature work in a repo with a TEST-CONSTITUTION.md. For shrinking an existing suite use test-reduce; for suite-wide measurement use test-audit./test-reduceRadically shrink an existing test suite without losing fault detection - consolidate copy-paste tests into parametrized tables and properties, demote certified-redundant tests to a nightly probation tier, delete them after probation, and prove at every step (mutation kill-set certificate, before/after matrix compare) that nothing the suite used to catch is lost. Use this skill whenever the user wants to cut, prune, slim, deduplicate, consolidate or clean up tests, get a bloated suite (hundreds or thousands of agent-written tests) back under budget, bring a project into compliance with its test constitution, or act on a test-audit report - including "delete the useless tests", "we have 3000 tests and CI takes 40 minutes", or "make the suite maintainable again". Starts with test-audit if no current audit exists.