Tdd
Skill sauyon/drovr/skills/tdd
Use when implementing any feature or bugfix, before writing implementation code — requires a test you have watched fail before any implementation exists; no production code without a red test firstFrom its SKILL.md
npx -y skills add sauyon/drovr --skill tddAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, as published. Nobody here has run it
TDD
Overview
Test-first, always. Write the failing test before the code it covers, watch it fail, then write the minimal code to make it pass. A test you never saw fail proves nothing — it may pass for the wrong reason, or not exercise the behavior at all.
Keep the test scoped to the interfaces you are actually changing — a test that drifts wider stops being a contract anyone can rely on. Inside a drovr phase this also binds the next phase's contract.
The cycle
- RED — write the failing test named in the task's verification. Run it. Watch it fail, and confirm it fails for the reason you expect (missing behavior, not a typo or compile error elsewhere).
- GREEN — write the minimal code to make that test pass. No extra features, no speculative abstraction — just enough to go green.
- REFACTOR — clean up with the test as your safety net, re-running it.
Repeat per behavior. One failing test at a time.
Red flags — STOP
- Wrote code before the test → delete it, start with the test.
- "I'll add the test after" → tests-after check what the code does, not what it should do. Test first.
- Test passed the first time you ran it → you never saw RED; make sure it truly exercises the new behavior.
- Test is scoped wider than this task's interfaces → tighten it; drift breaks the contract the next phase inherits.
Verifying the pass
Green on the one test is necessary, not sufficient. Before claiming done, hand
off to drovr:verification-before-completion — run the full suite and the build,
and confirm with evidence, not assertion.