test-engineering
БесплатноЗапускает вложенные скриптыНе проверенTests that earn their CI seconds: proved able to fail, kept only if they catch something, fast, run where and when a change needs them. Triggers on: write…
от 0xDarkMatter★ 86 звёзд на 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.
Why: the evidence
From a 13-repo survey (Go, Python, TypeScript: CLIs, MCP servers, Workers APIs, a web app, data and media pipelines), every number measured, not estimated:
| Finding | Consequence here |
|---|---|
| Lead-authored mutants: 45 of 61 killed (74%) by suites that were all green | audit measures with mutants, never with coverage |
| Mutants a blind reviewer predicted were untested: 20 of 20 survived | the reviewer agent is the cheapest source of real gaps |
| Behaviour a site comment warned about: protected 87%; unflagged behaviour: 66% | design walks a gap-class list to supply what nobody anticipated |
| Static slop heuristics: 13% precise | they never block; only exact checks and measured time do |
| New slop families: tests of copied production code, lost duplicate-named tests | catalogued as S15 and S17 |
Modes
Pick from the request; say which mode you chose. Each mode loads only its own reference.
| Mode | Side | When | Read | Output |
|---|---|---|---|---|
| design | catch | "how should I test X", "test plan", "what could break" | design.md | failure list: one named test per bug, with level, oracle, doubles |
| write | catch | "write / add tests", TDD, a bug fix | write.md | tests, each proved with mutate.mjs --prove, or marked unverified |
| audit | both | "what do our tests catch", "why is CI slow", "what does a PR cost" | audit.md | cost profile, mutation results, and the ledger: catch beside cost, per file |
| prune | both | "too many tests", "tests that copy the code", "delete low-value tests" | prune.md | one PR per module: deletions and merges, an evidence row each |
| speed | cost | "slow tests", "slow CI", "parallelise", "offload", "only run tests for what changed" | speed.md, ci.md | where it runs, workers, tiers, fixture and harness fixes; before/after |
| gate | both | "test gate in CI", "block bad tests", "test budget" | gate.md | exact CI checks, the time-budget ratchet, the AGENTS.md Testing section |
| triage | catch | a red test, a survivor, a flake, a reviewer's test comment |
Установить test-engineering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepAgentВложенные файлы
FAQ
Что делает скилл test-engineering?
Tests that earn their CI seconds: proved able to fail, kept only if they catch something, fast, run where and when a change needs them. Triggers on: write tests, test plan, TDD, mutation testing, audit the tests, test slop, slow tests, slow CI, CI cost, prune tests, flaky test, parallel tests, offload tests, test gate, test budget, red test, Greptile test comments.
Как установить скилл test-engineering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-engineering запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic