When to Use: 4+ files, >60 min effort, complex dependencies, multi-step coordination
Process: Scope → Phases → Small Tasks (1-2h) → Dependencies → Estimates
Template Sections: Overview, Prerequisites, Tasks (by Phase), Testing Strategy, Total Estimate, Notes
Best Practices: Keep tasks small (1-2h), make dependencies clear, include verification, be realistic with estimates
Framework for breaking down complex tasks into manageable, sequential subtasks.
Reference this when:
# Task Breakdown: {Task Name}
## Overview
{1-2 sentence description of what we're building}
## Prerequisites
- [ ] {Prerequisite 1}
- [ ] {Prerequisite 2}
## Tasks
### Phase 1: {Phase Name}
**Goal:** {What this phase accomplishes}
- [ ] **Task 1.1:** {Description}
- **Files:** {files to create/modify}
- **Estimate:** {time estimate}
- **Dependencies:** {none / task X}
- **Verification:** {how to verify it's done}
- [ ] **Task 1.2:** {Description}
- **Files:** {files to create/modify}
- **Estimate:** {time estimate}
- **Dependencies:** {task 1.1}
- **Verification:** {how to verify it's done}
### Phase 2: {Phase Name}
**Goal:** {What this phase accomplishes}
- [ ] **Task 2.1:** {Description}
- **Files:** {files to create/modify}
- **Estimate:** {time estimate}
- **Dependencies:** {phase 1 complete}
- **Verification:** {how to verify it's done}
## Testing Strategy
- [ ] Unit tests for {component}
- [ ] Integration tests for {flow}
- [ ] Manual testing: {scenarios}
## Total Estimate
**Time:** {X} hours
**Complexity:** {Low / Medium / High}
## Notes
{Any important context, decisions, or considerations}
# Task Breakdown: User Authentication System
## Overview
Build authentication system with login, registration, and password reset.
## Prerequisites
- [ ] Database schema designed
- [ ] Email service configured
## Tasks
### Phase 1: Core Authentication
**Goal:** Basic login/logout functionality
- [ ] **Task 1.1:** Create user model and database schema
- **Files:** `models/user.js`, `migrations/001_users.sql`
- **Estimate:** 1 hour
- **Dependencies:** none
- **Verification:** Can create user in database
- [ ] **Task 1.2:** Implement password hashing
- **Files:** `utils/password.js`
- **Estimate:** 30 min
- **Dependencies:** Task 1.1
- **Verification:** Passwords are hashed, not plain text
- [ ] **Task 1.3:** Create login endpoint
- **Files:** `routes/auth.js`, `controllers/auth.js`
- **Estimate:** 1.5 hours
- **Dependencies:** Task 1.1, 1.2
- **Verification:** Can login with valid credentials
### Phase 2: Registration
**Goal:** New user registration
- [ ] **Task 2.1:** Create registration endpoint
- **Files:** `routes/auth.js`, `controllers/auth.js`
- **Estimate:** 1 hour
- **Dependencies:** Phase 1 complete
- **Verification:** Can create new user account
- [ ] **Task 2.2:** Add email validation
- **Files:** `utils/validation.js`
- **Estimate:** 30 min
- **Dependencies:** Task 2.1
- **Verification:** Invalid emails rejected
### Phase 3: Password Reset
**Goal:** Users can reset forgotten passwords
- [ ] **Task 3.1:** Generate reset tokens
- **Files:** `utils/tokens.js`
- **Estimate:** 1 hour
- **Dependencies:** Phase 1 complete
- **Verification:** Tokens generated and validated
- [ ] **Task 3.2:** Create reset endpoints
- **Files:** `routes/auth.js`, `controllers/auth.js`
- **Estimate:** 1.5 hours
- **Dependencies:** Task 3.1
- **Verification:** Can request and complete password reset
- [ ] **Task 3.3:** Send reset emails
- **Files:** `services/email.js`
- **Estimate:** 1 hour
- **Dependencies:** Task 3.2
- **Verification:** Reset emails sent successfully
## Testing Strategy
- [ ] Unit tests for password hashing
- [ ] Unit tests for token generation
- [ ] Integration tests for login flow
- [ ] Integration tests for registration flow
- [ ] Integration tests for password reset flow
- [ ] Manual testing: Complete user journey
## Total Estimate
**Time:** 8.5 hours
**Complexity:** Medium
## Notes
- Use bcrypt for password hashing (industry standard)
- Reset tokens expire after 1 hour
- Rate limit password reset requests
- Email service must be configured before Phase 3
Good breakdown:
Breakdown checklist: