What problem does it solve?
This Skill eliminates regressions and uncertainty by requiring you to prove behavior with failing tests first, then minimal code until tests pass, and finally safe refactoring.
Core Features & Use Cases
- RED/Green/Refactor TDD Cycle: Write a failing test, implement the smallest change to make it pass, then refactor without changing behavior.
- Prove-It Pattern for Bug Fixes: Reproduce the bug by writing a test that fails before applying any fix.
- Testing Strategy Guidance: Use a sensible test pyramid (mostly small/unit tests), prefer outcome-based assertions over interaction-based assertions, and avoid common test anti-patterns like flakiness or testing framework internals.
- Browser Runtime Verification: When changes affect the browser, pair tests with runtime verification using OpenCode browser tools and (optionally) Playwright MCP or DevTools MCP.
Quick Start
Use the test-driven-development skill to create a failing test for the behavior you want to change, then implement the minimum code until the test passes.