@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,432 @@
1
+ # 🏗️ Architecture Decision Record (ADR)
2
+
3
+ **Metadata**
4
+ - Last Updated: {{DATE}}
5
+ - Maintainer: AI-Dev Toolkit
6
+ - Related Docs: 06_architecture.md
7
+
8
+ > **🎯 Purpose**
9
+ > This ADR documents a significant architectural decision, providing context, rationale, alternatives considered, and consequences. It serves as a historical record for future architectural discussions and evolution.
10
+
11
+ ---
12
+
13
+ ## 📋 ADR Metadata
14
+
15
+ | Field | Value |
16
+ |-------|-------|
17
+ | **ADR Number** | ADR-{number} |
18
+ | **Title** | _{Decision title in imperative form}_ |
19
+ | **Status** | _{Proposed / Accepted / Deprecated / Superseded}_ |
20
+ | **Date** | _{YYYY-MM-DD}_ |
21
+ | **Authors** | _{Names and roles}_ |
22
+ | **Reviewers** | _{Architecture review board}_ |
23
+ | **Stakeholders** | _{Affected teams and systems}_ |
24
+
25
+ ### Status Definitions
26
+ - **🟡 Proposed:** Under discussion and review
27
+ - **🟢 Accepted:** Approved and ready for implementation
28
+ - **🔴 Deprecated:** No longer recommended for new implementations
29
+ - **🔄 Superseded:** Replaced by a newer ADR (link to replacement)
30
+
31
+ ---
32
+
33
+ ## 🎯 1. Decision Summary
34
+
35
+ ### 1.1 Executive Summary
36
+ **Decision:** _{One sentence describing what was decided}_
37
+
38
+ **Impact:** _{High-level summary of what this changes}_
39
+
40
+ **Timeline:** _{When this decision takes effect}_
41
+
42
+ ### 1.2 Decision Statement
43
+ > **We will** _{action/approach}_ **in order to** _{achieve outcome}_ **accepting that** _{trade-offs}_
44
+
45
+ **Example:**
46
+ > We will migrate from monolithic architecture to microservices using Docker and Kubernetes in order to improve scalability and team independence accepting that we will incur additional operational complexity and initial development overhead.
47
+
48
+ ---
49
+
50
+ ## 🔍 2. Context & Problem Statement
51
+
52
+ ### 2.1 Business Context
53
+ - **Strategic Goals:** _{How this aligns with business objectives}_
54
+ - **Market Drivers:** _{External factors influencing this decision}_
55
+ - **Timeline Pressures:** _{Deadlines or milestones affecting choice}_
56
+ - **Resource Constraints:** _{Budget, team, technology limitations}_
57
+
58
+ ### 2.2 Technical Context
59
+ - **Current Architecture:** _{Description of existing system}_
60
+ - **Pain Points:** _{Specific problems we're solving}_
61
+ - **Scale Requirements:** _{Performance, volume, growth expectations}_
62
+ - **Integration Needs:** _{External systems, data flows}_
63
+
64
+ ### 2.3 Problem Statement
65
+ **Core Problem:** _{Clear statement of what needs to be solved}_
66
+
67
+ **Success Criteria:** _{How we'll know this decision succeeded}_
68
+ - Metric 1: _{Quantifiable measure}_
69
+ - Metric 2: _{Quantifiable measure}_
70
+ - Metric 3: _{Quantifiable measure}_
71
+
72
+ ### 2.4 Constraints & Requirements
73
+ **Hard Constraints:**
74
+ - [ ] _{Non-negotiable requirement}_
75
+ - [ ] _{Compliance or regulatory requirement}_
76
+ - [ ] _{Technical limitation}_
77
+
78
+ **Soft Constraints:**
79
+ - [ ] _{Preferred approach or tool}_
80
+ - [ ] _{Team expertise consideration}_
81
+ - [ ] _{Budget preference}_
82
+
83
+ ---
84
+
85
+ ## 💭 3. Decision Drivers
86
+
87
+ ### 3.1 Technical Drivers
88
+ | Driver | Weight | Description |
89
+ |--------|--------|-------------|
90
+ | **Performance** | High | _{Specific performance requirements}_ |
91
+ | **Scalability** | High | _{Growth and load expectations}_ |
92
+ | **Maintainability** | Medium | _{Long-term code/system health}_ |
93
+ | **Security** | High | _{Security and compliance needs}_ |
94
+ | **Reliability** | Medium | _{Uptime and stability requirements}_ |
95
+
96
+ ### 3.2 Business Drivers
97
+ | Driver | Weight | Description |
98
+ |--------|--------|-------------|
99
+ | **Time to Market** | High | _{Speed of delivery importance}_ |
100
+ | **Cost** | Medium | _{Budget and resource constraints}_ |
101
+ | **Risk** | High | _{Risk tolerance and mitigation}_ |
102
+ | **Team Skills** | Medium | _{Available expertise and learning curve}_ |
103
+
104
+ ### 3.3 Quality Attributes
105
+ Using Architecture Tradeoff Analysis Method (ATAM):
106
+
107
+ | Quality Attribute | Current State | Target State | Priority |
108
+ |-------------------|---------------|--------------|----------|
109
+ | **Performance** | _{Current metrics}_ | _{Target metrics}_ | High |
110
+ | **Availability** | _{Current uptime}_ | _{Target uptime}_ | High |
111
+ | **Security** | _{Current posture}_ | _{Target posture}_ | High |
112
+ | **Modifiability** | _{Current complexity}_ | _{Target flexibility}_ | Medium |
113
+ | **Usability** | _{Current UX}_ | _{Target UX}_ | Medium |
114
+
115
+ ---
116
+
117
+ ## 🛠️ 4. Considered Alternatives
118
+
119
+ ### 4.1 Option 1: _{Chosen Solution}_
120
+ **Description:** _{Detailed description of the selected approach}_
121
+
122
+ **Pros:**
123
+ - ✅ _{Advantage 1 with specific benefit}_
124
+ - ✅ _{Advantage 2 with quantified impact}_
125
+ - ✅ _{Advantage 3 with business value}_
126
+
127
+ **Cons:**
128
+ - ❌ _{Disadvantage 1 with mitigation plan}_
129
+ - ❌ _{Disadvantage 2 with acceptance rationale}_
130
+
131
+ **Cost Analysis:**
132
+ - Development: _{Time and resource estimates}_
133
+ - Infrastructure: _{Ongoing operational costs}_
134
+ - Maintenance: _{Long-term support costs}_
135
+
136
+ **Risk Assessment:**
137
+ - Technical Risk: _{Low/Medium/High with mitigation}_
138
+ - Implementation Risk: _{Low/Medium/High with mitigation}_
139
+ - Operational Risk: _{Low/Medium/High with mitigation}_
140
+
141
+ ### 4.2 Option 2: _{Alternative Solution}_
142
+ **Description:** _{Detailed description of alternative approach}_
143
+
144
+ **Pros:**
145
+ - ✅ _{Advantage 1}_
146
+ - ✅ _{Advantage 2}_
147
+
148
+ **Cons:**
149
+ - ❌ _{Disadvantage 1}_
150
+ - ❌ _{Disadvantage 2}_
151
+ - ❌ _{Critical flaw that ruled this out}_
152
+
153
+ **Why Rejected:** _{Specific reasons this wasn't chosen}_
154
+
155
+ ### 4.3 Option 3: _{Alternative Solution}_
156
+ **Description:** _{Detailed description of alternative approach}_
157
+
158
+ **Pros:**
159
+ - ✅ _{Advantage 1}_
160
+ - ✅ _{Advantage 2}_
161
+
162
+ **Cons:**
163
+ - ❌ _{Disadvantage 1}_
164
+ - ❌ _{Disadvantage 2}_
165
+
166
+ **Why Rejected:** _{Specific reasons this wasn't chosen}_
167
+
168
+ ### 4.4 Do Nothing (Status Quo)
169
+ **Description:** _{Continue with current approach}_
170
+
171
+ **Pros:**
172
+ - ✅ No implementation cost
173
+ - ✅ No disruption to current operations
174
+ - ✅ Team familiar with existing system
175
+
176
+ **Cons:**
177
+ - ❌ _{Problems persist and may worsen}_
178
+ - ❌ _{Technical debt accumulation}_
179
+ - ❌ _{Competitive disadvantage}_
180
+
181
+ **Why Rejected:** _{Specific reasons status quo isn't viable}_
182
+
183
+ ---
184
+
185
+ ## 📊 5. Decision Matrix
186
+
187
+ ### 5.1 Evaluation Criteria
188
+ | Criteria | Weight | Option 1 | Option 2 | Option 3 | Status Quo |
189
+ |----------|--------|----------|----------|----------|------------|
190
+ | **Performance** | 25% | 9 | 7 | 6 | 4 |
191
+ | **Development Speed** | 20% | 6 | 8 | 7 | 9 |
192
+ | **Maintainability** | 20% | 8 | 6 | 7 | 3 |
193
+ | **Cost Effectiveness** | 15% | 7 | 9 | 8 | 10 |
194
+ | **Risk Level** | 10% | 6 | 5 | 7 | 8 |
195
+ | **Team Readiness** | 10% | 7 | 8 | 6 | 9 |
196
+ | ****Weighted Score** | **100%** | **7.4** | **7.2** | **6.7** | **6.1** |
197
+
198
+ *Scoring: 1-10 scale where 10 is best*
199
+
200
+ ### 5.2 Decision Rationale
201
+ Based on the weighted analysis, **Option 1** scores highest (7.4) primarily due to:
202
+ - Superior performance characteristics (critical for our scale)
203
+ - Strong maintainability (important for long-term evolution)
204
+ - Acceptable development complexity (manageable with current team)
205
+
206
+ While Option 2 scores well on development speed and cost, the performance limitations make it unsuitable for our projected scale requirements.
207
+
208
+ ---
209
+
210
+ ## ⚡ 6. Consequences & Impact
211
+
212
+ ### 6.1 Positive Consequences
213
+ **Immediate Benefits:**
214
+ - _{Benefit 1 with timeline}_
215
+ - _{Benefit 2 with measurable impact}_
216
+ - _{Benefit 3 with business value}_
217
+
218
+ **Long-term Benefits:**
219
+ - _{Strategic advantage 1}_
220
+ - _{Capability improvement 2}_
221
+ - _{Competitive edge 3}_
222
+
223
+ ### 6.2 Negative Consequences
224
+ **Immediate Challenges:**
225
+ - _{Challenge 1 with mitigation plan}_
226
+ - _{Challenge 2 with timeline for resolution}_
227
+ - _{Challenge 3 with workaround strategy}_
228
+
229
+ **Long-term Concerns:**
230
+ - _{Risk 1 with monitoring strategy}_
231
+ - _{Limitation 2 with future decision point}_
232
+ - _{Technical debt 3 with paydown plan}_
233
+
234
+ ### 6.3 Impact Assessment
235
+
236
+ #### Team Impact
237
+ | Team | Impact Level | Specific Changes | Support Needed |
238
+ |------|--------------|------------------|----------------|
239
+ | **Frontend** | Medium | _{API integration changes}_ | _{Training on new patterns}_ |
240
+ | **Backend** | High | _{Core architecture changes}_ | _{Architecture guidance}_ |
241
+ | **DevOps** | High | _{Infrastructure changes}_ | _{New tools and processes}_ |
242
+ | **QA** | Medium | _{Testing strategy updates}_ | _{Test environment updates}_ |
243
+
244
+ #### System Impact
245
+ | System | Impact Level | Required Changes | Timeline |
246
+ |--------|--------------|------------------|----------|
247
+ | **Authentication** | Low | _{Configuration updates}_ | _{1 week}_ |
248
+ | **Database** | High | _{Schema migration}_ | _{4 weeks}_ |
249
+ | **API Gateway** | Medium | _{Routing updates}_ | _{2 weeks}_ |
250
+ | **Monitoring** | Medium | _{New metrics and alerts}_ | _{3 weeks}_ |
251
+
252
+ #### Performance Impact
253
+ | Metric | Current | Expected | Timeline |
254
+ |--------|---------|----------|----------|
255
+ | **Response Time** | _{X ms}_ | _{Y ms}_ | _{Z weeks}_ |
256
+ | **Throughput** | _{X req/s}_ | _{Y req/s}_ | _{Z weeks}_ |
257
+ | **Availability** | _{X%}_ | _{Y%}_ | _{Z weeks}_ |
258
+
259
+ ---
260
+
261
+ ## 🚀 7. Implementation Plan
262
+
263
+ ### 7.1 Implementation Phases
264
+ **Phase 1: Foundation (Weeks 1-4)**
265
+ - [ ] _{Infrastructure setup}_
266
+ - [ ] _{Core component development}_
267
+ - [ ] _{Initial testing framework}_
268
+ - **Exit Criteria:** _{Basic functionality demonstrated}_
269
+
270
+ **Phase 2: Migration (Weeks 5-8)**
271
+ - [ ] _{Data migration planning}_
272
+ - [ ] _{Parallel system operation}_
273
+ - [ ] _{Gradual traffic shift}_
274
+ - **Exit Criteria:** _{50% traffic successfully migrated}_
275
+
276
+ **Phase 3: Optimization (Weeks 9-12)**
277
+ - [ ] _{Performance tuning}_
278
+ - [ ] _{Monitoring refinement}_
279
+ - [ ] _{Documentation completion}_
280
+ - **Exit Criteria:** _{Full migration with performance targets met}_
281
+
282
+ ### 7.2 Success Metrics
283
+ | Metric | Target | Measurement Method | Review Date |
284
+ |--------|--------|--------------------|-------------|
285
+ | **Migration Completion** | 100% | _{Traffic analytics}_ | _{Date}_ |
286
+ | **Performance Improvement** | _{X% faster}_ | _{Response time monitoring}_ | _{Date}_ |
287
+ | **Error Rate** | _{< X%}_ | _{Error tracking system}_ | _{Date}_ |
288
+ | **Team Velocity** | _{Maintained}_ | _{Sprint metrics}_ | _{Date}_ |
289
+
290
+ ### 7.3 Risk Mitigation
291
+ | Risk | Mitigation Strategy | Owner | Status |
292
+ |------|-------------------|-------|--------|
293
+ | **Performance Regression** | _{Load testing, canary deployment}_ | _{Tech Lead}_ | _{Planned}_ |
294
+ | **Data Loss** | _{Backup strategy, rollback plan}_ | _{DevOps}_ | _{Planned}_ |
295
+ | **Team Productivity** | _{Training, pair programming}_ | _{Manager}_ | _{In Progress}_ |
296
+
297
+ ---
298
+
299
+ ## 🔄 8. Review & Evolution
300
+
301
+ ### 8.1 Review Schedule
302
+ - **30-Day Review:** _{Initial implementation assessment}_
303
+ - **90-Day Review:** _{Performance and stability evaluation}_
304
+ - **1-Year Review:** _{Strategic value assessment}_
305
+
306
+ ### 8.2 Decision Review Criteria
307
+ **Trigger Events for Review:**
308
+ - [ ] Performance metrics fall below thresholds
309
+ - [ ] Security vulnerabilities discovered
310
+ - [ ] Business requirements change significantly
311
+ - [ ] Technology landscape shifts materially
312
+ - [ ] Team capabilities change substantially
313
+
314
+ ### 8.3 Success Criteria Validation
315
+ | Success Criteria | Target | Actual | Status | Notes |
316
+ |------------------|---------|---------|--------|-------|
317
+ | _{Criteria 1}_ | _{Target 1}_ | _{TBD}_ | _{Pending}_ | _{Track post-implementation}_ |
318
+ | _{Criteria 2}_ | _{Target 2}_ | _{TBD}_ | _{Pending}_ | _{Track post-implementation}_ |
319
+ | _{Criteria 3}_ | _{Target 3}_ | _{TBD}_ | _{Pending}_ | _{Track post-implementation}_ |
320
+
321
+ ### 8.4 Evolution Path
322
+ **Next Logical Steps:**
323
+ 1. _{Follow-up decision or improvement}_
324
+ 2. _{Additional optimization opportunity}_
325
+ 3. _{Future architectural evolution}_
326
+
327
+ **Deprecation Plan:**
328
+ - **Trigger:** _{Conditions that would obsolete this decision}_
329
+ - **Timeline:** _{Expected lifespan of this decision}_
330
+ - **Successor:** _{Likely replacement approach}_
331
+
332
+ ---
333
+
334
+ ## 📚 9. Related Decisions & References
335
+
336
+ ### 9.1 Related ADRs
337
+ - **ADR-{X}:** _{Related decision that influenced this one}_
338
+ - **ADR-{Y}:** _{Decision that this one influences}_
339
+ - **ADR-{Z}:** _{Conflicting decision that was resolved}_
340
+
341
+ ### 9.2 Supporting Documentation
342
+ - **Architecture Diagrams:** _{Link to technical diagrams}_
343
+ - **Proof of Concept:** _{Link to prototype or spike results}_
344
+ - **Performance Benchmarks:** _{Link to test results}_
345
+ - **Security Analysis:** _{Link to security review}_
346
+
347
+ ### 9.3 External References
348
+ - **Standards:** _{Industry standards or best practices followed}_
349
+ - **Research Papers:** _{Academic or industry research supporting decision}_
350
+ - **Vendor Documentation:** _{Third-party tool or service documentation}_
351
+ - **Community Discussions:** _{Stack Overflow, GitHub, forums}_
352
+
353
+ ### 9.4 Decision Artifacts
354
+ ```
355
+ artifacts/
356
+ ├── performance-benchmarks/
357
+ │ ├── current-state-metrics.json
358
+ │ ├── option1-benchmark.json
359
+ │ └── option2-benchmark.json
360
+ ├── prototypes/
361
+ │ ├── option1-poc/
362
+ │ └── option2-poc/
363
+ └── analysis/
364
+ ├── cost-benefit-analysis.xlsx
365
+ └── risk-assessment.md
366
+ ```
367
+
368
+ ---
369
+
370
+ ## 👥 10. Stakeholder Sign-off
371
+
372
+ ### 10.1 Review Process
373
+ | Role | Reviewer | Date | Status | Comments |
374
+ |------|----------|------|--------|----------|
375
+ | **Architecture Review Board** | _{Name}_ | _{Date}_ | _{Approved/Pending}_ | _{Link to feedback}_ |
376
+ | **Technical Lead** | _{Name}_ | _{Date}_ | _{Approved/Pending}_ | _{Technical concerns addressed}_ |
377
+ | **Product Owner** | _{Name}_ | _{Date}_ | _{Approved/Pending}_ | _{Business alignment confirmed}_ |
378
+ | **Security Team** | _{Name}_ | _{Date}_ | _{Approved/Pending}_ | _{Security implications reviewed}_ |
379
+ | **DevOps Lead** | _{Name}_ | _{Date}_ | _{Approved/Pending}_ | _{Operational feasibility confirmed}_ |
380
+
381
+ ### 10.2 Approval Status
382
+ - [ ] **Technical Review:** Architecture team approval
383
+ - [ ] **Business Review:** Product owner approval
384
+ - [ ] **Security Review:** Security team clearance
385
+ - [ ] **Operational Review:** DevOps team readiness
386
+ - [ ] **Final Approval:** Decision authority sign-off
387
+
388
+ ### 10.3 Communication Plan
389
+ **Announcement:**
390
+ - [ ] Engineering team notification
391
+ - [ ] Stakeholder update email
392
+ - [ ] Architecture decision log update
393
+ - [ ] Documentation wiki update
394
+
395
+ **Training:**
396
+ - [ ] Technical team training sessions
397
+ - [ ] Documentation and runbooks
398
+ - [ ] Q&A sessions scheduled
399
+
400
+ ---
401
+
402
+ ## 📋 11. Implementation Checklist
403
+
404
+ ### 11.1 Pre-Implementation
405
+ - [ ] All stakeholder approvals obtained
406
+ - [ ] Implementation plan detailed and resourced
407
+ - [ ] Risk mitigation strategies in place
408
+ - [ ] Success metrics and monitoring defined
409
+ - [ ] Rollback plan documented and tested
410
+
411
+ ### 11.2 Implementation
412
+ - [ ] Development work completed according to plan
413
+ - [ ] Testing completed (unit, integration, performance)
414
+ - [ ] Documentation updated
415
+ - [ ] Team training completed
416
+ - [ ] Monitoring and alerting configured
417
+
418
+ ### 11.3 Post-Implementation
419
+ - [ ] Success metrics validated
420
+ - [ ] Performance baselines established
421
+ - [ ] Lessons learned documented
422
+ - [ ] Review schedule established
423
+ - [ ] Next steps identified
424
+
425
+ ---
426
+
427
+ **📝 ADR Status:** _{Current status with date}_
428
+ **🔄 Next Review:** _{Date for next scheduled review}_
429
+ **👤 Decision Owner:** _{Person responsible for decision implementation}_
430
+ **📞 Contact:** _{Email/Slack for questions about this decision}_
431
+
432
+ > **Note:** This ADR should be treated as a living document during the Proposed phase and locked once Accepted. All changes after acceptance should trigger a new ADR that either supersedes or extends this decision.