$ skilldirectory
— zsh — registry.skilldirectory.dev
skill library blog

home / Testing & QA / Test Driven Development Skill by @obra

Test Driven Development Skill by @obra

FREE
github stars★ 2,89,989updatedSep 2026repo@obra
$git clone https://github.com/obra/superpowers

The skill is the skills/test-driven-development folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.

Read the opening of the original SKILL.md
------|------|-----|
| **Minimal** | One thing. "and" in name? Split it. | `test('validates email and domain and whitespace')` |
| **Clear** | Name describes behavior | `test('test1')` |
| **Shows intent** | Demonstrates desired API | Obscures what code should do |

When writing or changing any test, read [writing-good-tests.md](writing-good-tests.md) for the rules that keep tests honest:
- Name the production change that would make the test fail — before writing it
- Assert on real behavior, never on mock behavior
- Keep test-only code in test utilities, out of production classes
- Understand a dependency's side effects before mocking it

## Common Rationalizations

| Excuse | Reality |
|--------|---------|
| "Too simple to test" | Simple code breaks. Test takes 30 seconds. |
…

Excerpt only, quoted from the author's repository. Open the repository for the complete file.