Test-Driven Development
Real TDD, enforced. Your agent writes the failing test first, watches it fail, then writes only enough code to pass — and deletes anything written out of order.
Plenty of agents claim to do test-driven development and then quietly write the implementation first and the tests afterwards, when they can't fail anymore. This Skill from Superpowers closes that loophole.
It hard-codes the red–green–refactor loop into the agent's workflow: no production code without a failing test first, minimal code to green, then refactor with the tests as a safety net. Code that appears before its test is treated as a process violation and removed.
What it does
- Red first, always — the test must be seen failing before implementation starts
- Minimal green — only enough code to pass, no speculative extras
- Refactor with a net — cleanup happens while the suite is green
- Zero tolerance for test-after — code written before its test gets deleted and redone
- Works with your stack — the loop is language-agnostic; your test runner is the judge
Made with this Skill
The loop in action: the failure comes first and is expected — it's the proof the test actually tests something.
Requirements
- An agent that can read and install Agent Skills — Claude Code, Codex, Cursor, OpenCode or Gemini CLI
- Network access to GitHub, so your agent can fetch the Skill from its source repository
- A project with a runnable test suite (pytest, Jest, Go test — anything your agent can execute)
Install
Paste this prompt to your agent — it fetches the Skill from the source repository (we don't host a copy):
Free Skill — no account, no card required.