| description | Build tests outside-in: describe behavior first, grow tests red-green, keep what states behavior, and remove the scaffolding before landing. |
|---|
Test-driven development works well for agents. The trouble comes after green. Each step leaves a small test behind, and the pile grows into test sediment. Sediment slows every build and change. It breaks on refactors that keep behavior. It can lock in wrong behavior, so a bug fix means defending the old wrong answer first.
OpenClaw's test-audit skill cleans up a pile that already exists. Use it for audits. This skill keeps the pile from forming: describe behavior from the outside, grow tests red-green, keep what states behavior, and remove the rest before landing.