Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 0xDarkMatter/claude-mods --skill test-engineeringgit clone --depth 1 https://github.com/0xDarkMatter/claude-modsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/0xdarkmatter/claude-mods/test-engineering)<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/test-engineering"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/test-engineering/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/test-engineering"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/test-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00095 | $0.03630 |
| Opus 5.5 | $0.00038 | $0.01452 |
| Sonnet 5.5 | $0.00019 | $0.00726 |
| Haiku 4.5 | $0.00010 | $0.00363 |
Grade A, and why
test-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Engineering
A test's value is what it catches, divided by what it costs. Agents write code at many times the human rate and tests to match, and the suites they leave behind optimise for count: hundreds of tests that restate the code, rarely fail, overlap each other, and all run on every change. This skill optimises the ratio instead:
- Catch, proved, not assumed: does a planted bug turn the test red? (mutants)
- Cost, measured, not guessed: seconds per run, runs per day, flakes, CI minutes.
Every mode works one side of that ratio or both. One skill, seven modes, one read-only reviewer agent, a zero-dependency mutation harness, and stdlib scripts for the cost side.
The doctrine (no setting changes these)
- Seen failing, for the right reason, or it is not evidence. Every new test goes red on a planted mutant or the unfixed code, as an assertion on a value. A missing symbol or an import crash is red for the wrong reason.
- Named for the bug it prevents.
refuses a reset link that was already used, nottest_reset_2. If you cannot name the bug, do not write the test. - Independent oracle, never a copy of the code. The expected value comes from the
requirement (a hand-derived literal, a spec vector), never from calling the code, and never
from its formula re-typed in the test. A copied formula agrees with the code, bugs
included, and breaks on every refactor: it pins the implementation, not the behaviour.
Agents writing tests straight after the code produce it readily (S3, S15);
oracle-scan.pyfinds candidates. - The boundary users hit. HTTP response, CLI exit code and stdout, tool result. Real lightweight dependencies; mock only at process boundaries; never mock the unit under test.
- Coverage and count are diagnostics, never goals. Protection is measured by killed mutants; size by seconds.
- Heuristics triage, evidence decides. A static flag or an overlap candidate is a question for a reader; a mutant result is an answer.
- Every test earns its seconds and its tier. A test that catches nothing its neighbours do not is deleted, with evidence. A slow test with a unique catch moves to a slower tier, or gets faster. Count never justifies anything.
- Tests are conditional: run only what the change touched. Change-aware selection is the default on every tier but one. The full suite runs on merge or nightly as the safety net, and any change selection cannot scope (lockfiles, config, an unmapped file) runs it too.
- Run it somewhere else, in parallel. Offload is the default: few tests need the developer's machine. Local runs are always parallel and never take the whole machine.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/agents-testing-section.md 1.5 KB
- assets/ci-tiers.yml 4.6 KB
- assets/greptile-rules.md 1.9 KB
- assets/mutant.example.json 581 B
- assets/test-budget.example.json 385 B
- assets/test-gate.yml 1.1 KB
- assets/test-map.example.json 411 B
- assets/test-profile.example.yml 1.4 KB
- references/ai-reviewers.md 3.8 KB
- references/audit.md 9.4 KB
- references/ci.md 5.4 KB
- references/design.md 4.1 KB
- references/frameworks.md 24 KB
- references/gap-classes.md 4.0 KB
- references/gate.md 6.5 KB
- references/mocking-strategies.md 7.7 KB
- references/profile.md 6.8 KB
- references/prune.md 4.6 KB
- references/slop-patterns.md 6.9 KB
- references/speed.md 13 KB
- references/tdd-workflow.md 5.8 KB
- references/test-data-patterns.md 6.4 KB
- references/triage.md 3.3 KB
- references/visual-testing.md 4.6 KB
- references/write.md 6.7 KB
- scripts/affected.py 7.5 KB runs code
- scripts/budget-gate.py 6.5 KB runs code
- scripts/ci-audit.py 12 KB runs code
- scripts/coverage-check.sh 4.7 KB runs code
- scripts/coverage-overlap.py 5.4 KB runs code
- scripts/mutate.mjs 29 KB runs code
- scripts/oracle-scan.py 11 KB runs code
- scripts/run-plan.py 17 KB runs code
- scripts/suite-profile.py 11 KB runs code
- tests/fixtures/catalogue-ambiguous.json 126 B
- tests/fixtures/catalogue-batch.json 353 B
- tests/fixtures/catalogue-boundary.json 178 B
- tests/fixtures/catalogue-fee.json 175 B
- tests/fixtures/cost/coverage.json 800 B
- tests/fixtures/cost/mono/.test-map.json 223 B
- tests/fixtures/cost/mono/pkgs/billing/tests/run.sh 7 B runs code
- tests/fixtures/cost/mono/pkgs/search/tests/run.sh 7 B runs code
- tests/fixtures/cost/nested.xml 374 B
- tests/fixtures/cost/oracle/src/pricing.py 380 B runs code
- tests/fixtures/cost/oracle/tests/test_pricing_good.py 503 B runs code
- tests/fixtures/cost/oracle/tests/test_pricing.py 666 B runs code
- tests/fixtures/cost/repo-py/pyproject.toml 76 B
- tests/fixtures/cost/retried.xml 329 B
- tests/fixtures/cost/runs-a/r.xml 290 B
- tests/fixtures/cost/runs-b/r.xml 315 B
- tests/fixtures/cost/runs-c/r.xml 290 B
- tests/fixtures/cost/runs-crashed/r.xml 134 B
- tests/fixtures/cost/runs-green2/r.xml 270 B
- tests/fixtures/cost/runs.json 979 B
- tests/fixtures/cost/wf/deploy-unserialised.yml 178 B
- tests/fixtures/cost/wf/deploy.yml 246 B
- tests/fixtures/cost/wf/lean.yml 347 B
- tests/fixtures/cost/wf/scheduled.yml 152 B
- tests/fixtures/cost/wf/wasteful.yml 227 B
- tests/fixtures/go.jsonl 2.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 201 lines · 95 tokens per session scan A 68d743b0c779
test-engineering is a skill published in the GitHub repository 0xDarkMatter/claude-mods (86 stars, last pushed 6d ago), licensed MIT. It adds 95 tokens to every session and 3,630 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.
test-engineering compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-engineering0xDarkMatter/claude-mods | Skill | 86 | 6d ago | MIT | A | 95 | Claude Code |
| rust-testingaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 31 | Claude Code, Kiro |
| cpp-testingaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 34 | Claude Code, Kiro |
| agent-test-generatortravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 36 | Claude Code |
| unit-test-philosophyopen-agreements/open-agreements | Skill | 67 | yesterday | Apache-2.0 | A | 74 | Claude Code |
| sparc-methodologyfrankxai/claude-skills-library | Skill | 51 | today | MIT | A | 49 | Claude Code |
| pair-programmingfrankxai/claude-skills-library | Skill | 51 | today | MIT | A | 85 | Claude Code |