---
name: "obra/superpowers test-driven-development skill (Iron Law)"
description: "Use when the test-driven-development skill (Iron Law) must run: one failing test, then code."
---

# obra/superpowers test-driven-development skill (Iron Law)

## When
Use when implementation is about to start without a failing test.

## Stop
Iron Law: no production code without a failing test. Never skip red-green-refactor.

## Steps
1. [ ] Every new function/method has a test
2. [ ] Watched each test fail before implementing
3. [ ] Each test failed for expected reason (feature missing, not typo)
4. [ ] Wrote minimal code to pass each test
5. [ ] All tests pass
6. [ ] Output pristine (no errors, warnings)
7. [ ] Tests use real code (mocks only if unavoidable)
8. [ ] Edge cases and errors covered

## Load
obra/superpowers TDD SKILL.md. Test runner.
