// Guide AI agents through Specification-Driven Development (SDD) + Test-Driven Development (TDD) integrated workflow. Use when implementing complex features, making architectural decisions, or conducting large-scale refactoring that requires clear specifications and test-first development.
| name | sdd-tdd-workflow |
| description | Guide AI agents through Specification-Driven Development (SDD) + Test-Driven Development (TDD) integrated workflow. Use when implementing complex features, making architectural decisions, or conducting large-scale refactoring that requires clear specifications and test-first development. |
This skill guides AI agents through a comprehensive Specification-Driven Development (SDD) and Test-Driven Development (TDD) integrated workflow: Spec โ Test โ Code (STC).
The workflow ensures:
Apply this workflow based on task complexity:
| Task Type | Apply Workflow |
|---|---|
| Complex new features | โ Full SDD+TDD |
| Simple new features | โ ๏ธ TDD only (skip RFC) |
| Technical decisions | โ ADR + TDD |
| Bug fixes | โ ๏ธ TDD only |
| Large-scale refactoring | โ RFC + TDD |
| Small-scale refactoring | โ ๏ธ TDD only |
Use this skill when:
Spec โ Design Review โ Test โ Code โ Verify โ Iterate
Goal: Define what to build and why.
Choose document type:
Key sections to complete:
Location: docs/specs/rfcs/ or docs/specs/adrs/
Goal: Analyze spec and create implementation plan.
Key Activities:
Outputs:
Goal: Derive test cases from specifications to define success criteria.
Steps:
Format: Given-When-Then structure
Goal: Implement using Red-Green-Refactor cycle.
TDD Cycle:
Repeat for each function/feature.
Goal: Ensure implementation meets spec and quality standards.
Checklist:
Goal: Incorporate feedback and update specs as needed.
Steps:
Example prompts:
"Implement the sync command using SDD+TDD workflow from RFC-0001"
"Create an ADR for choosing the configuration format, then implement with TDD"
"Follow SDD+TDD workflow to add user authentication feature"
full_workflow.md - Comprehensive workflow documentation including:
When to load: When detailed guidance is needed for a specific phase, when implementing a complex feature for the first time, or when teaching the workflow to new team members.
Quick Reference:
| Need | Action |
|---|---|
| Start new feature | RFC โ Design Review โ Tests โ TDD implement |
| Make tech decision | ADR โ Design Review โ Tests โ TDD implement |
| Understand phases | Read references/full_workflow.md |
| Get examples | See "์ค์ ์์ " section in full_workflow.md |
| Use checklist | Find phase checklists in full_workflow.md |