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,334 @@
1
+ # SDD Steering Command
2
+
3
+ Generate or update project memory (steering context).
4
+
5
+ ---
6
+
7
+ ## Instructions for Claude
8
+
9
+ You are executing the `/sdd-steering` command to generate or update the project's steering context.
10
+
11
+ ### What is Steering?
12
+
13
+ Steering provides **project memory** for all Claude Code skills. It consists of 3 core files that document:
14
+ 1. **structure.md** - Architecture patterns, directory structure, naming conventions
15
+ 2. **tech.md** - Technology stack, frameworks, tools
16
+ 3. **product.md** - Business context, product goals, users
17
+
18
+ ### Your Task
19
+
20
+ **Mode Detection**: Determine which mode to use:
21
+
22
+ 1. **Bootstrap Mode** - No steering files exist
23
+ - Analyze entire codebase
24
+ - Generate initial steering files
25
+ - Create both English (.md) and Japanese (.ja.md) versions
26
+
27
+ 2. **Sync Mode** - Steering files exist, codebase has changed
28
+ - Compare current steering with codebase
29
+ - Identify discrepancies
30
+ - Update steering files to match reality
31
+ - Preserve both English and Japanese versions
32
+
33
+ 3. **Review Mode** - User wants to review/improve steering
34
+ - Present current steering
35
+ - Suggest improvements
36
+ - Ask user for feedback
37
+
38
+ ---
39
+
40
+ ## Mode 1: Bootstrap (First Time)
41
+
42
+ ### Detection
43
+ - `steering/` directory doesn't exist OR
44
+ - `steering/structure.md`, `steering/tech.md`, `steering/product.md` don't exist
45
+
46
+ ### Steps
47
+
48
+ 1. **Analyze Codebase** (use Glob, Grep, Read tools extensively):
49
+ - Directory structure
50
+ - File organization patterns
51
+ - Technology stack (package.json, requirements.txt, go.mod, etc.)
52
+ - Frameworks detected
53
+ - Database technologies
54
+ - API patterns
55
+ - Testing frameworks
56
+ - Build tools
57
+ - Deployment configurations
58
+
59
+ 2. **Infer Product Context**:
60
+ - README.md analysis
61
+ - Package descriptions
62
+ - Domain concepts from code
63
+ - User types from code
64
+
65
+ 3. **Generate Steering Files** (Bilingual):
66
+
67
+ **IMPORTANT**: Create BOTH English and Japanese versions for each file.
68
+
69
+ **English version is always the reference/source.**
70
+
71
+ Create `steering/structure.md` (English) with:
72
+ - Architecture pattern (monolith, microservices, library-first, etc.)
73
+ - Directory organization rules
74
+ - Naming conventions
75
+ - Component boundaries
76
+ - Integration patterns
77
+
78
+ Create `steering/structure.ja.md` (Japanese) with:
79
+ - Translation of structure.md content
80
+ - All technical terms consistent with English version
81
+
82
+ Create `steering/tech.md` (English) with:
83
+ - Primary language(s) and versions
84
+ - Frameworks and versions
85
+ - Database(s) and versions
86
+ - API technologies (REST, GraphQL, gRPC)
87
+ - Testing frameworks
88
+ - Build/deployment tools
89
+ - Development tools
90
+
91
+ Create `steering/tech.ja.md` (Japanese) with:
92
+ - Translation of tech.md content
93
+ - Technology names kept in English with Japanese explanations
94
+
95
+ Create `steering/product.md` (English) with:
96
+ - Product vision (inferred from README)
97
+ - Target users (inferred from code)
98
+ - Core capabilities
99
+ - Business domain
100
+ - Success metrics (if available)
101
+
102
+ Create `steering/product.ja.md` (Japanese) with:
103
+ - Translation of product.md content
104
+ - Product terminology consistent with English version
105
+
106
+ 4. **Bilingual File Generation**:
107
+ - Generate English version (.md) FIRST
108
+ - Then generate Japanese translation (.ja.md)
109
+ - English version is the reference for all skills
110
+ - Japanese version for Japanese-speaking team members
111
+
112
+ 5. **Create Rules Directory**:
113
+ - Copy constitutional governance files
114
+ - Copy workflow guide
115
+ - Copy EARS format guide
116
+
117
+ ### Output
118
+
119
+ Present summary:
120
+ ```markdown
121
+ ## ✅ Steering Bootstrap Complete
122
+
123
+ Created steering files:
124
+ - steering/structure.md (+ .ja.md)
125
+ - steering/tech.md (+ .ja.md)
126
+ - steering/product.md (+ .ja.md)
127
+ - steering/rules/ (constitution, workflow, EARS)
128
+
129
+ ### Key Findings:
130
+ - **Architecture**: [detected pattern]
131
+ - **Tech Stack**: [primary technologies]
132
+ - **Product**: [inferred purpose]
133
+
134
+ Please review the generated files and adjust as needed.
135
+ ```
136
+
137
+ ---
138
+
139
+ ## Mode 2: Sync (Update Existing)
140
+
141
+ ### Detection
142
+ - Steering files exist
143
+ - Codebase may have changed since last steering update
144
+
145
+ ### Steps
146
+
147
+ 1. **Read Current Steering**:
148
+ - Read `steering/structure.md`
149
+ - Read `steering/tech.md`
150
+ - Read `steering/product.md`
151
+
152
+ 2. **Analyze Current Codebase**:
153
+ - Same analysis as Bootstrap mode
154
+ - Compare with current steering
155
+
156
+ 3. **Detect Discrepancies**:
157
+ - New technologies added?
158
+ - Architecture changed?
159
+ - New components added?
160
+ - Directory structure evolved?
161
+
162
+ 4. **Update Steering Files** (Bilingual):
163
+ - Update English version (.md) FIRST
164
+ - Update sections that changed
165
+ - Preserve sections that are still accurate
166
+ - Add changelog entries
167
+ - Then update Japanese version (.ja.md) to match
168
+ - Ensure both versions stay synchronized
169
+
170
+ 5. **Generate Sync Report**:
171
+ ```markdown
172
+ ## 🔄 Steering Sync Report
173
+
174
+ ### Changes Detected:
175
+ - [Change 1]
176
+ - [Change 2]
177
+
178
+ ### Updated Files:
179
+ - steering/structure.md (+ .ja.md)
180
+ - steering/tech.md (+ .ja.md)
181
+
182
+ ### No Changes:
183
+ - steering/product.md (still accurate)
184
+ ```
185
+
186
+ ---
187
+
188
+ ## Mode 3: Review (User-Initiated Review)
189
+
190
+ ### Detection
191
+ - User explicitly asks to review steering
192
+ - OR user wants to improve steering
193
+
194
+ ### Steps
195
+
196
+ 1. **Present Current Steering**:
197
+ - Show current structure.md summary
198
+ - Show current tech.md summary
199
+ - Show current product.md summary
200
+
201
+ 2. **Identify Improvement Opportunities**:
202
+ - Missing information
203
+ - Outdated information
204
+ - Unclear sections
205
+ - Inconsistencies
206
+
207
+ 3. **Ask User for Feedback**:
208
+ - Use AskUserQuestion tool
209
+ - Get user confirmation on changes
210
+ - Update based on feedback
211
+
212
+ ---
213
+
214
+ ## Constitutional Compliance
215
+
216
+ This command supports **Article VI: Project Memory**:
217
+ > All skills SHALL consult project memory (steering files) before making decisions.
218
+
219
+ By maintaining accurate steering files, all skills can:
220
+ - Make context-aware decisions
221
+ - Follow established patterns
222
+ - Align with product goals
223
+ - Use correct technologies
224
+
225
+ ---
226
+
227
+ ## Example Outputs
228
+
229
+ ### Bootstrap Example
230
+
231
+ ```markdown
232
+ ## ✅ Steering Bootstrap Complete
233
+
234
+ ### Structure (steering/structure.md)
235
+ - **Architecture**: Library-first monorepo
236
+ - **Pattern**: Each feature as independent library in `lib/`
237
+ - **App Integration**: Next.js app in `app/`
238
+ - **Directories**:
239
+ - `lib/` - Reusable libraries
240
+ - `app/` - Next.js application
241
+ - `tests/` - Integration tests
242
+
243
+ ### Tech Stack (steering/tech.md)
244
+ - **Language**: TypeScript 5.3
245
+ - **Framework**: Next.js 14 (App Router)
246
+ - **Database**: PostgreSQL 15 with Prisma ORM
247
+ - **API**: REST (Next.js API Routes)
248
+ - **Testing**: Jest + React Testing Library
249
+ - **CI/CD**: GitHub Actions
250
+
251
+ ### Product (steering/product.md)
252
+ - **Vision**: SaaS authentication platform
253
+ - **Users**: B2B SaaS companies
254
+ - **Core Features**: SSO, MFA, user management
255
+ ```
256
+
257
+ ### Sync Example
258
+
259
+ ```markdown
260
+ ## 🔄 Steering Sync Report
261
+
262
+ ### Changes Detected:
263
+ 1. **New Technology**: Redis added for caching
264
+ 2. **Architecture Evolution**: Added background job processing
265
+ 3. **New Component**: `lib/notifications/` added
266
+
267
+ ### Updated:
268
+ - ✅ steering/tech.md - Added Redis 7.0, BullMQ
269
+ - ✅ steering/structure.md - Documented background jobs pattern
270
+
271
+ ### No Changes:
272
+ - steering/product.md - Product vision unchanged
273
+ ```
274
+
275
+ ---
276
+
277
+ ## Tool Usage
278
+
279
+ Use these tools extensively:
280
+
281
+ 1. **Glob**: Find all source files, configs
282
+ ```
283
+ pattern: "**/*.ts"
284
+ pattern: "**/package.json"
285
+ pattern: "**/*.md"
286
+ ```
287
+
288
+ 2. **Grep**: Analyze code patterns
289
+ ```
290
+ pattern: "import.*from"
291
+ pattern: "export.*class"
292
+ pattern: "interface\\s+\\w+"
293
+ ```
294
+
295
+ 3. **Read**: Read key files
296
+ - package.json
297
+ - tsconfig.json
298
+ - README.md
299
+ - docker-compose.yml
300
+ - .env.example
301
+
302
+ ---
303
+
304
+ ## Validation
305
+
306
+ After generating/updating steering:
307
+
308
+ 1. **Completeness Check**:
309
+ - [ ] All 3 core files present
310
+ - [ ] Both English and Japanese versions
311
+ - [ ] Rules directory populated
312
+
313
+ 2. **Accuracy Check**:
314
+ - [ ] Technologies match package.json
315
+ - [ ] Architecture matches codebase structure
316
+ - [ ] Product context aligns with README
317
+
318
+ 3. **Consistency Check**:
319
+ - [ ] English and Japanese versions match
320
+ - [ ] No contradictions between files
321
+ - [ ] Steering aligns with constitutional articles
322
+
323
+ ---
324
+
325
+ ## Next Steps After Steering
326
+
327
+ Once steering is complete, users can:
328
+ 1. Review and adjust steering files manually
329
+ 2. Proceed with requirements analysis: `/sdd-requirements [feature]`
330
+ 3. Use any skill (they will now have project context)
331
+
332
+ ---
333
+
334
+ **Execution**: Begin steering generation/update now.