What problem does it solve?
This Skill enforces a rigorous Test-Driven Development (TDD) process, ensuring that all code is built with a functionality-first mindset. It guides the user through understanding requirements, analyzing project test patterns, and executing the RED -> GREEN -> REFACTOR loop, preventing untested code and ensuring features work as intended.
Core Features & Use Cases
- Context-Dependent Functionality Analysis: Mandates understanding user, admin, and system flows before writing any tests.
- Project Test Pattern Integration: Guides the identification and adherence to existing project test frameworks, assertion libraries, and mocking patterns.
- Enforced TDD Loop: Strictly follows RED (failing test) -> GREEN (minimal code) -> REFACTOR (cleanup) with mandatory command execution.
- Functionality-Focused Test Examples: Provides specific, actionable test examples for various code types (UI, API, Integration).
- Use Case: When implementing a new API endpoint, use this skill to first define the expected request/response flows, then write a failing test for a specific behavior, implement the minimal code to pass it, and then refactor.
Quick Start
Apply the test-driven-development skill to build the new user registration API endpoint, starting with a failing test for email validation.