Task Creation Standards
Purpose
Ensure complete traceability by linking tasks to both requirements and design sections. This enables clear understanding of why each task exists and how to implement it.
Task Granularity (The Rule of 3)
CRITICAL CONSTRAINT: No single implementation task should require modifying more than 3 files.
- Why? To prevent "Context Overflow" in Fullstack/System engineers.
- How to Break Down:
- Bad: "Implement Authentication" (Touches DB, API, UI).
- Good:
- "Define Auth Types" (1 file:
types.ts) - "Create API Route" (1 file:
routes/auth.ts) - "Create DB Model" (1 file:
models/user.ts) - "Create Login Form" (1 file:
components/LoginForm.tsx)
- "Define Auth Types" (1 file:
Linking Rules
Requirements Linking
Format: _Requirements: X.Y, X.Z_
- List requirement IDs from the requirements document.
Design Linking
Format: _Design: Section Name > Subsection Name_
- Reference section headings from the design document.
Task Structure
- [ ] 1. [Top-level task]
- [ ] 1.1 [Subtask]
- Description of what to do
- _Requirements: 1.1, 1.2_
- _Design: Architecture > Component A_
Special Cases
- No Design Reference: If a task (like setup) has no direct design section, omit the design link.
- Multiple Design Areas: List all relevant sections separated by commas.
Best Practices
- Traceability: Easily trace from task → requirement → design.
- Completeness: Verify all requirements are covered.
- Context: Understand the "why" and "how".
- Granularity: Break tasks down into implementable chunks.
