What problem does it solve?
TDD helps you build correct functionality faster by forcing short feedback loops where tests drive the next small implementation step, reducing regressions and brittle test suites.
Core Features & Use Cases
- Test-first vertical slices: Build one small behavior at a time using a red-green-refactor flow so each test proves an end-to-end capability through public interfaces.
- Behavior-driven testing guidance: Write integration-style tests that validate observable outcomes rather than mocking internal collaborators or private methods.
- Design for testability: Use small/deep modules and interface design practices (dependency injection, return results over side effects, small surface areas) to make tests straightforward and resilient.
Quick Start
Use the tdd skill when you want to develop a new feature or fix a bug by defining the expected behavior first, then implementing the minimal code to make the public-facing test pass, and finally refactoring safely after all tests are green.