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.
- package/LICENSE +21 -0
- package/README.ja.md +531 -0
- package/README.md +531 -0
- package/bin/musubi-init.js +321 -0
- package/bin/musubi.js +359 -0
- package/package.json +55 -0
- package/src/agents/registry.js +242 -0
- package/src/templates/agents/claude-code/CLAUDE.md +232 -0
- package/src/templates/agents/claude-code/commands/sdd-design.md +673 -0
- package/src/templates/agents/claude-code/commands/sdd-implement.md +777 -0
- package/src/templates/agents/claude-code/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/claude-code/commands/sdd-steering.md +334 -0
- package/src/templates/agents/claude-code/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/claude-code/commands/sdd-validate.md +710 -0
- package/src/templates/agents/claude-code/skills/ai-ml-engineer/SKILL.md +3055 -0
- package/src/templates/agents/claude-code/skills/api-designer/SKILL.md +1364 -0
- package/src/templates/agents/claude-code/skills/bug-hunter/SKILL.md +482 -0
- package/src/templates/agents/claude-code/skills/change-impact-analyzer/SKILL.md +397 -0
- package/src/templates/agents/claude-code/skills/cloud-architect/SKILL.md +1468 -0
- package/src/templates/agents/claude-code/skills/code-reviewer/SKILL.md +906 -0
- package/src/templates/agents/claude-code/skills/constitution-enforcer/SKILL.md +466 -0
- package/src/templates/agents/claude-code/skills/database-administrator/SKILL.md +3522 -0
- package/src/templates/agents/claude-code/skills/database-schema-designer/SKILL.md +1158 -0
- package/src/templates/agents/claude-code/skills/devops-engineer/SKILL.md +647 -0
- package/src/templates/agents/claude-code/skills/orchestrator/SKILL.md +574 -0
- package/src/templates/agents/claude-code/skills/performance-optimizer/SKILL.md +464 -0
- package/src/templates/agents/claude-code/skills/project-manager/SKILL.md +769 -0
- package/src/templates/agents/claude-code/skills/quality-assurance/SKILL.md +1059 -0
- package/src/templates/agents/claude-code/skills/release-coordinator/SKILL.md +653 -0
- package/src/templates/agents/claude-code/skills/requirements-analyst/SKILL.md +1287 -0
- package/src/templates/agents/claude-code/skills/security-auditor/SKILL.md +1107 -0
- package/src/templates/agents/claude-code/skills/site-reliability-engineer/SKILL.md +404 -0
- package/src/templates/agents/claude-code/skills/software-developer/SKILL.md +1254 -0
- package/src/templates/agents/claude-code/skills/steering/SKILL.md +383 -0
- package/src/templates/agents/claude-code/skills/system-architect/SKILL.md +1288 -0
- package/src/templates/agents/claude-code/skills/technical-writer/SKILL.md +712 -0
- package/src/templates/agents/claude-code/skills/test-engineer/SKILL.md +1262 -0
- package/src/templates/agents/claude-code/skills/traceability-auditor/SKILL.md +298 -0
- package/src/templates/agents/claude-code/skills/ui-ux-designer/SKILL.md +1009 -0
- package/src/templates/agents/codex/AGENTS.md +138 -0
- package/src/templates/agents/codex/commands/sdd-design.md +673 -0
- package/src/templates/agents/codex/commands/sdd-implement.md +777 -0
- package/src/templates/agents/codex/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/codex/commands/sdd-steering.md +334 -0
- package/src/templates/agents/codex/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/codex/commands/sdd-validate.md +710 -0
- package/src/templates/agents/cursor/AGENTS.md +138 -0
- package/src/templates/agents/cursor/commands/sdd-design.md +673 -0
- package/src/templates/agents/cursor/commands/sdd-implement.md +777 -0
- package/src/templates/agents/cursor/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/cursor/commands/sdd-steering.md +334 -0
- package/src/templates/agents/cursor/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/cursor/commands/sdd-validate.md +710 -0
- package/src/templates/agents/gemini-cli/GEMINI.md +128 -0
- package/src/templates/agents/gemini-cli/commands/sdd-design.toml +359 -0
- package/src/templates/agents/gemini-cli/commands/sdd-implement.toml +484 -0
- package/src/templates/agents/gemini-cli/commands/sdd-requirements.toml +291 -0
- package/src/templates/agents/gemini-cli/commands/sdd-steering.toml +209 -0
- package/src/templates/agents/gemini-cli/commands/sdd-tasks.toml +441 -0
- package/src/templates/agents/gemini-cli/commands/sdd-validate.toml +553 -0
- package/src/templates/agents/github-copilot/AGENTS.md +138 -0
- package/src/templates/agents/github-copilot/commands/sdd-design.md +673 -0
- package/src/templates/agents/github-copilot/commands/sdd-implement.md +777 -0
- package/src/templates/agents/github-copilot/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/github-copilot/commands/sdd-steering.md +334 -0
- package/src/templates/agents/github-copilot/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/github-copilot/commands/sdd-validate.md +710 -0
- package/src/templates/agents/qwen-code/QWEN.md +128 -0
- package/src/templates/agents/qwen-code/commands/sdd-design.md +673 -0
- package/src/templates/agents/qwen-code/commands/sdd-implement.md +777 -0
- package/src/templates/agents/qwen-code/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/qwen-code/commands/sdd-steering.md +334 -0
- package/src/templates/agents/qwen-code/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/qwen-code/commands/sdd-validate.md +710 -0
- package/src/templates/agents/windsurf/AGENTS.md +138 -0
- package/src/templates/agents/windsurf/commands/sdd-design.md +673 -0
- package/src/templates/agents/windsurf/commands/sdd-implement.md +777 -0
- package/src/templates/agents/windsurf/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/windsurf/commands/sdd-steering.md +334 -0
- package/src/templates/agents/windsurf/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/windsurf/commands/sdd-validate.md +710 -0
- package/src/templates/shared/constitution/constitution.md +408 -0
- package/src/templates/shared/constitution/ears-format.md +613 -0
- package/src/templates/shared/constitution/workflow.md +653 -0
- package/src/templates/shared/documents/design.md +737 -0
- package/src/templates/shared/documents/requirements.md +329 -0
- package/src/templates/shared/documents/research.md +494 -0
- package/src/templates/shared/documents/tasks.md +781 -0
- package/src/templates/shared/steering/product.md +544 -0
- package/src/templates/shared/steering/structure.md +405 -0
- package/src/templates/shared/steering/tech.md +537 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
# Requirements Specification: {{FEATURE_NAME}}
|
|
2
|
+
|
|
3
|
+
**Project**: {{PROJECT_NAME}}
|
|
4
|
+
**Version**: 1.0
|
|
5
|
+
**Status**: Draft
|
|
6
|
+
**Date**: {{DATE}}
|
|
7
|
+
**Author**: {{AUTHOR}}
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Document Control
|
|
12
|
+
|
|
13
|
+
| Version | Date | Author | Changes |
|
|
14
|
+
|---------|------|--------|---------|
|
|
15
|
+
| 1.0 | {{DATE}} | {{AUTHOR}} | Initial draft |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
### Purpose
|
|
22
|
+
|
|
23
|
+
[Describe the purpose of this feature/component]
|
|
24
|
+
|
|
25
|
+
### Scope
|
|
26
|
+
|
|
27
|
+
**In Scope**:
|
|
28
|
+
- [Item 1]
|
|
29
|
+
- [Item 2]
|
|
30
|
+
|
|
31
|
+
**Out of Scope**:
|
|
32
|
+
- [Item 1]
|
|
33
|
+
- [Item 2]
|
|
34
|
+
|
|
35
|
+
### Business Context
|
|
36
|
+
|
|
37
|
+
[Reference to steering/product.md or business goals]
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Stakeholders
|
|
42
|
+
|
|
43
|
+
| Role | Name | Responsibilities |
|
|
44
|
+
|------|------|------------------|
|
|
45
|
+
| Product Owner | [Name] | Requirements approval |
|
|
46
|
+
| Tech Lead | [Name] | Technical feasibility |
|
|
47
|
+
| QA Lead | [Name] | Test planning |
|
|
48
|
+
| Development Team | [Names] | Implementation |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Functional Requirements
|
|
53
|
+
|
|
54
|
+
### REQ-{{COMPONENT}}-001: [Requirement Title]
|
|
55
|
+
|
|
56
|
+
[EARS Pattern Statement - choose one of the 5 patterns:]
|
|
57
|
+
|
|
58
|
+
**Pattern: Ubiquitous**
|
|
59
|
+
```
|
|
60
|
+
The [system] SHALL [requirement].
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Pattern: Event-Driven**
|
|
64
|
+
```
|
|
65
|
+
WHEN [event or condition],
|
|
66
|
+
THEN the [system] SHALL [response]
|
|
67
|
+
AND the system SHALL [additional response].
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Pattern: State-Driven**
|
|
71
|
+
```
|
|
72
|
+
WHILE [state or condition],
|
|
73
|
+
the [system] SHALL [response].
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Pattern: Unwanted Behavior**
|
|
77
|
+
```
|
|
78
|
+
IF [unwanted condition or error],
|
|
79
|
+
THEN the [system] SHALL [response]
|
|
80
|
+
AND the system SHALL [error handling].
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Pattern: Optional Feature**
|
|
84
|
+
```
|
|
85
|
+
WHERE [feature or configuration is enabled],
|
|
86
|
+
the [system] SHALL [response].
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Acceptance Criteria**:
|
|
90
|
+
- [Testable criterion 1]
|
|
91
|
+
- [Testable criterion 2]
|
|
92
|
+
- [Testable criterion 3]
|
|
93
|
+
|
|
94
|
+
**Priority**: [P0/P1/P2/P3]
|
|
95
|
+
- P0 = Critical (launch blocker)
|
|
96
|
+
- P1 = High (required for launch)
|
|
97
|
+
- P2 = Medium (nice to have)
|
|
98
|
+
- P3 = Low (future consideration)
|
|
99
|
+
|
|
100
|
+
**Status**: [Draft/Approved/Implemented/Tested/Deployed]
|
|
101
|
+
|
|
102
|
+
**Traceability**:
|
|
103
|
+
- Design: [Reference to design.md section]
|
|
104
|
+
- Code: [file-path:line-number]
|
|
105
|
+
- Tests: [test-file:line-number]
|
|
106
|
+
|
|
107
|
+
**Dependencies**:
|
|
108
|
+
- [REQ-XXX-NNN] - [Description]
|
|
109
|
+
|
|
110
|
+
**Assumptions**:
|
|
111
|
+
- [Assumption 1]
|
|
112
|
+
- [Assumption 2]
|
|
113
|
+
|
|
114
|
+
**Constraints**:
|
|
115
|
+
- [Constraint 1]
|
|
116
|
+
- [Constraint 2]
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### REQ-{{COMPONENT}}-002: [Next Requirement]
|
|
121
|
+
|
|
122
|
+
[Continue with additional requirements...]
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Non-Functional Requirements
|
|
127
|
+
|
|
128
|
+
### REQ-PERF-001: Performance
|
|
129
|
+
|
|
130
|
+
The {{COMPONENT}} SHALL respond within [X]ms for [Y]% of requests.
|
|
131
|
+
|
|
132
|
+
**Acceptance Criteria**:
|
|
133
|
+
- 95th percentile < [X]ms
|
|
134
|
+
- 99th percentile < [Y]ms
|
|
135
|
+
- Tested with [Z] concurrent users
|
|
136
|
+
- Response time measured end-to-end
|
|
137
|
+
|
|
138
|
+
**Priority**: P0
|
|
139
|
+
**Status**: Draft
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### REQ-SEC-001: Security
|
|
144
|
+
|
|
145
|
+
The {{COMPONENT}} SHALL prevent [security threat].
|
|
146
|
+
|
|
147
|
+
**Acceptance Criteria**:
|
|
148
|
+
- OWASP Top 10 vulnerabilities mitigated
|
|
149
|
+
- Input validation on all user inputs
|
|
150
|
+
- Output encoding for XSS prevention
|
|
151
|
+
- SQL injection prevention via parameterized queries
|
|
152
|
+
- Authentication required for all protected endpoints
|
|
153
|
+
|
|
154
|
+
**Priority**: P0
|
|
155
|
+
**Status**: Draft
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### REQ-SCALE-001: Scalability
|
|
160
|
+
|
|
161
|
+
The {{COMPONENT}} SHALL support [X] concurrent users.
|
|
162
|
+
|
|
163
|
+
**Acceptance Criteria**:
|
|
164
|
+
- Load tested with [X] concurrent users
|
|
165
|
+
- No degradation in performance
|
|
166
|
+
- Horizontal scaling supported
|
|
167
|
+
- Database connection pooling configured
|
|
168
|
+
|
|
169
|
+
**Priority**: P1
|
|
170
|
+
**Status**: Draft
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### REQ-AVAIL-001: Availability
|
|
175
|
+
|
|
176
|
+
The {{COMPONENT}} SHALL maintain [X]% uptime.
|
|
177
|
+
|
|
178
|
+
**Acceptance Criteria**:
|
|
179
|
+
- 99.9% uptime SLA
|
|
180
|
+
- Health check endpoint available
|
|
181
|
+
- Graceful degradation on dependency failure
|
|
182
|
+
- Monitoring and alerting configured
|
|
183
|
+
|
|
184
|
+
**Priority**: P1
|
|
185
|
+
**Status**: Draft
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
### REQ-MAINT-001: Maintainability
|
|
190
|
+
|
|
191
|
+
The {{COMPONENT}} SHALL follow [coding standards].
|
|
192
|
+
|
|
193
|
+
**Acceptance Criteria**:
|
|
194
|
+
- Code review passed
|
|
195
|
+
- SOLID principles followed
|
|
196
|
+
- Test coverage ≥ 80%
|
|
197
|
+
- Documentation complete (README, API docs)
|
|
198
|
+
|
|
199
|
+
**Priority**: P1
|
|
200
|
+
**Status**: Draft
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## User Stories
|
|
205
|
+
|
|
206
|
+
### US-001: [User Story Title]
|
|
207
|
+
|
|
208
|
+
**As a** [user type],
|
|
209
|
+
**I want** [functionality],
|
|
210
|
+
**So that** [benefit].
|
|
211
|
+
|
|
212
|
+
**Acceptance Criteria**:
|
|
213
|
+
- [Criterion 1]
|
|
214
|
+
- [Criterion 2]
|
|
215
|
+
|
|
216
|
+
**Maps to Requirements**:
|
|
217
|
+
- REQ-{{COMPONENT}}-001
|
|
218
|
+
- REQ-{{COMPONENT}}-002
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Use Cases
|
|
223
|
+
|
|
224
|
+
### UC-001: [Use Case Title]
|
|
225
|
+
|
|
226
|
+
**Actor**: [Primary actor]
|
|
227
|
+
**Goal**: [What the actor wants to achieve]
|
|
228
|
+
|
|
229
|
+
**Preconditions**:
|
|
230
|
+
- [Precondition 1]
|
|
231
|
+
- [Precondition 2]
|
|
232
|
+
|
|
233
|
+
**Main Flow**:
|
|
234
|
+
1. [Step 1]
|
|
235
|
+
2. [Step 2]
|
|
236
|
+
3. [Step 3]
|
|
237
|
+
|
|
238
|
+
**Postconditions**:
|
|
239
|
+
- [Postcondition 1]
|
|
240
|
+
- [Postcondition 2]
|
|
241
|
+
|
|
242
|
+
**Alternative Flows**:
|
|
243
|
+
- **Alt 1**: [Description]
|
|
244
|
+
1. [Step 1]
|
|
245
|
+
2. [Step 2]
|
|
246
|
+
|
|
247
|
+
**Exception Flows**:
|
|
248
|
+
- **Exc 1**: [Error condition]
|
|
249
|
+
1. [Step 1]
|
|
250
|
+
2. [Step 2]
|
|
251
|
+
|
|
252
|
+
**Maps to Requirements**:
|
|
253
|
+
- REQ-{{COMPONENT}}-001
|
|
254
|
+
- REQ-{{COMPONENT}}-003
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Requirements Coverage Matrix
|
|
259
|
+
|
|
260
|
+
| Requirement ID | Priority | Design | Code | Tests | Status |
|
|
261
|
+
|----------------|----------|--------|------|-------|--------|
|
|
262
|
+
| REQ-{{COMPONENT}}-001 | P0 | design.md#section | src/file.ts:45 | tests/file.test.ts:23 | Draft |
|
|
263
|
+
| REQ-{{COMPONENT}}-002 | P0 | design.md#section | src/file.ts:89 | tests/file.test.ts:67 | Draft |
|
|
264
|
+
| REQ-PERF-001 | P0 | design.md#performance | - | - | Draft |
|
|
265
|
+
| REQ-SEC-001 | P0 | design.md#security | - | - | Draft |
|
|
266
|
+
|
|
267
|
+
**Coverage Summary**:
|
|
268
|
+
- Total Requirements: [N]
|
|
269
|
+
- Requirements with Design: [N] ([%]%)
|
|
270
|
+
- Requirements with Code: [N] ([%]%)
|
|
271
|
+
- Requirements with Tests: [N] ([%]%)
|
|
272
|
+
- **Coverage Goal**: 100%
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Glossary
|
|
277
|
+
|
|
278
|
+
| Term | Definition |
|
|
279
|
+
|------|------------|
|
|
280
|
+
| [Term 1] | [Definition] |
|
|
281
|
+
| [Term 2] | [Definition] |
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## References
|
|
286
|
+
|
|
287
|
+
- [Steering Context](../../steering/product.md)
|
|
288
|
+
- [EARS Format Guide](../../steering/rules/ears-format.md)
|
|
289
|
+
- [Workflow Guide](../../steering/rules/workflow.md)
|
|
290
|
+
- [Related Documentation]
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Appendix A: EARS Pattern Quick Reference
|
|
295
|
+
|
|
296
|
+
| Pattern | Keyword | Use Case |
|
|
297
|
+
|---------|---------|----------|
|
|
298
|
+
| Ubiquitous | `The [system] SHALL` | Always-active functionality |
|
|
299
|
+
| Event-Driven | `WHEN ... THEN` | Triggered by events |
|
|
300
|
+
| State-Driven | `WHILE ... SHALL` | Active during state |
|
|
301
|
+
| Unwanted | `IF ... THEN` | Error handling |
|
|
302
|
+
| Optional | `WHERE ... SHALL` | Feature flags |
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Appendix B: Constitutional Compliance
|
|
307
|
+
|
|
308
|
+
This requirements document complies with:
|
|
309
|
+
|
|
310
|
+
- ✅ **Article IV**: All requirements use EARS format
|
|
311
|
+
- ✅ **Article V**: 100% traceability (requirements → design → code → tests)
|
|
312
|
+
- ✅ **Article VI**: Business context from steering/product.md
|
|
313
|
+
|
|
314
|
+
**Validation**:
|
|
315
|
+
```bash
|
|
316
|
+
@constitution-enforcer validate requirements.md
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Appendix C: Change Log
|
|
322
|
+
|
|
323
|
+
### Version 1.1 (Planned)
|
|
324
|
+
- [Planned change 1]
|
|
325
|
+
- [Planned change 2]
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
**Powered by MUSUBI** - Specification Driven Development
|