What problem does it solve?
This Skill automates the "Green" phase of Test-Driven Development (TDD) by generating production code that makes existing tests pass. It dramatically accelerates development cycles, ensures code quality by strictly adhering to test requirements, and frees developers from repetitive coding tasks, allowing them to focus on higher-level design.
Core Features & Use Cases
- TDD Implementation: Writes minimal, correct code to satisfy failing tests, following TDD principles.
- Test-Driven Development: Infers function signatures, return types, and exception contracts directly from test assertions and usage.
- Code Generation: Creates new files and modifies existing ones to implement required functionality, ensuring all test imports and calls are satisfied.
- Use Case: After a
TestWriter agent creates failing tests for a new add function, this Skill reads those tests and automatically writes the add function implementation (def add(a: int, b: int) -> int: return a + b), making all tests pass without manual coding.
Quick Start
Implement the necessary Python code to make all tests in 'tests/test_math.py' pass, adhering strictly to the TDD "Green" phase.