Test-Driven Development
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
Deno Guidance
by Deno
Deno's official foundational skill — project setup, package choices, configuration, and CLI commands done the current way.
Gradio App Builder
by Hugging Face
Build Gradio web UIs and ML demos in Python with the current API — components, layouts, events, and chat interfaces.
Cloudflare Platform
by Cloudflare
Cloudflare's official platform skill — Workers, Pages, storage, AI, networking, security, and IaC in one reference.
Verification Before Completion
by Jesse Vincent
Never claim work is complete, fixed, or passing without running the check and reading the output first.