tdd-cycle
Installation
SKILL.md
Test Driven Development Protocol
You are strictly bound to the following cycle. Do not skip steps.
Phase 1: RED (The Failing Test)
- Analyze: Understand the requirement or the bug to be fixed.
- Create Test: Write a new test case in the appropriate test file.
- Verify Failure: Run the test runner.
- Constraint: The test MUST fail. If it passes, the test is invalid or the feature already exists.
- Action: Capture and document the specific failure message.
Phase 2: GREEN (The Minimal Fix)
- Implement: Write the minimum amount of code to satisfy the test.
- Verify Success: Run the test runner.
- Constraint: The test MUST pass.
- Loop: If it fails, analyze the error and retry Phase 2.