---
name: dokhacgiakhoa/tdd-workflows-tdd-cycle
source: https://app.decimal.ai/s/dokhacgiakhoa-tdd-workflows-tdd-cycle@1/SKILL.md
source_sha256: a9b4fa68ad7a
---

## Use this skill when

- Working on tdd workflows tdd cycle tasks or workflows
- Needing guidance, best practices, or checklists for tdd workflows tdd cycle

## Do not use this skill when

- The task is unrelated to tdd workflows tdd cycle
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-green-refactor discipline:

[Extended thinking: This workflow enforces test-first development through coordinated agent orchestration. Each phase of the TDD cycle is strictly enforced with fail-first verification, incremental implementation, and continuous refactoring. The workflow supports both single test and test suite approaches with configurable coverage thresholds.]

## Configuration

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [Coverage Thresholds](./sub-skills/coverage-thresholds.md)
### 2. [Refactoring Triggers](./sub-skills/refactoring-triggers.md)
### 3. [1. Requirements Analysis](./sub-skills/1-requirements-analysis.md)
### 4. [2. Test Architecture Design](./sub-skills/2-test-architecture-design.md)
### 5. [3. Write Unit Tests (Failing)](./sub-skills/3-write-unit-tests-failing.md)
### 6. [4. Verify Test Failure](./sub-skills/4-verify-test-failure.md)
### 7. [5. Minimal Implementation](./sub-skills/5-minimal-implementation.md)
### 8. [6. Verify Test Success](./sub-skills/6-verify-test-success.md)
### 9. [7. Code Refactoring](./sub-skills/7-code-refactoring.md)
### 10. [8. Test Refactoring](./sub-skills/8-test-refactoring.md)
### 11. [9. Write Integration Tests (Failing First)](./sub-skills/9-write-integration-tests-failing-first.md)
### 12. [10. Implement Integration](./sub-skills/10-implement-integration.md)
### 13. [11. Performance and Edge Case Tests](./sub-skills/11-performance-and-edge-case-tests.md)
### 14. [12. Final Code Review](./sub-skills/12-final-code-review.md)
### 15. [RED Phase Validation](./sub-skills/red-phase-validation.md)
### 16. [GREEN Phase Validation](./sub-skills/green-phase-validation.md)
### 17. [REFACTOR Phase Validation](./sub-skills/refactor-phase-validation.md)