|
| 1 | +# Task Template |
| 2 | + |
| 3 | +## 1. Task Overview |
| 4 | +**Brief description of what needs to be built or implemented** |
| 5 | + |
| 6 | +### Problem Statement |
| 7 | +- What problem does this solve? |
| 8 | +- Who is affected by this problem? |
| 9 | +- What is the current state vs. desired state? |
| 10 | + |
| 11 | +### Solution Overview |
| 12 | +- High-level description of the proposed solution |
| 13 | +- Key benefits and value proposition |
| 14 | + |
| 15 | +## 2. Requirements |
| 16 | + |
| 17 | +### User Stories |
| 18 | +``` |
| 19 | +As a [user type], I want [functionality] so that [benefit/value] |
| 20 | +``` |
| 21 | + |
| 22 | +### Functional Requirements |
| 23 | +- **FR-1**: [Requirement description] |
| 24 | +- **FR-2**: [Requirement description] |
| 25 | +- **FR-3**: [Requirement description] |
| 26 | + |
| 27 | +### Non-Functional Requirements |
| 28 | +- **NFR-1**: [Performance, security, scalability requirements] |
| 29 | +- **NFR-2**: [Usability, accessibility requirements] |
| 30 | +- **NFR-3**: [Compatibility, integration requirements] |
| 31 | + |
| 32 | +## 3. Technical Specifications |
| 33 | + |
| 34 | +### Architecture Overview |
| 35 | +- High-level system architecture |
| 36 | +- Key components and their interactions |
| 37 | + |
| 38 | +### API Specifications |
| 39 | +- Endpoints and methods |
| 40 | +- Request/response schemas |
| 41 | +- Authentication and authorization |
| 42 | + |
| 43 | +### Database Schema |
| 44 | +- Entity relationships |
| 45 | +- Key tables and fields |
| 46 | +- Data migration requirements |
| 47 | + |
| 48 | +### Integration Points |
| 49 | +- External services/APIs |
| 50 | +- Third-party dependencies |
| 51 | +- Internal system integrations |
| 52 | + |
| 53 | +## 4. Implementation Plan |
| 54 | + |
| 55 | +### Development Phases |
| 56 | +- **Phase 1**: [Scope and timeline] |
| 57 | +- **Phase 2**: [Scope and timeline] |
| 58 | +- **Phase 3**: [Scope and timeline] |
| 59 | + |
| 60 | +### Dependencies |
| 61 | +- External dependencies |
| 62 | +- Internal team dependencies |
| 63 | +- Infrastructure requirements |
| 64 | + |
| 65 | +### Risk Assessment |
| 66 | +- **High Risk**: [Risk description and mitigation] |
| 67 | +- **Medium Risk**: [Risk description and mitigation] |
| 68 | +- **Low Risk**: [Risk description and mitigation] |
| 69 | + |
| 70 | +## 5. Testing Strategy |
| 71 | + |
| 72 | +### Test Cases |
| 73 | +- **TC-1**: [Test scenario and expected outcome] |
| 74 | +- **TC-2**: [Test scenario and expected outcome] |
| 75 | +- **TC-3**: [Test scenario and expected outcome] |
| 76 | + |
| 77 | +### Testing Types |
| 78 | +- Unit testing |
| 79 | +- Integration testing |
| 80 | +- End-to-end testing |
| 81 | +- Performance testing |
| 82 | +- Security testing |
| 83 | + |
| 84 | +### Acceptance Criteria |
| 85 | +- Definition of Done |
| 86 | +- Quality gates |
| 87 | +- Performance benchmarks |
| 88 | + |
| 89 | +## 6. Code Analysis & Implementation Details |
| 90 | + |
| 91 | +### Key Issues Identified |
| 92 | +- **Issue 1**: [Description and location] |
| 93 | +- **Issue 2**: [Description and location] |
| 94 | +- **Issue 3**: [Description and location] |
| 95 | + |
| 96 | +### Code References |
| 97 | +- **Files to Modify**: [List of key files] |
| 98 | +- **Authentication Integration**: [How to integrate with existing auth] |
| 99 | +- **Frontend Integration**: [How to integrate with existing UI] |
| 100 | + |
| 101 | +### Implementation Examples |
| 102 | +```typescript |
| 103 | +// Example code snippets for key implementations |
| 104 | +export function exampleFunction() { |
| 105 | + // Implementation details |
| 106 | +} |
| 107 | +``` |
| 108 | + |
| 109 | +## 7. Next Steps |
| 110 | +1. **Step 1**: [First action to take] |
| 111 | +2. **Step 2**: [Second action to take] |
| 112 | +3. **Step 3**: [Third action to take] |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## Usage Instructions |
| 117 | + |
| 118 | +1. **Fill in each section** with specific details for your task |
| 119 | +2. **Remove sections** that are not applicable to your specific use case |
| 120 | +3. **Add additional sections** as needed for your project |
| 121 | +4. **Focus on implementation details** and code references |
| 122 | +5. **Keep it concise** - this is for task explanation, not full PRD |
| 123 | + |
| 124 | +## Developer IDE Workflow |
| 125 | + |
| 126 | +### Getting Started with This Task |
| 127 | + |
| 128 | +**For Developers using this task in their IDE:** |
| 129 | + |
| 130 | +1. **Open the task** in your IDE alongside your code editor |
| 131 | + - Use split-screen or multiple tabs to keep the task visible while coding |
| 132 | + - Consider using IDE extensions for markdown preview if available |
| 133 | + |
| 134 | +2. **Start with Requirements Analysis** |
| 135 | + - Read through the Functional Requirements (FR-1, FR-2, etc.) |
| 136 | + - Map each requirement to specific code modules/components |
| 137 | + - Create TODO comments in your code referencing requirement IDs |
| 138 | + |
| 139 | +3. **Use the Technical Specifications Section** |
| 140 | + - Reference API specifications when implementing endpoints |
| 141 | + - Follow the database schema for data modeling |
| 142 | + - Use integration points to understand external dependencies |
| 143 | + |
| 144 | +4. **Implement with User Stories in Mind** |
| 145 | + - Keep user stories visible while coding |
| 146 | + - Write code that directly addresses the "so that [benefit]" part |
| 147 | + - Test your implementation against the acceptance criteria |
| 148 | + |
| 149 | +### IDE-Specific Tips |
| 150 | + |
| 151 | +**VS Code Users:** |
| 152 | +- Install "Markdown Preview Enhanced" extension for better task viewing |
| 153 | +- Use "TODO Tree" extension to track requirements as TODOs in code |
| 154 | +- Set up workspace with task and code side-by-side |
| 155 | + |
| 156 | +**JetBrains IDEs (IntelliJ, WebStorm, etc.):** |
| 157 | +- Use the built-in markdown preview |
| 158 | +- Create TODO comments with requirement references: `// TODO: FR-1 - Implement user authentication` |
| 159 | +- Use the TODO tool window to track progress |
| 160 | + |
| 161 | +**Vim/Neovim Users:** |
| 162 | +- Use markdown preview plugins like `markdown-preview.nvim` |
| 163 | +- Set up split windows with task on one side, code on the other |
| 164 | +- Use quickfix lists for TODO tracking |
| 165 | + |
| 166 | +### Code Organization Strategy |
| 167 | + |
| 168 | +1. **Create Feature Branches** based on task sections |
| 169 | + - `feature/user-authentication` (from FR-1) |
| 170 | + - `feature/api-integration` (from Technical Specifications) |
| 171 | + - `feature/ux-implementation` (from Requirements section) |
| 172 | + |
| 173 | +2. **Use Commit Messages** that reference task sections |
| 174 | + ``` |
| 175 | + feat: implement user authentication (FR-1) |
| 176 | + fix: resolve API integration issue (Technical Specs - API) |
| 177 | + test: add test cases for user journey (Testing Strategy - TC-1) |
| 178 | + ``` |
| 179 | + |
| 180 | +3. **Create Code Comments** linking back to task |
| 181 | + ```typescript |
| 182 | + /** |
| 183 | + * Implements FR-1: User Authentication |
| 184 | + * Supports user stories: "As a user, I want to log in securely" |
| 185 | + * Acceptance criteria: User can authenticate with valid credentials |
| 186 | + */ |
| 187 | + export class AuthService { |
| 188 | + // Implementation here |
| 189 | + } |
| 190 | + ``` |
| 191 | + |
| 192 | +### Progress Tracking |
| 193 | + |
| 194 | +1. **Mark Requirements as Complete** |
| 195 | + - Update the task with implementation status |
| 196 | + - Use checkboxes: `- [x] FR-1: User authentication (COMPLETED)` |
| 197 | + - Add implementation notes and code references |
| 198 | + |
| 199 | +2. **Track Issues and Blockers** |
| 200 | + - Document any deviations from the task |
| 201 | + - Note technical constraints discovered during implementation |
| 202 | + - Update risk assessment based on actual development experience |
| 203 | + |
| 204 | +3. **Regular Task Reviews** |
| 205 | + - Review task weekly during development |
| 206 | + - Update requirements based on new insights |
| 207 | + - Ensure code implementation aligns with documented requirements |
| 208 | + |
| 209 | +### Integration with Development Tools |
| 210 | + |
| 211 | +**Git Integration:** |
| 212 | +- Link task sections to specific commits |
| 213 | +- Use task requirements in pull request descriptions |
| 214 | +- Reference task in code review comments |
| 215 | + |
| 216 | +**Project Management:** |
| 217 | +- Create tickets/tasks based on task sections |
| 218 | +- Link development tasks to specific requirements |
| 219 | +- Use task as source of truth for sprint planning |
| 220 | + |
| 221 | +**Documentation:** |
| 222 | +- Keep task updated as implementation progresses |
| 223 | +- Add code examples and implementation details |
| 224 | +- Document any architectural decisions made during development |
| 225 | + |
| 226 | +## Notes |
| 227 | +- This template should be customized based on your specific needs |
| 228 | +- Consider the complexity and scope of your project when deciding which sections to include |
| 229 | +- Regular reviews and updates are essential to keep the task current and useful |
| 230 | +- **Keep the task as a living document** - update it as you learn more during development |
0 commit comments