Разработка через тесты (TDD)

★ 8.7 · testing

test-driven-development is a Claude Code skill that enforces writing a failing test before any implementation and reproducing a bug with a test before attempting a fix. It guides Claude through the full RED → GREEN → REFACTOR loop, the Prove-It Pattern for bug fixes, and the test pyramid (~80% unit, ~15% integration, ~5% E2E). Before the first test, the skill discovers the project's actual tooling by inspecting package.json, pyproject.toml, go.mod, Cargo.toml, Makefiles, and CI workflows — so it runs ./gradlew, make test, or the repo's own script rather than assuming a global default. For browser-facing changes it recommends pairing TDD with runtime verification via Chrome DevTools MCP. Works across any language or test framework, making it the right choice whenever new logic is added, existing behavior is modified, or a bug report needs a reproducible proof.