Never claim work is complete, fixed, or passing without running the check and reading the output first.
Test-Driven DevelopmentSkill
Summary
Enforce a real red-green-refactor loop when implementing features or fixes, so behaviour is specified before it is written.
Features
- Red-green-refactor discipline enforced on every change
- Tests written before implementation, not after
- Catches specification gaps before code exists
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
This skill applies test-driven development properly: write a failing test that captures the intended behaviour, watch it fail for the right reason, write the minimum code to pass it, then refactor.
The order matters more than usual with an AI agent. Writing the test first forces the specification to be explicit, gives an objective completion signal, and makes it obvious when the implementation drifts from what was asked. Writing tests afterwards tends to produce tests that assert whatever the code already does.
It covers what to test, how small a step should be, and when the loop is a poor fit — because dogmatic TDD on exploratory work wastes time.
Part of the Superpowers collection.
Related Skills
An agentic software-development methodology: composable skills that push a coding agent through spec, plan, TDD and review instead of straight into code.
Skill: Engineering Code Review
by Sentry
Review pull requests against a real engineering practice — security, performance, testing, and design, in that order.
Skill: Receiving Code Review
by Jesse Vincent
Respond to code review feedback with technical rigour — verify each point instead of agreeing with everything.