# Test-driven development

> Write the failing test, watch it fail for the right reason, write the least code that passes, then refactor.

Canonical: https://mikereams.com/ai/test-driven-development

Skill · Curated · Review & QA · updated 2026-10-01. Part of the [AI Library](https://mikereams.com/ai).

What you get: New behaviour that arrives with a test that failed without it.

- Wording edits only: names and one cross-reference.

Source: [obra/superpowers](https://github.com/obra/superpowers/tree/8ca22db/skills/test-driven-development) by Jesse Vincent (MIT), reviewed at 8ca22db. Not hosted here.

Reviewed 2026-10-01.

Tags: TDD, testing, red green refactor
