@intentsolutions/blueprint 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/core/index.d.ts +62 -0
  4. package/dist/core/index.d.ts.map +1 -0
  5. package/dist/core/index.js +137 -0
  6. package/dist/core/index.js.map +1 -0
  7. package/dist/index.d.ts +9 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +11 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/mcp/index.d.ts +7 -0
  12. package/dist/mcp/index.d.ts.map +1 -0
  13. package/dist/mcp/index.js +216 -0
  14. package/dist/mcp/index.js.map +1 -0
  15. package/package.json +30 -10
  16. package/templates/core/01_prd.md +465 -0
  17. package/templates/core/02_adr.md +432 -0
  18. package/templates/core/03_generate_tasks.md +418 -0
  19. package/templates/core/04_process_task_list.md +430 -0
  20. package/templates/core/05_market_research.md +483 -0
  21. package/templates/core/06_architecture.md +561 -0
  22. package/templates/core/07_competitor_analysis.md +462 -0
  23. package/templates/core/08_personas.md +367 -0
  24. package/templates/core/09_user_journeys.md +385 -0
  25. package/templates/core/10_user_stories.md +582 -0
  26. package/templates/core/11_acceptance_criteria.md +687 -0
  27. package/templates/core/12_qa_gate.md +737 -0
  28. package/templates/core/13_risk_register.md +605 -0
  29. package/templates/core/14_project_brief.md +477 -0
  30. package/templates/core/15_brainstorming.md +653 -0
  31. package/templates/core/16_frontend_spec.md +1479 -0
  32. package/templates/core/17_test_plan.md +878 -0
  33. package/templates/core/18_release_plan.md +994 -0
  34. package/templates/core/19_operational_readiness.md +1100 -0
  35. package/templates/core/20_metrics_dashboard.md +1375 -0
  36. package/templates/core/21_postmortem.md +1122 -0
  37. package/templates/core/22_playtest_usability.md +1624 -0
@@ -0,0 +1,418 @@
1
+ # 🔄 Task Generation & Breakdown Framework
2
+
3
+ **Metadata**
4
+ - Last Updated: {{DATE}}
5
+ - Maintainer: AI-Dev Toolkit
6
+ - Related Docs: Uses 01_prd.md → feeds 04_process_task_list.md
7
+
8
+ > **🎯 Purpose**
9
+ > Systematic breakdown of PRD features into actionable, estimable tasks with clear dependencies and acceptance criteria. This template ensures comprehensive coverage and realistic estimation for successful project delivery.
10
+
11
+ ---
12
+
13
+ ## 📊 1. Input Analysis & Preparation
14
+
15
+ ### 1.1 PRD Feature Extraction
16
+ **Source Document:** _{Link to PRD (01_prd.md)}_
17
+
18
+ **Features to Decompose:**
19
+ | Feature ID | Feature Name | Priority | Business Value | Complexity |
20
+ |------------|--------------|----------|----------------|------------|
21
+ | F001 | _{Feature name}_ | P0 | High | Medium |
22
+ | F002 | _{Feature name}_ | P1 | Medium | High |
23
+ | F003 | _{Feature name}_ | P2 | Low | Low |
24
+
25
+ ### 1.2 Prerequisites & Dependencies
26
+ **External Dependencies:**
27
+ - [ ] _{Design system components ready}_
28
+ - [ ] _{API specifications finalized}_
29
+ - [ ] _{Infrastructure provisioned}_
30
+ - [ ] _{Third-party integrations available}_
31
+
32
+ **Technical Prerequisites:**
33
+ - [ ] _{Development environment setup}_
34
+ - [ ] _{Code repository configured}_
35
+ - [ ] _{CI/CD pipeline established}_
36
+ - [ ] _{Testing frameworks installed}_
37
+
38
+ ### 1.3 Team Capacity Assessment
39
+ | Role | Available Hours/Sprint | Skill Level | Specialty Areas |
40
+ |------|----------------------|-------------|----------------|
41
+ | **Frontend Developer** | _{40 hours}_ | Senior | React, TypeScript |
42
+ | **Backend Developer** | _{40 hours}_ | Mid-level | Node.js, PostgreSQL |
43
+ | **DevOps Engineer** | _{20 hours}_ | Senior | AWS, Docker |
44
+ | **QA Engineer** | _{30 hours}_ | Mid-level | Automation, API testing |
45
+
46
+ ---
47
+
48
+ ## 🏗️ 2. User Story Generation
49
+
50
+ ### 2.1 Story Template & Standards
51
+ **Standard Format:**
52
+ ```
53
+ As a [user type]
54
+ I want [capability/feature]
55
+ So that [outcome/benefit]
56
+ ```
57
+
58
+ **Story Quality Criteria:**
59
+ - [ ] **Independent:** Can be developed separately
60
+ - [ ] **Negotiable:** Details can be discussed
61
+ - [ ] **Valuable:** Provides user/business value
62
+ - [ ] **Estimable:** Size can be determined
63
+ - [ ] **Small:** Fits in one sprint
64
+ - [ ] **Testable:** Acceptance criteria are clear
65
+
66
+ ### 2.2 Epic Breakdown Process
67
+
68
+ #### Epic: _{Feature Name}_ (F001)
69
+ **Business Objective:** _{What business goal this achieves}_
70
+ **User Impact:** _{How this improves user experience}_
71
+
72
+ ##### User Story US001: _{Story Title}_
73
+ **Story:** As a _{user type}_, I want _{capability}_ so that _{outcome}_
74
+
75
+ **Business Value:** _{High/Medium/Low + justification}_
76
+ **Story Points:** _{Fibonacci estimate: 1,2,3,5,8,13}_
77
+ **Sprint Assignment:** _{Sprint X}_
78
+
79
+ **Acceptance Criteria:**
80
+ - [ ] **AC001:** Given _{context}_, when _{action}_, then _{expected result}_
81
+ - [ ] **AC002:** Given _{context}_, when _{action}_, then _{expected result}_
82
+ - [ ] **AC003:** System handles _{error condition}_ gracefully
83
+ - [ ] **AC004:** Performance meets _{specific requirement}_
84
+
85
+ **Definition of Done:**
86
+ - [ ] Code reviewed and approved
87
+ - [ ] Unit tests written (≥80% coverage)
88
+ - [ ] Integration tests passing
89
+ - [ ] Security review completed
90
+ - [ ] Documentation updated
91
+ - [ ] Accessibility requirements met
92
+ - [ ] Performance benchmarks achieved
93
+
94
+ ##### User Story US002: _{Story Title}_
95
+ [Repeat format above]
96
+
97
+ ### 2.3 Cross-Cutting Stories
98
+ **Infrastructure Stories:**
99
+ - US-INF-001: Set up monitoring and alerting
100
+ - US-INF-002: Implement security scanning
101
+ - US-INF-003: Configure backup and recovery
102
+
103
+ **Technical Debt Stories:**
104
+ - US-TECH-001: Refactor legacy authentication
105
+ - US-TECH-002: Upgrade outdated dependencies
106
+ - US-TECH-003: Improve error handling consistency
107
+
108
+ ---
109
+
110
+ ## ⚙️ 3. Task Decomposition Framework
111
+
112
+ ### 3.1 Task Breakdown Structure (WBS)
113
+
114
+ #### Epic F001: _{Feature Name}_
115
+
116
+ ##### User Story US001: _{Story Title}_
117
+
118
+ **Frontend Tasks:**
119
+ | Task ID | Description | Estimate | Dependencies | Owner | Sprint |
120
+ |---------|-------------|----------|--------------|-------|--------|
121
+ | T001-FE-01 | Create component wireframes | 4h | Design approval | Frontend Dev | S1 |
122
+ | T001-FE-02 | Implement React component | 8h | T001-FE-01 | Frontend Dev | S1 |
123
+ | T001-FE-03 | Add responsive design | 6h | T001-FE-02 | Frontend Dev | S1 |
124
+ | T001-FE-04 | Implement state management | 6h | T001-FE-02 | Frontend Dev | S1 |
125
+ | T001-FE-05 | Add error handling | 4h | T001-FE-04 | Frontend Dev | S1 |
126
+ | T001-FE-06 | Write component tests | 6h | T001-FE-02 | Frontend Dev | S1 |
127
+
128
+ **Backend Tasks:**
129
+ | Task ID | Description | Estimate | Dependencies | Owner | Sprint |
130
+ |---------|-------------|----------|--------------|-------|--------|
131
+ | T001-BE-01 | Design API endpoints | 4h | PRD approval | Backend Dev | S1 |
132
+ | T001-BE-02 | Implement data models | 8h | T001-BE-01 | Backend Dev | S1 |
133
+ | T001-BE-03 | Create API controllers | 12h | T001-BE-02 | Backend Dev | S1 |
134
+ | T001-BE-04 | Add input validation | 6h | T001-BE-03 | Backend Dev | S1 |
135
+ | T001-BE-05 | Implement business logic | 16h | T001-BE-03 | Backend Dev | S2 |
136
+ | T001-BE-06 | Add error handling | 4h | T001-BE-05 | Backend Dev | S2 |
137
+ | T001-BE-07 | Write API tests | 8h | T001-BE-05 | Backend Dev | S2 |
138
+
139
+ **DevOps Tasks:**
140
+ | Task ID | Description | Estimate | Dependencies | Owner | Sprint |
141
+ |---------|-------------|----------|--------------|-------|--------|
142
+ | T001-DO-01 | Configure staging environment | 8h | Infrastructure | DevOps | S1 |
143
+ | T001-DO-02 | Set up CI/CD pipeline | 12h | T001-DO-01 | DevOps | S1 |
144
+ | T001-DO-03 | Configure monitoring | 6h | T001-DO-01 | DevOps | S2 |
145
+ | T001-DO-04 | Set up automated backups | 4h | T001-DO-01 | DevOps | S2 |
146
+
147
+ **QA Tasks:**
148
+ | Task ID | Description | Estimate | Dependencies | Owner | Sprint |
149
+ |---------|-------------|----------|--------------|-------|--------|
150
+ | T001-QA-01 | Write test scenarios | 6h | US001 definition | QA Engineer | S1 |
151
+ | T001-QA-02 | Create automated tests | 12h | T001-FE-02, T001-BE-03 | QA Engineer | S2 |
152
+ | T001-QA-03 | Perform integration testing | 8h | All development tasks | QA Engineer | S2 |
153
+ | T001-QA-04 | Load testing | 6h | T001-QA-03 | QA Engineer | S2 |
154
+ | T001-QA-05 | Security testing | 4h | T001-QA-03 | QA Engineer | S2 |
155
+
156
+ ### 3.2 Estimation Methodology
157
+
158
+ #### 3.2.1 Planning Poker Process
159
+ **Estimation Scale:** Modified Fibonacci (1, 2, 3, 5, 8, 13, 21)
160
+
161
+ **Estimation Guidelines:**
162
+ - **1 point:** Simple configuration change (1-2 hours)
163
+ - **2 points:** Minor feature addition (2-4 hours)
164
+ - **3 points:** Standard feature implementation (4-8 hours)
165
+ - **5 points:** Complex feature or integration (1-2 days)
166
+ - **8 points:** Major feature with dependencies (2-3 days)
167
+ - **13 points:** Epic-level work requiring breakdown
168
+ - **21 points:** Requires further analysis and breakdown
169
+
170
+ #### 3.2.2 Estimation Factors
171
+ **Technical Complexity:**
172
+ - Algorithm complexity
173
+ - Integration points
174
+ - Performance requirements
175
+ - Security considerations
176
+
177
+ **Risk Factors:**
178
+ - Team familiarity with technology
179
+ - External dependencies
180
+ - Changing requirements
181
+ - Technical debt impact
182
+
183
+ **Buffer Calculation:**
184
+ - Low risk tasks: +10% buffer
185
+ - Medium risk tasks: +25% buffer
186
+ - High risk tasks: +50% buffer
187
+
188
+ ### 3.3 Dependency Management
189
+
190
+ #### 3.3.1 Dependency Types
191
+ **Technical Dependencies:**
192
+ - Code dependencies (A needs B to be completed)
193
+ - Resource dependencies (shared infrastructure)
194
+ - Skill dependencies (specialist knowledge required)
195
+
196
+ **Business Dependencies:**
197
+ - Stakeholder approvals
198
+ - External vendor deliverables
199
+ - Regulatory compliance
200
+
201
+ #### 3.3.2 Dependency Tracking Matrix
202
+ | Task ID | Depends On | Dependency Type | Risk Level | Mitigation |
203
+ |---------|------------|-----------------|------------|------------|
204
+ | T001-FE-02 | T001-FE-01 | Technical | Low | Overlap design and development |
205
+ | T001-BE-05 | External API | External | High | Mock implementation for development |
206
+ | T001-QA-02 | T001-FE-02, T001-BE-03 | Technical | Medium | Parallel test development |
207
+
208
+ #### 3.3.3 Critical Path Analysis
209
+ **Critical Path:** _{T001-BE-01 → T001-BE-02 → T001-BE-03 → T001-BE-05 → T001-QA-03}_
210
+ **Total Duration:** _{44 hours (5.5 days)}_
211
+ **Buffer Recommendations:** _{Add 2-day buffer for integration issues}_
212
+
213
+ ---
214
+
215
+ ## 📋 4. Quality Gates & Validation
216
+
217
+ ### 4.1 Story Validation Checklist
218
+ **For Each User Story:**
219
+ - [ ] **Clear Value:** Business value is articulated
220
+ - [ ] **User-Centric:** Written from user perspective
221
+ - [ ] **Testable:** Acceptance criteria are verifiable
222
+ - [ ] **Estimable:** Team can size the story
223
+ - [ ] **Independent:** Can be developed separately
224
+ - [ ] **Right-Sized:** Fits within one sprint
225
+
226
+ ### 4.2 Task Validation Checklist
227
+ **For Each Task:**
228
+ - [ ] **Atomic:** Cannot be meaningfully subdivided
229
+ - [ ] **Assignable:** Clear owner identified
230
+ - [ ] **Estimable:** Time estimate provided
231
+ - [ ] **Trackable:** Progress can be measured
232
+ - [ ] **Testable:** Completion criteria defined
233
+ - [ ] **Sized Appropriately:** ≤ 2 days of work
234
+
235
+ ### 4.3 Completeness Validation
236
+ **Coverage Verification:**
237
+ - [ ] All PRD features have corresponding user stories
238
+ - [ ] All user stories have complete task breakdown
239
+ - [ ] Cross-cutting concerns (security, performance) addressed
240
+ - [ ] Non-functional requirements included
241
+ - [ ] Technical debt and refactoring tasks identified
242
+
243
+ ### 4.4 Risk Assessment
244
+ **High-Risk Tasks Identified:**
245
+ - Tasks with external dependencies
246
+ - Tasks requiring new technology learning
247
+ - Tasks with unclear requirements
248
+ - Tasks on critical path
249
+
250
+ **Risk Mitigation Strategies:**
251
+ - Spike tasks for research
252
+ - Proof of concept development
253
+ - Early stakeholder validation
254
+ - Parallel development tracks
255
+
256
+ ---
257
+
258
+ ## 📊 5. Estimation Summary & Metrics
259
+
260
+ ### 5.1 Sprint Planning Summary
261
+ | Sprint | Total Story Points | Total Hours | Team Capacity | Utilization |
262
+ |--------|-------------------|-------------|---------------|-------------|
263
+ | Sprint 1 | 21 | 84h | 90h | 93% |
264
+ | Sprint 2 | 34 | 136h | 90h | 151% (Over-allocated) |
265
+ | Sprint 3 | 18 | 72h | 90h | 80% |
266
+
267
+ ### 5.2 Resource Allocation
268
+ | Role | Sprint 1 | Sprint 2 | Sprint 3 | Total Hours |
269
+ |------|----------|----------|----------|-------------|
270
+ | **Frontend** | 34h | 28h | 20h | 82h |
271
+ | **Backend** | 40h | 48h | 32h | 120h |
272
+ | **DevOps** | 20h | 22h | 8h | 50h |
273
+ | **QA** | 12h | 38h | 20h | 70h |
274
+
275
+ ### 5.3 Velocity Tracking
276
+ **Historical Velocity:** _{Last 3 sprints average}_
277
+ **Planned Velocity:** _{Based on current breakdown}_
278
+ **Confidence Level:** _{High/Medium/Low with reasoning}_
279
+
280
+ ### 5.4 Risk Indicators
281
+ **Red Flags:**
282
+ - Sprint over-allocation (>100% capacity)
283
+ - Critical path dependencies
284
+ - Unclear requirements (stories marked as spikes)
285
+ - Resource bottlenecks
286
+
287
+ **Mitigation Recommendations:**
288
+ - Redistribute work across sprints
289
+ - Add buffer time for high-risk tasks
290
+ - Schedule dependency resolution early
291
+ - Consider parallel development streams
292
+
293
+ ---
294
+
295
+ ## 🚀 6. Implementation Roadmap
296
+
297
+ ### 6.1 Sprint Goals
298
+ **Sprint 1: Foundation**
299
+ - **Goal:** Establish core infrastructure and basic functionality
300
+ - **Deliverables:** API framework, basic UI components, CI/CD pipeline
301
+ - **Success Criteria:** Development environment fully operational
302
+
303
+ **Sprint 2: Core Features**
304
+ - **Goal:** Implement primary user workflows
305
+ - **Deliverables:** Complete user stories US001-US003
306
+ - **Success Criteria:** End-to-end user journey functional
307
+
308
+ **Sprint 3: Polish & Integration**
309
+ - **Goal:** Finalize features and prepare for release
310
+ - **Deliverables:** Performance optimization, testing complete
311
+ - **Success Criteria:** Ready for production deployment
312
+
313
+ ### 6.2 Milestone Tracking
314
+ | Milestone | Target Date | Dependencies | Success Criteria |
315
+ |-----------|-------------|--------------|------------------|
316
+ | **Dev Environment Ready** | Week 1 | Infrastructure setup | All developers can commit code |
317
+ | **API MVP Complete** | Week 4 | Core backend tasks | Frontend can integrate |
318
+ | **Feature Complete** | Week 8 | All user stories | Acceptance criteria met |
319
+ | **Production Ready** | Week 10 | Testing complete | Launch criteria satisfied |
320
+
321
+ ### 6.3 Delivery Pipeline
322
+ ```mermaid
323
+ gantt
324
+ title Feature Development Timeline
325
+ dateFormat YYYY-MM-DD
326
+ section Sprint 1
327
+ Infrastructure Setup :active, s1-infra, 2024-01-01, 5d
328
+ API Framework :s1-api, after s1-infra, 8d
329
+ Basic UI Components :s1-ui, 2024-01-03, 10d
330
+ section Sprint 2
331
+ Core Features :s2-core, after s1-api, 10d
332
+ Integration Testing :s2-test, after s2-core, 5d
333
+ section Sprint 3
334
+ Performance Tuning :s3-perf, after s2-test, 5d
335
+ Production Prep :s3-prod, after s3-perf, 5d
336
+ ```
337
+
338
+ ---
339
+
340
+ ## 📝 7. Documentation & Handoff
341
+
342
+ ### 7.1 Task Documentation Standards
343
+ **Required for Each Task:**
344
+ - Clear description and acceptance criteria
345
+ - Technical specifications or wireframes
346
+ - Dependencies and blockers identified
347
+ - Testing requirements defined
348
+ - Documentation requirements specified
349
+
350
+ ### 7.2 Knowledge Transfer Plan
351
+ **Documentation Deliverables:**
352
+ - [ ] API documentation (OpenAPI/Swagger)
353
+ - [ ] Component library documentation
354
+ - [ ] Deployment runbooks
355
+ - [ ] Testing procedures
356
+ - [ ] Troubleshooting guides
357
+
358
+ ### 7.3 Team Handoff Checklist
359
+ **Before Sprint Start:**
360
+ - [ ] All tasks have clear acceptance criteria
361
+ - [ ] Dependencies resolved or mitigated
362
+ - [ ] Required resources available
363
+ - [ ] Team capacity confirmed
364
+ - [ ] Risk mitigation plans in place
365
+
366
+ **During Sprint:**
367
+ - [ ] Daily standup updates
368
+ - [ ] Blocker escalation process
369
+ - [ ] Code review requirements
370
+ - [ ] Testing milestone checks
371
+
372
+ **Sprint Completion:**
373
+ - [ ] All acceptance criteria validated
374
+ - [ ] Documentation updated
375
+ - [ ] Knowledge transfer completed
376
+ - [ ] Retrospective feedback captured
377
+
378
+ ---
379
+
380
+ ## 📊 8. Success Metrics & KPIs
381
+
382
+ ### 8.1 Delivery Metrics
383
+ | Metric | Target | Tracking Method |
384
+ |--------|--------|-----------------|
385
+ | **Sprint Goal Achievement** | 100% | Story completion rate |
386
+ | **Velocity Consistency** | ±10% of planned | Story points delivered |
387
+ | **Estimation Accuracy** | ±20% of actual | Hours tracked vs estimated |
388
+ | **Defect Rate** | <5% of stories | Bug reports per story |
389
+
390
+ ### 8.2 Quality Metrics
391
+ | Metric | Target | Tracking Method |
392
+ |--------|--------|-----------------|
393
+ | **Code Coverage** | ≥80% | Automated testing tools |
394
+ | **Code Review Coverage** | 100% | PR review process |
395
+ | **Security Scan Pass Rate** | 100% | Automated security scans |
396
+ | **Performance Benchmarks** | Meet SLA requirements | Performance testing |
397
+
398
+ ### 8.3 Team Metrics
399
+ | Metric | Target | Tracking Method |
400
+ |--------|--------|-----------------|
401
+ | **Team Velocity** | Consistent trend | Sprint retrospectives |
402
+ | **Blocker Resolution Time** | <24 hours | Issue tracking |
403
+ | **Knowledge Sharing** | Weekly sessions | Team calendar |
404
+ | **Technical Debt Ratio** | <20% of velocity | Backlog analysis |
405
+
406
+ ---
407
+
408
+ **📋 Task Generation Checklist:**
409
+ - [ ] All PRD features decomposed into user stories
410
+ - [ ] All user stories broken into actionable tasks
411
+ - [ ] Dependencies identified and mapped
412
+ - [ ] Estimates provided using team standards
413
+ - [ ] Resource allocation verified
414
+ - [ ] Risk assessment completed
415
+ - [ ] Quality gates defined
416
+ - [ ] Sprint planning ready
417
+
418
+ **Next Steps:** Proceed to 04_process_task_list.md for execution planning.