tdd
Installation
SKILL.md
TDD playbook
Apply the execution contract before this procedure.
HARD-GATE
- No implementation until a test exists, was run, and failed because behaviour is missing (not because of compile noise you have not fixed in the test).
- Implementation waits for explicit user approval unless the task already granted implementation authority; after RED, continue only within that accepted scope.
- Quality gate before you call it done — same commands as
docs/skill-authoring.md:cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test.
When to use
New or changed behaviour in a Rust crate. Prefer unit tests next to the module; tests/ only for public-API contracts.