tdd-workflow
Installation
SKILL.md
TDD Workflow Skill
This skill standardizes the Test-Driven Development process to achieve high code quality and maintainability.
The TDD Cycle
Follow these 4 steps strictly for every new feature or bug fix:
1. RED: Write a Failing Test
- Action: Create a new test file or add a case to an existing one.
- Requirement: The test must fail (showing that the feature is missing or the bug is present).
- Goal: Define the expected behavior before writing implementation code.
2. GREEN: Make it Pass
- Action: Write the minimal implementation code necessary to make the test pass.
- Requirement: Don't worry about code elegance yet. Correctness is the only priority.
- Goal: Confirm the solution works as intended.