Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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)

  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.

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
Полный SKILL.md на GitHub

Установить test-engineering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
Agent

Вложенные файлы

assets/agents-testing-section.mdassets/ci-tiers.ymlassets/greptile-rules.mdassets/mutant.example.jsonassets/test-budget.example.jsonassets/test-gate.ymlassets/test-map.example.jsonassets/test-profile.example.ymlreferences/ai-reviewers.mdreferences/audit.mdreferences/ci.mdreferences/design.mdreferences/frameworks.mdreferences/gap-classes.mdreferences/gate.mdreferences/mocking-strategies.mdreferences/profile.mdreferences/prune.mdreferences/slop-patterns.mdreferences/speed.mdreferences/tdd-workflow.mdreferences/test-data-patterns.mdreferences/triage.mdreferences/visual-testing.mdreferences/write.mdscripts/affected.pyscripts/budget-gate.pyscripts/ci-audit.pyscripts/coverage-check.shscripts/coverage-overlap.pyscripts/mutate.mjsscripts/oracle-scan.pyscripts/run-plan.pyscripts/suite-profile.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить test-engineering с