What problem does it solve?
This Skill eliminates the risk of shipping buggy, hard-to-maintain code by enforcing a strict test-first development workflow, reducing costly post-release fixes and technical debt.
Core Features & Use Cases
- Strict TDD Cycle Enforcement: Guides you through the RED-GREEN-REFACTOR loop for every piece of functionality, ensuring no implementation is written before a failing test exists.
- Comprehensive Testing Guidance: Covers environment setup, test structure, mocking, async testing, database/API testing, coverage tracking, and CI integration for Python projects using pytest.
- Use Case: A developer building a new user authentication feature can use this Skill to write failing login validation tests first, implement minimal code to pass those tests, then safely refactor without breaking existing functionality.
Quick Start
Use the tdd skill to implement the new order validation feature by first writing a failing test that checks for negative order quantity rejection, then write the minimal code to make that test pass.