musubi-sdd 0.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 (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +531 -0
  3. package/README.md +531 -0
  4. package/bin/musubi-init.js +321 -0
  5. package/bin/musubi.js +359 -0
  6. package/package.json +55 -0
  7. package/src/agents/registry.js +242 -0
  8. package/src/templates/agents/claude-code/CLAUDE.md +232 -0
  9. package/src/templates/agents/claude-code/commands/sdd-design.md +673 -0
  10. package/src/templates/agents/claude-code/commands/sdd-implement.md +777 -0
  11. package/src/templates/agents/claude-code/commands/sdd-requirements.md +438 -0
  12. package/src/templates/agents/claude-code/commands/sdd-steering.md +334 -0
  13. package/src/templates/agents/claude-code/commands/sdd-tasks.md +582 -0
  14. package/src/templates/agents/claude-code/commands/sdd-validate.md +710 -0
  15. package/src/templates/agents/claude-code/skills/ai-ml-engineer/SKILL.md +3055 -0
  16. package/src/templates/agents/claude-code/skills/api-designer/SKILL.md +1364 -0
  17. package/src/templates/agents/claude-code/skills/bug-hunter/SKILL.md +482 -0
  18. package/src/templates/agents/claude-code/skills/change-impact-analyzer/SKILL.md +397 -0
  19. package/src/templates/agents/claude-code/skills/cloud-architect/SKILL.md +1468 -0
  20. package/src/templates/agents/claude-code/skills/code-reviewer/SKILL.md +906 -0
  21. package/src/templates/agents/claude-code/skills/constitution-enforcer/SKILL.md +466 -0
  22. package/src/templates/agents/claude-code/skills/database-administrator/SKILL.md +3522 -0
  23. package/src/templates/agents/claude-code/skills/database-schema-designer/SKILL.md +1158 -0
  24. package/src/templates/agents/claude-code/skills/devops-engineer/SKILL.md +647 -0
  25. package/src/templates/agents/claude-code/skills/orchestrator/SKILL.md +574 -0
  26. package/src/templates/agents/claude-code/skills/performance-optimizer/SKILL.md +464 -0
  27. package/src/templates/agents/claude-code/skills/project-manager/SKILL.md +769 -0
  28. package/src/templates/agents/claude-code/skills/quality-assurance/SKILL.md +1059 -0
  29. package/src/templates/agents/claude-code/skills/release-coordinator/SKILL.md +653 -0
  30. package/src/templates/agents/claude-code/skills/requirements-analyst/SKILL.md +1287 -0
  31. package/src/templates/agents/claude-code/skills/security-auditor/SKILL.md +1107 -0
  32. package/src/templates/agents/claude-code/skills/site-reliability-engineer/SKILL.md +404 -0
  33. package/src/templates/agents/claude-code/skills/software-developer/SKILL.md +1254 -0
  34. package/src/templates/agents/claude-code/skills/steering/SKILL.md +383 -0
  35. package/src/templates/agents/claude-code/skills/system-architect/SKILL.md +1288 -0
  36. package/src/templates/agents/claude-code/skills/technical-writer/SKILL.md +712 -0
  37. package/src/templates/agents/claude-code/skills/test-engineer/SKILL.md +1262 -0
  38. package/src/templates/agents/claude-code/skills/traceability-auditor/SKILL.md +298 -0
  39. package/src/templates/agents/claude-code/skills/ui-ux-designer/SKILL.md +1009 -0
  40. package/src/templates/agents/codex/AGENTS.md +138 -0
  41. package/src/templates/agents/codex/commands/sdd-design.md +673 -0
  42. package/src/templates/agents/codex/commands/sdd-implement.md +777 -0
  43. package/src/templates/agents/codex/commands/sdd-requirements.md +438 -0
  44. package/src/templates/agents/codex/commands/sdd-steering.md +334 -0
  45. package/src/templates/agents/codex/commands/sdd-tasks.md +582 -0
  46. package/src/templates/agents/codex/commands/sdd-validate.md +710 -0
  47. package/src/templates/agents/cursor/AGENTS.md +138 -0
  48. package/src/templates/agents/cursor/commands/sdd-design.md +673 -0
  49. package/src/templates/agents/cursor/commands/sdd-implement.md +777 -0
  50. package/src/templates/agents/cursor/commands/sdd-requirements.md +438 -0
  51. package/src/templates/agents/cursor/commands/sdd-steering.md +334 -0
  52. package/src/templates/agents/cursor/commands/sdd-tasks.md +582 -0
  53. package/src/templates/agents/cursor/commands/sdd-validate.md +710 -0
  54. package/src/templates/agents/gemini-cli/GEMINI.md +128 -0
  55. package/src/templates/agents/gemini-cli/commands/sdd-design.toml +359 -0
  56. package/src/templates/agents/gemini-cli/commands/sdd-implement.toml +484 -0
  57. package/src/templates/agents/gemini-cli/commands/sdd-requirements.toml +291 -0
  58. package/src/templates/agents/gemini-cli/commands/sdd-steering.toml +209 -0
  59. package/src/templates/agents/gemini-cli/commands/sdd-tasks.toml +441 -0
  60. package/src/templates/agents/gemini-cli/commands/sdd-validate.toml +553 -0
  61. package/src/templates/agents/github-copilot/AGENTS.md +138 -0
  62. package/src/templates/agents/github-copilot/commands/sdd-design.md +673 -0
  63. package/src/templates/agents/github-copilot/commands/sdd-implement.md +777 -0
  64. package/src/templates/agents/github-copilot/commands/sdd-requirements.md +438 -0
  65. package/src/templates/agents/github-copilot/commands/sdd-steering.md +334 -0
  66. package/src/templates/agents/github-copilot/commands/sdd-tasks.md +582 -0
  67. package/src/templates/agents/github-copilot/commands/sdd-validate.md +710 -0
  68. package/src/templates/agents/qwen-code/QWEN.md +128 -0
  69. package/src/templates/agents/qwen-code/commands/sdd-design.md +673 -0
  70. package/src/templates/agents/qwen-code/commands/sdd-implement.md +777 -0
  71. package/src/templates/agents/qwen-code/commands/sdd-requirements.md +438 -0
  72. package/src/templates/agents/qwen-code/commands/sdd-steering.md +334 -0
  73. package/src/templates/agents/qwen-code/commands/sdd-tasks.md +582 -0
  74. package/src/templates/agents/qwen-code/commands/sdd-validate.md +710 -0
  75. package/src/templates/agents/windsurf/AGENTS.md +138 -0
  76. package/src/templates/agents/windsurf/commands/sdd-design.md +673 -0
  77. package/src/templates/agents/windsurf/commands/sdd-implement.md +777 -0
  78. package/src/templates/agents/windsurf/commands/sdd-requirements.md +438 -0
  79. package/src/templates/agents/windsurf/commands/sdd-steering.md +334 -0
  80. package/src/templates/agents/windsurf/commands/sdd-tasks.md +582 -0
  81. package/src/templates/agents/windsurf/commands/sdd-validate.md +710 -0
  82. package/src/templates/shared/constitution/constitution.md +408 -0
  83. package/src/templates/shared/constitution/ears-format.md +613 -0
  84. package/src/templates/shared/constitution/workflow.md +653 -0
  85. package/src/templates/shared/documents/design.md +737 -0
  86. package/src/templates/shared/documents/requirements.md +329 -0
  87. package/src/templates/shared/documents/research.md +494 -0
  88. package/src/templates/shared/documents/tasks.md +781 -0
  89. package/src/templates/shared/steering/product.md +544 -0
  90. package/src/templates/shared/steering/structure.md +405 -0
  91. package/src/templates/shared/steering/tech.md +537 -0
@@ -0,0 +1,494 @@
1
+ # Research Report: {{TOPIC}}
2
+
3
+ **Project**: {{PROJECT_NAME}}
4
+ **Version**: 1.0
5
+ **Status**: Draft
6
+ **Date**: {{DATE}}
7
+ **Researcher**: {{AUTHOR}}
8
+
9
+ ---
10
+
11
+ ## Document Control
12
+
13
+ | Version | Date | Author | Changes |
14
+ |---------|------|--------|---------|
15
+ | 1.0 | {{DATE}} | {{AUTHOR}} | Initial research |
16
+
17
+ ---
18
+
19
+ ## Executive Summary
20
+
21
+ [2-3 paragraph summary of research findings and recommendation]
22
+
23
+ **Key Findings**:
24
+ - [Finding 1]
25
+ - [Finding 2]
26
+ - [Finding 3]
27
+
28
+ **Recommendation**: [Primary recommendation with brief justification]
29
+
30
+ ---
31
+
32
+ ## Research Questions
33
+
34
+ ### Primary Question
35
+
36
+ [Main question this research aims to answer]
37
+
38
+ ### Secondary Questions
39
+
40
+ 1. [Question 1]
41
+ 2. [Question 2]
42
+ 3. [Question 3]
43
+
44
+ ---
45
+
46
+ ## Background
47
+
48
+ ### Context
49
+
50
+ [Project context and why this research is needed]
51
+
52
+ **Steering Context**:
53
+ - **Product Goals**: [Reference to steering/product.md]
54
+ - **Architecture Patterns**: [Reference to steering/structure.md]
55
+ - **Current Tech Stack**: [Reference to steering/tech.md]
56
+
57
+ ### Scope
58
+
59
+ **In Scope**:
60
+ - [Topic 1]
61
+ - [Topic 2]
62
+
63
+ **Out of Scope**:
64
+ - [Topic 1]
65
+ - [Topic 2]
66
+
67
+ ---
68
+
69
+ ## Methodology
70
+
71
+ ### Research Approach
72
+
73
+ [How the research was conducted]
74
+
75
+ **Methods Used**:
76
+ - [ ] Literature review (documentation, blog posts, papers)
77
+ - [ ] Code analysis (existing codebase, open-source examples)
78
+ - [ ] Prototyping/proof of concept
79
+ - [ ] Expert consultation (team members, community)
80
+ - [ ] Benchmark testing
81
+ - [ ] Market analysis
82
+
83
+ ### Evaluation Criteria
84
+
85
+ | Criterion | Weight | Description |
86
+ |-----------|--------|-------------|
87
+ | Technical Fit | 30% | Alignment with tech stack and architecture |
88
+ | Developer Experience | 20% | Ease of use, learning curve |
89
+ | Performance | 15% | Speed, resource usage |
90
+ | Community Support | 15% | Documentation, ecosystem, maturity |
91
+ | Cost | 10% | Licensing, hosting, maintenance |
92
+ | Security | 10% | Vulnerabilities, update frequency |
93
+
94
+ **Total**: 100%
95
+
96
+ ---
97
+
98
+ ## Options Analyzed
99
+
100
+ ### Option 1: [Name]
101
+
102
+ **Description**: [Brief description of the option]
103
+
104
+ **Website**: [URL]
105
+ **License**: [e.g., MIT, Apache 2.0, Proprietary]
106
+ **Version**: [Current stable version]
107
+ **Maturity**: [Mature/Stable/Beta/Alpha]
108
+
109
+ #### Pros
110
+
111
+ - ✅ [Advantage 1]
112
+ - ✅ [Advantage 2]
113
+ - ✅ [Advantage 3]
114
+
115
+ #### Cons
116
+
117
+ - ❌ [Disadvantage 1]
118
+ - ❌ [Disadvantage 2]
119
+ - ❌ [Disadvantage 3]
120
+
121
+ #### Technical Details
122
+
123
+ **Language/Framework**: [e.g., TypeScript, Python, Go]
124
+ **Dependencies**: [Major dependencies]
125
+ **Integration**: [How it integrates with existing stack]
126
+
127
+ **Example Usage**:
128
+ ```typescript
129
+ // Code example showing how to use this option
130
+ import { Feature } from 'option1';
131
+
132
+ const feature = new Feature({
133
+ config: 'value'
134
+ });
135
+
136
+ const result = await feature.execute();
137
+ ```
138
+
139
+ #### Evaluation Scores
140
+
141
+ | Criterion | Score (1-10) | Weight | Weighted Score | Notes |
142
+ |-----------|--------------|--------|----------------|-------|
143
+ | Technical Fit | [N] | 30% | [N×0.3] | [Notes] |
144
+ | Developer Experience | [N] | 20% | [N×0.2] | [Notes] |
145
+ | Performance | [N] | 15% | [N×0.15] | [Notes] |
146
+ | Community Support | [N] | 15% | [N×0.15] | [Notes] |
147
+ | Cost | [N] | 10% | [N×0.1] | [Notes] |
148
+ | Security | [N] | 10% | [N×0.1] | [Notes] |
149
+ | **Total** | - | 100% | **[Sum]** | - |
150
+
151
+ #### Community Metrics
152
+
153
+ - **GitHub Stars**: [N]
154
+ - **NPM Downloads**: [N/week or N/month]
155
+ - **Contributors**: [N]
156
+ - **Last Release**: [Date]
157
+ - **Open Issues**: [N]
158
+ - **Documentation Quality**: [Excellent/Good/Fair/Poor]
159
+
160
+ #### Use Cases
161
+
162
+ **Best For**:
163
+ - [Use case 1]
164
+ - [Use case 2]
165
+
166
+ **Not Suitable For**:
167
+ - [Use case 1]
168
+ - [Use case 2]
169
+
170
+ ---
171
+
172
+ ### Option 2: [Name]
173
+
174
+ [Repeat the same structure as Option 1]
175
+
176
+ **Description**: [Brief description]
177
+
178
+ **Website**: [URL]
179
+ **License**: [License]
180
+ **Version**: [Version]
181
+ **Maturity**: [Maturity level]
182
+
183
+ #### Pros
184
+
185
+ - ✅ [Advantage 1]
186
+ - ✅ [Advantage 2]
187
+
188
+ #### Cons
189
+
190
+ - ❌ [Disadvantage 1]
191
+ - ❌ [Disadvantage 2]
192
+
193
+ #### Technical Details
194
+
195
+ [Same structure as Option 1]
196
+
197
+ #### Evaluation Scores
198
+
199
+ [Same table as Option 1]
200
+
201
+ #### Community Metrics
202
+
203
+ [Same structure as Option 1]
204
+
205
+ ---
206
+
207
+ ### Option 3: [Name]
208
+
209
+ [Repeat structure]
210
+
211
+ ---
212
+
213
+ ## Comparison Matrix
214
+
215
+ | Feature/Criterion | Option 1 | Option 2 | Option 3 | Winner |
216
+ |-------------------|----------|----------|----------|--------|
217
+ | **Technical Fit** | 8/10 | 7/10 | 9/10 | Option 3 |
218
+ | **Developer Experience** | 9/10 | 6/10 | 7/10 | Option 1 |
219
+ | **Performance** | 7/10 | 9/10 | 8/10 | Option 2 |
220
+ | **Community Support** | 9/10 | 7/10 | 6/10 | Option 1 |
221
+ | **Cost** | 10/10 (free) | 8/10 | 10/10 (free) | Option 1, 3 |
222
+ | **Security** | 8/10 | 7/10 | 9/10 | Option 3 |
223
+ | **Weighted Total** | **8.3** | **7.5** | **8.0** | **Option 1** |
224
+
225
+ ---
226
+
227
+ ## Feature Comparison
228
+
229
+ | Feature | Option 1 | Option 2 | Option 3 | Required? |
230
+ |---------|----------|----------|----------|-----------|
231
+ | [Feature 1] | ✅ | ✅ | ❌ | Yes |
232
+ | [Feature 2] | ✅ | ❌ | ✅ | Yes |
233
+ | [Feature 3] | ❌ | ✅ | ✅ | No |
234
+ | [Feature 4] | ✅ | ✅ | ✅ | Yes |
235
+ | [Feature 5] | Partial | ✅ | ✅ | No |
236
+
237
+ **Legend**: ✅ Supported | ❌ Not supported | Partial = Limited support
238
+
239
+ ---
240
+
241
+ ## Performance Benchmarks
242
+
243
+ ### Benchmark Setup
244
+
245
+ **Environment**:
246
+ - CPU: [e.g., Intel i7, Apple M1]
247
+ - RAM: [e.g., 16GB]
248
+ - OS: [e.g., macOS, Ubuntu 22.04]
249
+ - Node.js: [e.g., v20.10.0]
250
+
251
+ **Test Scenario**: [Description of what was tested]
252
+
253
+ ### Results
254
+
255
+ | Metric | Option 1 | Option 2 | Option 3 | Winner |
256
+ |--------|----------|----------|----------|--------|
257
+ | **Throughput** (ops/sec) | 10,000 | 15,000 | 12,000 | Option 2 |
258
+ | **Latency** (ms, p95) | 50 | 30 | 40 | Option 2 |
259
+ | **Memory** (MB) | 150 | 200 | 120 | Option 3 |
260
+ | **Bundle Size** (KB) | 80 | 120 | 60 | Option 3 |
261
+ | **Startup Time** (ms) | 200 | 300 | 150 | Option 3 |
262
+
263
+ **Benchmark Code**:
264
+ ```typescript
265
+ // Code used for benchmarking
266
+ import Benchmark from 'benchmark';
267
+
268
+ const suite = new Benchmark.Suite();
269
+
270
+ suite
271
+ .add('Option 1', () => {
272
+ // Test code
273
+ })
274
+ .add('Option 2', () => {
275
+ // Test code
276
+ })
277
+ .on('complete', function() {
278
+ console.log('Fastest is ' + this.filter('fastest').map('name'));
279
+ })
280
+ .run();
281
+ ```
282
+
283
+ ---
284
+
285
+ ## Proof of Concept
286
+
287
+ ### Option 1 POC
288
+
289
+ **Goal**: [What the POC aimed to prove]
290
+
291
+ **Implementation**:
292
+ ```typescript
293
+ // Proof of concept code
294
+ ```
295
+
296
+ **Results**:
297
+ - ✅ [Success criterion 1]
298
+ - ✅ [Success criterion 2]
299
+ - ❌ [Failed criterion 1]
300
+
301
+ **Time Investment**: [X hours]
302
+ **Verdict**: [Pass/Fail/Partial]
303
+
304
+ ---
305
+
306
+ ### Option 2 POC
307
+
308
+ [Same structure]
309
+
310
+ ---
311
+
312
+ ## Risk Analysis
313
+
314
+ ### Option 1 Risks
315
+
316
+ | Risk | Probability | Impact | Mitigation |
317
+ |------|-------------|--------|------------|
318
+ | [Risk 1] | High/Medium/Low | High/Medium/Low | [Mitigation strategy] |
319
+ | [Risk 2] | High/Medium/Low | High/Medium/Low | [Mitigation strategy] |
320
+
321
+ ### Option 2 Risks
322
+
323
+ [Same structure]
324
+
325
+ ---
326
+
327
+ ## Migration Considerations
328
+
329
+ ### For Option 1
330
+
331
+ **If we choose Option 1, migration path**:
332
+
333
+ **Current State**: [Description of current implementation]
334
+ **Target State**: [Description after migration]
335
+
336
+ **Migration Steps**:
337
+ 1. [Step 1]
338
+ 2. [Step 2]
339
+ 3. [Step 3]
340
+
341
+ **Estimated Effort**: [X hours/days]
342
+ **Rollback Plan**: [How to revert if issues occur]
343
+
344
+ ---
345
+
346
+ ## Cost Analysis
347
+
348
+ | Cost Factor | Option 1 | Option 2 | Option 3 |
349
+ |-------------|----------|----------|----------|
350
+ | **License Cost** | Free (MIT) | $X/month | Free (Apache) |
351
+ | **Infrastructure** | $X/month | $Y/month | $Z/month |
352
+ | **Development Time** | X hours | Y hours | Z hours |
353
+ | **Maintenance** (annual) | X hours | Y hours | Z hours |
354
+ | **Training** | Low | Medium | Low |
355
+ | **Total 1st Year** | **$X** | **$Y** | **$Z** |
356
+
357
+ ---
358
+
359
+ ## Team Feedback
360
+
361
+ ### Developer Survey
362
+
363
+ **Respondents**: [N team members]
364
+
365
+ **Question**: Which option do you prefer?
366
+ - Option 1: [N votes] ([%]%)
367
+ - Option 2: [N votes] ([%]%)
368
+ - Option 3: [N votes] ([%]%)
369
+
370
+ **Comments**:
371
+ - "[Developer 1 comment]"
372
+ - "[Developer 2 comment]"
373
+
374
+ ---
375
+
376
+ ## Recommendation
377
+
378
+ ### Primary Recommendation: [Option X]
379
+
380
+ **Rationale**:
381
+ 1. [Reason 1 - e.g., Highest weighted score (8.3/10)]
382
+ 2. [Reason 2 - e.g., Best developer experience]
383
+ 3. [Reason 3 - e.g., Strong community support]
384
+ 4. [Reason 4 - e.g., Aligns with steering context]
385
+
386
+ **Trade-offs Accepted**:
387
+ - [Trade-off 1 - e.g., Slightly slower than Option 2]
388
+ - [Trade-off 2 - e.g., Smaller community than Option 1]
389
+
390
+ **Decision Confidence**: [High/Medium/Low]
391
+
392
+ ---
393
+
394
+ ### Alternative Recommendation: [Option Y]
395
+
396
+ **When to Use Instead**:
397
+ - If [condition 1 - e.g., performance is critical]
398
+ - If [condition 2 - e.g., budget is constrained]
399
+
400
+ ---
401
+
402
+ ## Next Steps
403
+
404
+ ### Immediate Actions
405
+
406
+ 1. [ ] **Stakeholder Review**: Present findings to [stakeholders]
407
+ 2. [ ] **Decision**: Get approval on [recommended option]
408
+ 3. [ ] **Spike**: Run 1-week spike to validate integration
409
+ 4. [ ] **Requirements**: Create requirements document
410
+ 5. [ ] **Design**: Create technical design document
411
+
412
+ ### Timeline
413
+
414
+ | Phase | Duration | Deadline |
415
+ |-------|----------|----------|
416
+ | Research Review | 2 days | {{DATE}} |
417
+ | Decision | 1 day | {{DATE}} |
418
+ | Validation Spike | 1 week | {{DATE}} |
419
+ | Requirements | 3 days | {{DATE}} |
420
+ | Design | 1 week | {{DATE}} |
421
+
422
+ ---
423
+
424
+ ## References
425
+
426
+ ### Documentation
427
+
428
+ - [Option 1 Docs]: [URL]
429
+ - [Option 2 Docs]: [URL]
430
+ - [Option 3 Docs]: [URL]
431
+
432
+ ### Articles & Blog Posts
433
+
434
+ - [Title 1]: [URL]
435
+ - [Title 2]: [URL]
436
+
437
+ ### Code Examples
438
+
439
+ - [Example 1]: [GitHub URL]
440
+ - [Example 2]: [GitHub URL]
441
+
442
+ ### Community Discussions
443
+
444
+ - [Discussion 1]: [URL]
445
+ - [Discussion 2]: [URL]
446
+
447
+ ---
448
+
449
+ ## Appendix A: Detailed Benchmarks
450
+
451
+ [Include raw benchmark data, graphs, charts]
452
+
453
+ ---
454
+
455
+ ## Appendix B: Code Samples
456
+
457
+ ### Option 1 Complete Example
458
+
459
+ ```typescript
460
+ // Complete working example
461
+ ```
462
+
463
+ ### Option 2 Complete Example
464
+
465
+ ```typescript
466
+ // Complete working example
467
+ ```
468
+
469
+ ---
470
+
471
+ ## Appendix C: Decision Framework
472
+
473
+ This research follows the decision framework from `steering/rules/workflow.md` Stage 1 (Research).
474
+
475
+ **Quality Gates**:
476
+ - ✅ Research questions answered
477
+ - ✅ Minimum 2 options evaluated
478
+ - ✅ Recommendations justified
479
+ - ✅ Stakeholders can review
480
+
481
+ **Constitutional Compliance**:
482
+ - ✅ **Article VI**: Consulted steering context (structure.md, tech.md, product.md)
483
+
484
+ ---
485
+
486
+ ## Document History
487
+
488
+ ### Version 1.1 (Future)
489
+ - [Planned update 1]
490
+ - [Planned update 2]
491
+
492
+ ---
493
+
494
+ **Powered by MUSUBI** - Specification Driven Development