← AI Library
Skill · Curated · Review & QA
Test-driven development
by Jesse Vincent · reviewed by Mike Reams
Write the failing test, watch it fail for the right reason, write the least code that passes, then refactor.
What you get
New behaviour that arrives with a test that failed without it.
- When to use it
- When implementing any feature or bug fix, before writing the implementation.
- Ask for it like this
- “Add this validation rule test-first.”
- Limits
- Code written before its test is deleted, not kept as a reference.
What I changed, and why I run it
- Wording edits only: names and one cross-reference.
- For anything testable, I want the failing test written and seen to fail first.
- TDD
- testing
- red green refactor
Source
- Author
- Jesse Vincent
- Licence
- MIT
- Reviewed at
- 8ca22db
Reviewed 2026-10-01 Passed after edits: every file read by hand and checked for prompt injection, hidden text, network calls, shell execution and credential reads. Second opinion: skills.sh audits (opens in a new tab).
Not hosted here: get it from the author, at the commit I reviewed.
