All Skills
Testing

test-driven-development

Forces writing tests before code, producing more stable logic. Initial pace is ~20-30% slower, but bug rate drops measurably.

Install

npx skills add obra/superpowers@test-driven-development -y -g

Cross-tool: Claude Code ~/.claude/skills/ · Qoder ~/.qoder/skills/ · TRAE ~/.trae/skills/

Source

Forces tests-first, producing more stable logic. Initial pace ~20-30% slower, but bug rate drops.

TDD Cycle

  1. Red: Write a failing test describing expected behavior
  2. Green: Write the minimum code to make it pass
  3. Refactor: Improve code under test protection

When to Use

Complex business logic, core code in multi-person teams, features that need long-term maintenance. Avoid forcing TDD on pure UI components and glue code.

#TDD#testing#unit tests#engineering