Tdd Patterns

Guide test-driven development through the mandatory Red-Green-Refactor cycle: a test is RED only when it fails for the intended reason, its expected value has a stated source (spec, reference implementation, hand computation, fixture, or standard — never the implementation's own output), and its input discriminates the right implementation from the plausible wrong one. Also enforces run-mode test runners and the `testing.tddMode` opt-out. Use when implementing features or fixing bugs (with `testing.tddMode='enforce'` blocking implementation without a failing test). This skill MUST be consulted because test-first is the primary quality enforcement point; tests that pass on first write, tests with self-referential expectations, and tests on degenerate inputs are the observed ways agents write tests that cannot fail.

synaptiai 424b7ff 4.7 KB Updated

File contents

synaptiai/synapti-marketplace/tree/main/plugins/flow/skills/tdd-patterns commit 424b7ffb4b

Frequently asked questions

npx skillmds@latest add synaptiai/tdd-patterns