test-engineering

test-engineering is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 95 tokens per session (3,630 once invoked), scanned A, original, MIT.

A testing procedure for writing and reviewing software tests. It uses mutation testing, which deliberately introduces small bugs to check whether tests detect them, and measures test running costs and flaky behaviour.

In plain words
What is it for?
Use it to plan, write, audit, and prune tests; investigate slow or flaky test suites; and assess unit tests, test-driven development (TDD), mutation testing, and parallel test runs.
Why use it?
It helps remove tests that merely repeat the implementation or never catch failures, while focusing attention on tests that detect specific bugs at an acceptable cost.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Part of the claude-mods plugin — 116 skills, 5 commands, 4 agents, 4 hooks shipped together

Good fit Use it to plan, write, audit, and prune tests; investigate slow or flaky test suites; and assess unit tests, test-driven development (TDD), mutation testing, and parallel test runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/test-engineering
Install

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.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill test-engineering
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 116 skills, 5 commands, 4 agents, 4 hooks.

Wrote 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.

agentmods badge for test-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/test-engineering/github.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/test-engineering)
Your own site
<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.

agentmods 80×15 button for test-engineering

Your own site · 80×15
<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>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 11d ago against content hash 68d743b0c779, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/affected.py, scripts/budget-gate.py, scripts/ci-audit.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/test-engineering/SKILL.md · 201 lines

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)

  1. 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.
  2. Named for the bug it prevents. refuses a reset link that was already used, not test_reset_2. If you cannot name the bug, do not write the test.
  3. 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.py finds candidates.
  4. 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.
  5. Coverage and count are diagnostics, never goals. Protection is measured by killed mutants; size by seconds.
  6. Heuristics triage, evidence decides. A static flag or an overlap candidate is a question for a reader; a mutant result is an answer.
  7. 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.
  8. 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.
  9. 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.

Read the full file on GitHub · 201 lines

Files

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.

Changes

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.

  1. 11d ago First seen · 201 lines · 95 tokens per session scan A 68d743b0c779

Subscribe to this mod's changes

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.

Related

test-engineering compared with skills from other repositories

test-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-engineering0xDarkMatter/claude-modsSkill866d agoMITA95Claude Code
rust-testingaffaan-m/ECCSkill313k7d agoMITA31Claude Code, Kiro
cpp-testingaffaan-m/ECCSkill313k7d agoMITA34Claude Code, Kiro
agent-test-generatortravisjneuman/.claudeSkill115yesterdayMITA36Claude Code
unit-test-philosophyopen-agreements/open-agreementsSkill67yesterdayApache-2.0A74Claude Code
sparc-methodologyfrankxai/claude-skills-librarySkill51todayMITA49Claude Code
pair-programmingfrankxai/claude-skills-librarySkill51todayMITA85Claude Code