test-driven-development

from obra/superpowers scored 2026-07-07

Requires a failing test before implementation code for any feature or bugfix. The loop is red, green, refactor, with the agent forbidden from writing implementation first.

Skill scores
scored 2026-07-07 · rubric
Skill Leverage82
Reliability82
Evaluation Readiness88
Safety / Governance74

Anatomy

Parent repoobra/superpowers
Pathskills/test-driven-development
Trigger conditions"Use when implementing any feature or bugfix, before writing implementation code"
Instruction formatyaml-frontmatter-md
Required toolsshell, file-edit
Reusabilitystack-specific
Complexitymedium
Ships scripts / examples / tests / boundariesno / yes / yes / yes

Failure modes

Agents write tests that assert the implementation rather than the requirement; pairs best with a separate review skill. Setup-heavy stacks tempt the agent to skip straight to code.

Verdict

The highest evaluation-readiness score in the index because the loop's own output is the evidence. Adopt where your test infrastructure is already decent.

Related skills

Frequently asked questions

What does the test-driven-development skill do?

Requires a failing test before implementation code for any feature or bugfix. The loop is red, green, refactor, with the agent forbidden from writing implementation first.

When does test-driven-development trigger?

Its stated trigger: "Use when implementing any feature or bugfix, before writing implementation code". Trigger precision is a scored reliability dimension.

Go deeper