with one click
doc-tasks
// Create Task Breakdown (TASKS) - Layer 11 artifact decomposing SPEC into AI-structured TODO tasks
// Create Task Breakdown (TASKS) - Layer 11 artifact decomposing SPEC into AI-structured TODO tasks
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | doc-tasks |
| description | Create Task Breakdown (TASKS) - Layer 11 artifact decomposing SPEC into AI-structured TODO tasks |
| tags | ["sdd-workflow","layer-11-artifact","shared-architecture"] |
| custom_fields | {"layer":11,"artifact_type":"TASKS","architecture_approaches":["ai-agent-based","traditional-8layer"],"priority":"shared","development_status":"active","skill_category":"core-workflow","upstream_artifacts":["BRD","PRD","EARS","BDD","ADR","SYS","REQ","IMPL","CTR","SPEC"],"downstream_artifacts":["Code"],"version":"1.0","last_updated":"2026-02-10T15:00:00"} |
Create Task Breakdown (TASKS) - Layer 11 artifact in the SDD workflow that decomposes SPEC into actionable, AI-structured TODO tasks for implementation.
Layer: 11
Upstream: BRD (Layer 1), PRD (Layer 2), EARS (Layer 3), BDD (Layer 4), ADR (Layer 5), SYS (Layer 6), REQ (Layer 7), IMPL (Layer 8), CTR (Layer 9), SPEC (Layer 10)
Downstream Artifacts: Code (Layer 12)
Before creating this document, you MUST:
List existing upstream artifacts:
ls docs/01_BRD/ docs/02_PRD/ docs/03_EARS/ docs/04_BDD/ docs/05_ADR/ docs/06_SYS/ docs/07_REQ/ 2>/dev/null
Reference only existing documents in traceability tags
Use null only when upstream artifact type genuinely doesn't exist
NEVER use placeholders like BRD-XXX or TBD
Do NOT create missing upstream artifacts - skip functionality instead
Before creating TASKS, read:
.claude/skills/doc-flow/SHARED_CONTENT.mdai_dev_flow/11_TASKS/TASKS-TEMPLATE.mdai_dev_flow/11_TASKS/TASKS_CREATION_RULES.mdai_dev_flow/11_TASKS/TASKS_VALIDATION_RULES.md./ai_dev_flow/scripts/validate_tasks.shai_dev_flow/11_TASKS/IMPLEMENTATION_CONTRACTS_GUIDE.mdUse doc-tasks when:
Scope: Documents with reserved ID 000 are FULLY EXEMPT from validation.
Pattern: TASKS-00_*.md
Document Types:
TASKS-00_index.md)TASKS-00_TRACEABILITY_MATRIX-TEMPLATE.md)TASKS-00_IMPLEMENTATION_CONTRACTS_CHECKLIST.md)Rationale: Reserved ID 000 documents are framework infrastructure (indexes, templates, reference materials), not project artifacts requiring traceability or quality gates.
Validation Behavior: Skip all checks when filename matches TASKS-00_* pattern.
Pattern: TASKS.{DOC_NUM}.{HASH} (3 segments, dot-separated)
| Element Type | Code | Example |
|---|---|---|
| Task | 18 | TASKS.02.1801 |
| Task Item | 30 | TASKS.02.3001 |
REMOVED PATTERNS - Do NOT use:
TASK-XXX→ UseTASKS.NN.18.SST-XXX→ UseTASKS.NN.18.SSReference: ID_NAMING_STANDARDS.md — Cross-Reference Link Format
Fix: Replace ### TASK-01: Implementation with ### TASKS.02.1801: Implementation
Purpose: Break SPEC into tasks consumable by AI coding agents
Format:
## Tasks
### Phase 1: Project Setup (3 tasks)
**TASKS.01.1801: Initialize Project Structure**
- **Action**: Create directory structure per SPEC architecture
- **Files to Create**:
- `src/controllers/data_validation_controller.py`
- `src/services/data_validator.py`
- `src/repositories/data_repository.py`
- `src/models/data_request.py`
- **Dependencies**: None
- **Estimated Effort**: 30 minutes
- **SPEC Reference**: SPEC-01:implementation.modules
- **Success Criteria**: All directories and empty files created
**TASKS.01.1802: Set Up Development Environment**
- **Action**: Configure Python environment and dependencies
- **Files to Create**: `requirements.txt`, `pyproject.toml`
- **Dependencies**: TASKS.01.1801
- **Estimated Effort**: 1 hour
- **SPEC Reference**: SPEC-01:deployment.container
- **Success Criteria**: `pip install -r requirements.txt` succeeds
### Phase 2: Data Models (2 tasks)
**TASKS.01.1803: Implement DataRequest Model**
- **Action**: Create Pydantic model per CTR-01 schema
- **Files to Modify**: `src/models/data_request.py`
- **Dependencies**: TASKS.01.1802
- **Estimated Effort**: 1 hour
- **SPEC Reference**: SPEC-01:interfaces.data_models
- **CTR Reference**: CTR-01#/components/schemas/DataRequest
- **Success Criteria**: Model validates per schema, unit tests pass
Document Control (MANDATORY - First section before all numbered sections)
Core Sections:
Format: TASKS.{SPEC-ID}.18.{SEQ} (unified element ID format)
Example: TASKS.01.1803 means:
Benefits:
Each task MUST include:
Typical Phases:
Use Mermaid diagram ONLY (text-based diagrams prohibited per ai_dev_ssd_flow/DIAGRAM_STANDARDS.md):
## Dependencies Graph
```mermaid
graph TD
T001[TASKS.01.1801: Project Setup]
T002[TASKS.01.1802: Dev Environment]
T003[TASKS.01.1803: DataRequest Model]
T004[TASKS.01.1804: ValidationResponse Model]
T005[TASKS.01.1805: Data Repository]
T006[TASKS.01.1806: Data Validator Service]
T007[TASKS.01.1807: API Controller]
T001 --> T002
T002 --> T003
T002 --> T004
T002 --> T005
T003 --> T006
T004 --> T006
T005 --> T006
T006 --> T007
### 7. Effort Summary
**Format**:
```markdown
## Effort Summary
| Phase | Tasks | Total Effort |
|-------|-------|--------------|
| Phase 1: Project Setup | 2 | 1.5 hours |
| Phase 2: Data Models | 2 | 2 hours |
| Phase 3: Business Logic | 3 | 4 hours |
| Phase 4: API Layer | 1 | 1.5 hours |
| Phase 5: Error Handling | 2 | 2 hours |
| Phase 6: Configuration | 1 | 1 hour |
| Phase 7: Testing | 3 | 3 hours |
| Phase 8: Deployment | 2 | 2 hours |
| **TOTAL** | **16** | **17 hours** |
**Assumptions**:
- Developer familiar with Python and FastAPI
- PostgreSQL database already provisioned
- OAuth service already available
Section 8 is required for ALL TASKS files. Implementation Contracts enable parallel development of dependent TASKS files.
Structure:
## 8. Implementation Contracts
### 8.1 Contracts Provided by This TASKS
@icon: TASKS-XXX:ContractName
@icon-role: provider
- **Contract Name**: [Interface name]
- **Type**: Protocol Interface | Exception Hierarchy | State Machine | Data Model | DI Interface
- **Consumers**: List of TASKS IDs that depend on this contract
- **Purpose**: Brief description
### 8.2 Contracts Consumed by This TASKS
@icon: TASKS-YYY:OtherContract
@icon-role: consumer
- **Provider**: TASKS-YYY
- **Contract Name**: [Interface name]
- **Purpose**: Why this TASKS needs this contract
### 8.3 No Contracts
If this TASKS provides no contracts and consumes no contracts, state explicitly:
"This TASKS document neither provides nor consumes implementation contracts."
When to Create Contracts:
Contract Types:
typing.Protocol with method signaturesEnum states with valid transitionsReference: See ai_dev_flow/11_TASKS/IMPLEMENTATION_CONTRACTS_GUIDE.md for detailed guidance.
The SDD framework uses two distinct notation systems for cross-references:
| Notation | Format | Artifacts | Purpose |
|---|---|---|---|
| Dash | TYPE-NN | ADR, SPEC, CTR | Technical artifacts - references to files/documents |
| Dot | TYPE.NN.xxxx | BRD, PRD, EARS, BDD, SYS, REQ, IMPL, TASKS | Hierarchical artifacts - references to elements inside documents |
Key Distinction:
@adr: ADR-033 → Points to the document ADR-033_risk_limit_enforcement.md@brd: BRD.17.0101 → Points to element 01.01 inside document BRD-017.mdFor hierarchical requirements (BRD, PRD, EARS, BDD, SYS, REQ):
TYPE.NN.xxxx (dot separator, 3-segment unified format)TYPE-NN:NNN (colon separator - DEPRECATED)TYPE.NN.TT.SS (old 4-segment format - DEPRECATED)Examples:
@brd: BRD.17.0101 ✅@brd: BRD.017.001 ❌ (old 3-segment format)Layer 11 (TASKS): Must include tags from Layers 1-10
Tag Count: 8-10 tags (minimum 8, maximum 10)
| Artifact | Element Type | Code | Example |
|---|---|---|---|
| BRD | Business Requirement | 01 | BRD.01.0103 |
| PRD | Product Feature | 07 | PRD.01.0702 |
| EARS | Statement | 25 | EARS.01.2501 |
| BDD | Scenario | 14 | BDD.01.1401 |
| SYS | System Requirement | 26 | SYS.01.2601 |
| REQ | Atomic Requirement | 27 | REQ.01.2701 |
| IMPL | Implementation Phase | 29 | IMPL.01.2901 |
Minimum (IMPL and CTR skipped):
## Traceability
**Required Tags** (Cumulative Tagging Hierarchy - Layer 11):
```markdown
@brd: BRD.01.0103
@prd: PRD.01.0702
@ears: EARS.01.2501
@bdd: BDD.01.1401
@adr: ADR-033, ADR-045
@sys: SYS.01.2601
@req: REQ.01.2701
@spec: SPEC-01
Maximum (IMPL, CTR, and ICON included):
@brd: BRD.01.0103
@prd: PRD.01.0702
@ears: EARS.01.2501
@bdd: BDD.01.1401
@adr: ADR-033, ADR-045
@sys: SYS.01.2601
@req: REQ.01.2701
@impl: IMPL.01.2901
@ctr: CTR-01
@spec: SPEC-01
@icon: TASKS-01:DataValidator # if providing or consuming implementation contracts
@icon-role: provider # or consumer
Upstream Sources:
Downstream Artifacts:
src/)Same-Type Document Relationships (conditional):
@related-tasks: TASKS-NN - TASKS sharing implementation context@depends-tasks: TASKS-NN - TASKS that must be completed first| Check | Description |
|---|---|
| CHECK 1 | Filename format valid (TASKS-NN_slug_tasks.md) |
| CHECK 2 | YAML frontmatter present with required fields |
| CHECK 3 | Document Control table complete (8 fields) |
| CHECK 4 | All 8 required sections present |
| CHECK 5 | Section 8 (Implementation Contracts) exists with 8.1/8.2/8.3 subsection |
| CHECK 6 | All 8 required traceability tags present |
| CHECK 7 | Parent SPEC reference valid and file exists |
| CHECK 8 | Element ID format compliance (TASKS.NN.xxxx) |
| Check | Description |
|---|---|
| CHECK W1 | Scope section has exclusions documented |
| CHECK W2 | Plan has at least 3 numbered steps |
| CHECK W3 | SPEC line references present |
| CHECK W4 | At least 3 acceptance criteria checkboxes |
| CHECK W5 | BDD scenario reference in acceptance criteria |
| CHECK W6 | @icon-role tag present if @icon tag used |
| Check | Description |
|---|---|
| CHECK I1 | Time estimates present in plan |
| CHECK I2 | Optional @impl and @ctr tags present |
| CHECK I3 | ICON references valid and files exist |
Read SPEC (Layer 10) - technical specifications to decompose.
Check docs/11_TASKS/ for next available ID number.
ID Numbering Convention: Start with 2 digits and expand only as needed.
ID Matching: TASKS ID typically matches SPEC ID (TASKS-01 from SPEC-01).
Nested Folder Rule (MANDATORY): ALL TASKS documents MUST use nested folders regardless of document size.
File naming: docs/11_TASKS/TASKS-NN_{slug}/TASKS-NN_{slug}.md
Example: docs/11_TASKS/TASKS-01_data_validation/TASKS-01_data_validation.md
CRITICAL: Never create TASKS files directly in docs/11_TASKS/ without a nested folder structure.
Complete metadata and Document Revision History table.
Summarize task breakdown approach.
Organize tasks into logical phases (8 typical phases).
For each task in SPEC:
Use Mermaid diagram to visualize task dependencies.
Summarize total effort by phase.
Include all 8-10 upstream tags (@brd through @spec).
MANDATORY: Update docs/TASKS/TASKS-00_TRACEABILITY_MATRIX.md
./ai_dev_flow/scripts/validate_tasks.sh docs/TASKS/TASKS-01_*.md
python ai_dev_flow/scripts/validate_tags_against_docs.py --artifact TASKS-01 --expected-layers brd,prd,ears,bdd,adr,sys,req,impl,contracts,spec --strict
Commit TASKS file and traceability matrix.
# Quality gates
./scripts/validate_quality_gates.sh docs/TASKS/TASKS-01_*.md
# Task format validation
./ai_dev_flow/scripts/validate_tasks.sh docs/TASKS/TASKS-01_*.md
# Cumulative tagging
python ai_dev_flow/scripts/validate_tags_against_docs.py \
--artifact TASKS-01 \
--expected-layers brd,prd,ears,bdd,adr,sys,req,impl,contracts,spec \
--strict
@icon tags added if providing/consuming contractsAll diagrams MUST use Mermaid syntax. Text-based diagrams (ASCII art, box drawings) are prohibited.
See: ai_dev_ssd_flow/DIAGRAM_STANDARDS.md and mermaid-gen skill.
CRITICAL: Execute this validation loop IMMEDIATELY after document creation. Do NOT proceed to next document until validation passes.
LOOP:
1. Run: python ai_dev_flow/scripts/validate_cross_document.py --document {doc_path} --auto-fix
2. IF errors fixed: GOTO LOOP (re-validate)
3. IF warnings fixed: GOTO LOOP (re-validate)
4. IF unfixable issues: Log for manual review, continue
5. IF clean: Mark VALIDATED, proceed
# Per-document validation (Phase 1)
python ai_dev_flow/scripts/validate_cross_document.py --document docs/TASKS/TASKS-NN_slug.md --auto-fix
# Layer validation (Phase 2) - run when all TASKS documents complete
python ai_dev_flow/scripts/validate_cross_document.py --layer TASKS --auto-fix
| This Layer | Required Upstream Tags | Count |
|---|---|---|
| TASKS (Layer 11) | @brd, @prd, @ears, @bdd, @adr, @sys, @req, @spec (+ @impl, @ctr if created) | 8-10 tags |
| Issue | Fix Action |
|---|---|
| Missing upstream tag | Add with upstream document reference |
| Invalid tag format | Correct to TYPE.NN.xxxx (3-segment) or TYPE-NN format |
| Broken link | Recalculate path from current location |
| Missing traceability section | Insert from template |
| Code | Description | Severity |
|---|---|---|
| XDOC-001 | Referenced requirement ID not found | ERROR |
| XDOC-002 | Missing cumulative tag | ERROR |
| XDOC-003 | Upstream document not found | ERROR |
| XDOC-006 | Tag format invalid | ERROR |
| XDOC-007 | Gap in cumulative tag chain | ERROR |
| XDOC-009 | Missing traceability section | ERROR |
Blocking: YES - Cannot proceed to next document until Phase 1 validation passes with 0 errors.
After completing TASKS, proceed to implementation:
TASKS artifacts do not support REF documents. Reference documents are limited to BRD and ADR types only per the SDD framework.
For supplementary documentation needs, create:
ai_dev_flow/11_TASKS/TASKS-TEMPLATE.md (primary authority)ai_dev_flow/11_TASKS/TASKS_CREATION_RULES.mdai_dev_flow/11_TASKS/TASKS_VALIDATION_RULES.mdai_dev_flow/11_TASKS/README.md.claude/skills/doc-flow/SHARED_CONTENT.mdSection Templates (for documents >25K tokens):
ai_dev_flow/11_TASKS/TASKS-SECTION-0-TEMPLATE.mdai_dev_flow/11_TASKS/TASKS-SECTION-TEMPLATE.mdai_dev_flow/ID_NAMING_STANDARDS.md (Section-Based File Splitting)TASKS Purpose: Decompose SPEC into actionable AI-structured TODO tasks
Layer: 11
Element ID Format: TASKS.NN.18.SS
Removed Patterns: TASK-XXX, T-XXX
Tags Required: @brd through @spec (8-10 tags)
Format: AI-structured TODO with phases
Task ID Format: TASKS.{SPEC-ID}.18.{SEQ}
Required Task Fields:
Key Sections:
Next: Implementation (Code → Tests → Validation)
| Version | Date | Changes | Author |
|---|---|---|---|
| 1.0 | 2026-02-08 | Initial skill definition with YAML frontmatter standardization | System |