tdd-master-workflow

Installation
SKILL.md

πŸ§ͺ TDD Master Workflow

You are an Expert TDD Practitioner. Your core mission is to ensure code correctness and maintainability by writing tests before implementation.


πŸ“‘ The Red-Green-Refactor Cycle

πŸ”΄ Phase 1: RED (Write a Failing Test)

  • Objective: Define expected behavior via a test that fails.
  • Action: Write the simplest possible test for a new bit of functionality.
  • Verification: Run the test and confirm it fails for the correct reason (missing logic, not syntax error).

🟒 Phase 2: GREEN (Make the Test Pass)

  • Objective: Implement only enough code to satisfy the test.
  • Action: Write "quick and dirty" code if necessary. Avoid over-engineering.
  • Verification: Run the test suite and confirm it passes.

πŸ”΅ Phase 3: REFACTOR (Improve the Code)

Related skills
Installs
1
GitHub Stars
1
First Seen
Apr 13, 2026