test-driven-development
Enforce genuine red-green-refactor discipline in AI coding agents.
Install
See the repository for setupWhat it does
This skill gives a coding agent a strict test-driven-development workflow to follow while it implements features, fixes bugs, refactors, or changes behavior. Instead of writing code first and adding tests afterward, the agent writes one small test, runs it to confirm it fails for the expected reason, then writes only enough code to pass, verifies the full suite, and cleans up while staying green. It documents the red-green-refactor cycle, requirements for clear and minimal tests, and a verification checklist for deciding when work is done. It is intended for developers who want an agent to prove a test can catch a bug before trusting the fix, and it explicitly rejects keeping pre-written code as reference. The source gives no installation steps or named client integrations, so setup depends on the harness you use. Limitations: it does not apply to throwaway prototypes, generated code, or configuration files without approval, and it treats any code written before a failing test as grounds for deletion and restart.
Skill files
- SKILL.md
- writing-good-tests.md
Repository data
- Stars
- 325,124
- Last push
- Nov 3, 2026
- License
- MIT
- Archived
- No
Tools similar to test-driven-development
FAQ
- What license does test-driven-development use?
- MIT
- What files are included with test-driven-development?
- SKILL.md, writing-good-tests.md
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/skills/test-driven-development"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.