High-signal tests prove behavior, not implementation. While TDD focuses on the process of writing tests first, this skill focuses on the artifact—making tests stable, explicit, and valuable long-term.
Core rule: If a test is nondeterministic or tied to internals, it is debt. Fix it.
0) Prove it fails: capture the regression input or wished-for case and watch the test fail first (or reproduce the bug) before code changes. 1) Clarify behavior: preconditions, action, postconditions, invariants. Capture regression input if fixing a bug.
Руководство по написанию надежных автоматизированных тестов с высоким уровнем сигнала. Используйте, когда спрашиваете: «Как мне это эффективно протестировать?», исправляя нестабильные тесты, рефакторинг наборов тестов или выбирая между стратегиями модуля/интеграции/E2E. отличается от TDD (процесса); этот навык ориентирован на качество и архитектуру тестов. Источник: ederheisler/agent-skills.