test-driven-development

Installation
SKILL.md

Test-Driven Development (TDD)

Philosophy

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.

Violating the letter of the rules is violating the spirit of the rules.

See tests.md for good/bad examples, mocking.md for mocking guidelines, interface-design.md for testable design, and deep-modules.md for module design.

When to Use

Always:

  • New features
  • Bug fixes
  • Refactoring
  • Behavior changes
Related skills

More from almeidamarcell/claude-code-skills

Installs
5
GitHub Stars
4
First Seen
Feb 20, 2026