go-tdd
Installation
SKILL.md
When to Use
- Starting implementation of any new feature (TDD = write test FIRST)
- Adding tests for existing code
- Creating mocks for domain ports
- Setting up integration tests with real databases
- Writing contract tests between services (producer/consumer)
- Reviewing test quality
Critical Patterns
| Pattern | Rule |
|---|---|
| Test FIRST | Write the failing test before writing production code. Always. |
| Red → Green → Refactor | Fail → pass → clean up. Never skip a step. |
| Table-driven tests | Go convention: use []struct for test cases |
| Mocks via interfaces | No mock frameworks needed — domain ports ARE the mock boundary |
Related skills