musubi-sdd 3.0.1 → 3.5.1
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/bin/musubi-change.js +623 -10
- package/bin/musubi-orchestrate.js +456 -0
- package/bin/musubi-trace.js +393 -0
- package/package.json +3 -2
- package/src/analyzers/impact-analyzer.js +682 -0
- package/src/integrations/cicd.js +782 -0
- package/src/integrations/documentation.js +740 -0
- package/src/integrations/examples.js +789 -0
- package/src/integrations/index.js +23 -0
- package/src/integrations/platforms.js +929 -0
- package/src/managers/delta-spec.js +484 -0
- package/src/monitoring/incident-manager.js +890 -0
- package/src/monitoring/index.js +633 -0
- package/src/monitoring/observability.js +938 -0
- package/src/monitoring/release-manager.js +622 -0
- package/src/orchestration/index.js +168 -0
- package/src/orchestration/orchestration-engine.js +409 -0
- package/src/orchestration/pattern-registry.js +319 -0
- package/src/orchestration/patterns/auto.js +386 -0
- package/src/orchestration/patterns/group-chat.js +395 -0
- package/src/orchestration/patterns/human-in-loop.js +506 -0
- package/src/orchestration/patterns/nested.js +322 -0
- package/src/orchestration/patterns/sequential.js +278 -0
- package/src/orchestration/patterns/swarm.js +395 -0
- package/src/orchestration/workflow-orchestrator.js +738 -0
- package/src/reporters/coverage-report.js +452 -0
- package/src/reporters/traceability-matrix-report.js +684 -0
- package/src/steering/advanced-validation.js +812 -0
- package/src/steering/auto-updater.js +670 -0
- package/src/steering/index.js +119 -0
- package/src/steering/quality-metrics.js +650 -0
- package/src/steering/template-constraints.js +789 -0
- package/src/templates/agents/claude-code/skills/agent-assistant/SKILL.md +22 -0
- package/src/templates/agents/claude-code/skills/issue-resolver/SKILL.md +21 -0
- package/src/templates/agents/claude-code/skills/orchestrator/SKILL.md +90 -28
- package/src/templates/agents/claude-code/skills/project-manager/SKILL.md +32 -0
- package/src/templates/agents/claude-code/skills/site-reliability-engineer/SKILL.md +27 -0
- package/src/templates/agents/claude-code/skills/steering/SKILL.md +30 -0
- package/src/templates/agents/claude-code/skills/test-engineer/SKILL.md +21 -0
- package/src/templates/agents/claude-code/skills/ui-ux-designer/SKILL.md +27 -0
- package/src/templates/agents/codex/AGENTS.md +36 -1
- package/src/templates/agents/cursor/AGENTS.md +36 -1
- package/src/templates/agents/gemini-cli/GEMINI.md +36 -1
- package/src/templates/agents/github-copilot/AGENTS.md +65 -1
- package/src/templates/agents/qwen-code/QWEN.md +36 -1
- package/src/templates/agents/windsurf/AGENTS.md +36 -1
- package/src/templates/shared/delta-spec-template.md +246 -0
- package/src/validators/delta-format.js +474 -0
- package/src/validators/traceability-validator.js +561 -0
|
@@ -145,12 +145,47 @@ MUSUBI provides advanced AI agent assistance modules:
|
|
|
145
145
|
#sdd-change-apply add-2fa
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
+
## CLI Commands (v3.5.0)
|
|
149
|
+
|
|
150
|
+
MUSUBI provides powerful CLI tools. Install with:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
npm install -g musubi-sdd
|
|
154
|
+
# or use directly
|
|
155
|
+
npx musubi-sdd <command>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Core Commands
|
|
159
|
+
|
|
160
|
+
| Command | Purpose | Example |
|
|
161
|
+
|---------|---------|--------|
|
|
162
|
+
| `musubi-workflow` | Workflow state & metrics | `npx musubi-workflow status` |
|
|
163
|
+
| `musubi-requirements` | EARS requirements | `npx musubi-requirements init <feature>` |
|
|
164
|
+
| `musubi-design` | C4 + ADR design | `npx musubi-design init <feature>` |
|
|
165
|
+
| `musubi-tasks` | Task breakdown | `npx musubi-tasks init <feature>` |
|
|
166
|
+
| `musubi-trace` | Traceability | `npx musubi-trace matrix` |
|
|
167
|
+
| `musubi-validate` | Constitutional validation | `npx musubi-validate all` |
|
|
168
|
+
|
|
169
|
+
### Advanced Commands (v3.5.0 NEW)
|
|
170
|
+
|
|
171
|
+
| Command | Purpose | Example |
|
|
172
|
+
|---------|---------|--------|
|
|
173
|
+
| `musubi-orchestrate` | Multi-skill orchestration | `npx musubi-orchestrate auto <task>` |
|
|
174
|
+
| `musubi-browser` | Browser automation & E2E | `npx musubi-browser run "click login"` |
|
|
175
|
+
| `musubi-gui` | Web GUI dashboard | `npx musubi-gui start` |
|
|
176
|
+
| `musubi-remember` | Agent memory management | `npx musubi-remember extract` |
|
|
177
|
+
| `musubi-resolve` | GitHub Issue resolution | `npx musubi-resolve <issue-number>` |
|
|
178
|
+
| `musubi-convert` | Format conversion | `npx musubi-convert to-speckit` |
|
|
179
|
+
|
|
148
180
|
## Learn More
|
|
149
181
|
|
|
150
|
-
- [MUSUBI Documentation](https://github.com/
|
|
182
|
+
- [MUSUBI Documentation](https://github.com/nahisaho/musubi)
|
|
183
|
+
- [CLI Reference](https://github.com/nahisaho/musubi#cli-commands) - Detailed CLI options
|
|
151
184
|
- [Constitutional Governance](steering/rules/constitution.md)
|
|
152
185
|
- [8-Stage SDD Workflow](steering/rules/workflow.md)
|
|
153
186
|
|
|
187
|
+
**Tip**: Run `npx musubi-sdd --help` for complete CLI documentation.
|
|
188
|
+
|
|
154
189
|
---
|
|
155
190
|
|
|
156
191
|
**MUSUBI for GitHub Copilot** - むすび - Bringing specifications, design, and code together.
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Delta Specification Template
|
|
2
|
+
|
|
3
|
+
Use this template for brownfield project change tracking.
|
|
4
|
+
|
|
5
|
+
## Format
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
[DELTA_TYPE] DELTA-ID: Brief description
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Delta Types
|
|
12
|
+
|
|
13
|
+
| Type | Usage | Example |
|
|
14
|
+
|------|-------|---------|
|
|
15
|
+
| `ADDED` | New requirement/component | `[ADDED] REQ-AUTH-005: OAuth2 support` |
|
|
16
|
+
| `MODIFIED` | Changed requirement/component | `[MODIFIED] REQ-AUTH-001: Updated password policy` |
|
|
17
|
+
| `REMOVED` | Deleted requirement/component | `[REMOVED] REQ-LEGACY-001: Deprecated feature` |
|
|
18
|
+
| `RENAMED` | Renamed identifier | `[RENAMED] UserService → AuthenticationService` |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Template
|
|
23
|
+
|
|
24
|
+
```markdown
|
|
25
|
+
# Delta Specification: DELTA-{FEATURE}-{NNN}
|
|
26
|
+
|
|
27
|
+
**Type**: {ADDED | MODIFIED | REMOVED | RENAMED}
|
|
28
|
+
**Target**: {REQ-XXX-NNN | Component/File path}
|
|
29
|
+
**Status**: proposed
|
|
30
|
+
**Created**: {YYYY-MM-DD}
|
|
31
|
+
**Updated**: {YYYY-MM-DD}
|
|
32
|
+
|
|
33
|
+
## Description
|
|
34
|
+
|
|
35
|
+
{Clear, concise description of the change. Use definitive language (SHALL, MUST).}
|
|
36
|
+
|
|
37
|
+
## Rationale
|
|
38
|
+
|
|
39
|
+
{Why is this change necessary? Reference business requirements, technical debt, etc.}
|
|
40
|
+
|
|
41
|
+
## Impacted Areas
|
|
42
|
+
|
|
43
|
+
- {api | database | ui | backend | frontend | security | performance | testing | documentation | infrastructure | configuration}
|
|
44
|
+
|
|
45
|
+
## Before State (for MODIFIED/RENAMED/REMOVED)
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
{Previous specification, code, or configuration}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## After State (for ADDED/MODIFIED/RENAMED)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
{New specification, code, or configuration}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Acceptance Criteria
|
|
58
|
+
|
|
59
|
+
- [ ] {Criterion 1}
|
|
60
|
+
- [ ] {Criterion 2}
|
|
61
|
+
- [ ] {Criterion 3}
|
|
62
|
+
|
|
63
|
+
## Traceability
|
|
64
|
+
|
|
65
|
+
| Item | Reference |
|
|
66
|
+
|------|-----------|
|
|
67
|
+
| Requirement | REQ-XXX-NNN |
|
|
68
|
+
| Design | ADR-NNN |
|
|
69
|
+
| Implementation | src/path/file.js |
|
|
70
|
+
| Tests | tests/path/file.test.js |
|
|
71
|
+
|
|
72
|
+
## Review Checklist
|
|
73
|
+
|
|
74
|
+
- [ ] Description is clear and uses definitive language
|
|
75
|
+
- [ ] Rationale explains business/technical justification
|
|
76
|
+
- [ ] All impacted areas are identified
|
|
77
|
+
- [ ] Before/After states are documented (if applicable)
|
|
78
|
+
- [ ] Acceptance criteria are testable
|
|
79
|
+
- [ ] Traceability links are complete
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Examples
|
|
85
|
+
|
|
86
|
+
### ADDED Example
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
# Delta Specification: DELTA-AUTH-001
|
|
90
|
+
|
|
91
|
+
**Type**: ADDED
|
|
92
|
+
**Target**: REQ-AUTH-005
|
|
93
|
+
**Status**: proposed
|
|
94
|
+
**Created**: 2025-12-08
|
|
95
|
+
**Updated**: 2025-12-08
|
|
96
|
+
|
|
97
|
+
## Description
|
|
98
|
+
|
|
99
|
+
WHEN user selects "Login with Google", the Auth Service SHALL authenticate via OAuth2 and create session.
|
|
100
|
+
|
|
101
|
+
## Rationale
|
|
102
|
+
|
|
103
|
+
Users requested social login to reduce friction during signup. Analytics show 40% drop-off at registration page.
|
|
104
|
+
|
|
105
|
+
## Impacted Areas
|
|
106
|
+
|
|
107
|
+
- api
|
|
108
|
+
- backend
|
|
109
|
+
- database
|
|
110
|
+
- security
|
|
111
|
+
|
|
112
|
+
## After State
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
interface OAuthConfig {
|
|
116
|
+
provider: 'google' | 'github' | 'microsoft';
|
|
117
|
+
clientId: string;
|
|
118
|
+
redirectUri: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function authenticateOAuth(config: OAuthConfig): Promise<Session>;
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Acceptance Criteria
|
|
125
|
+
|
|
126
|
+
- [ ] Google OAuth2 flow completes successfully
|
|
127
|
+
- [ ] Session created with correct user data
|
|
128
|
+
- [ ] Existing email accounts are linked
|
|
129
|
+
- [ ] Failed auth shows appropriate error
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### MODIFIED Example
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
# Delta Specification: DELTA-AUTH-002
|
|
136
|
+
|
|
137
|
+
**Type**: MODIFIED
|
|
138
|
+
**Target**: REQ-AUTH-001
|
|
139
|
+
**Status**: approved
|
|
140
|
+
**Created**: 2025-12-08
|
|
141
|
+
**Updated**: 2025-12-08
|
|
142
|
+
|
|
143
|
+
## Description
|
|
144
|
+
|
|
145
|
+
Password policy SHALL require minimum 12 characters (increased from 8).
|
|
146
|
+
|
|
147
|
+
## Rationale
|
|
148
|
+
|
|
149
|
+
Security audit (SEC-2025-042) identified weak password policy as high risk.
|
|
150
|
+
|
|
151
|
+
## Impacted Areas
|
|
152
|
+
|
|
153
|
+
- backend
|
|
154
|
+
- ui
|
|
155
|
+
- testing
|
|
156
|
+
|
|
157
|
+
## Before State
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
const PASSWORD_MIN_LENGTH = 8;
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## After State
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
const PASSWORD_MIN_LENGTH = 12;
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Acceptance Criteria
|
|
170
|
+
|
|
171
|
+
- [ ] New passwords require 12+ characters
|
|
172
|
+
- [ ] Existing passwords remain valid
|
|
173
|
+
- [ ] UI displays updated requirements
|
|
174
|
+
- [ ] Tests updated for new policy
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### REMOVED Example
|
|
178
|
+
|
|
179
|
+
```markdown
|
|
180
|
+
# Delta Specification: DELTA-LEGACY-001
|
|
181
|
+
|
|
182
|
+
**Type**: REMOVED
|
|
183
|
+
**Target**: REQ-LEGACY-001
|
|
184
|
+
**Status**: proposed
|
|
185
|
+
**Created**: 2025-12-08
|
|
186
|
+
**Updated**: 2025-12-08
|
|
187
|
+
|
|
188
|
+
## Description
|
|
189
|
+
|
|
190
|
+
Remove deprecated XML export feature.
|
|
191
|
+
|
|
192
|
+
## Rationale
|
|
193
|
+
|
|
194
|
+
Feature unused (0 invocations in 6 months). Maintenance burden not justified.
|
|
195
|
+
|
|
196
|
+
## Impacted Areas
|
|
197
|
+
|
|
198
|
+
- api
|
|
199
|
+
- backend
|
|
200
|
+
- documentation
|
|
201
|
+
|
|
202
|
+
## Before State
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
// Deprecated since v2.0.0
|
|
206
|
+
function exportToXML(data: Record[]): string;
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Acceptance Criteria
|
|
210
|
+
|
|
211
|
+
- [ ] XML export endpoint returns 410 Gone
|
|
212
|
+
- [ ] Code and tests removed
|
|
213
|
+
- [ ] Documentation updated
|
|
214
|
+
- [ ] Changelog documents breaking change
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Validation
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
# Validate single delta
|
|
223
|
+
musubi-change validate DELTA-AUTH-001
|
|
224
|
+
|
|
225
|
+
# Validate all deltas
|
|
226
|
+
musubi-change validate-all
|
|
227
|
+
|
|
228
|
+
# Show delta details
|
|
229
|
+
musubi-change show DELTA-AUTH-001
|
|
230
|
+
|
|
231
|
+
# Analyze impact
|
|
232
|
+
musubi-change impact DELTA-AUTH-001
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Workflow
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
1. Create → musubi-change create --id DELTA-AUTH-001 --type ADDED ...
|
|
241
|
+
2. Review → musubi-change show DELTA-AUTH-001
|
|
242
|
+
3. Approve → musubi-change approve DELTA-AUTH-001
|
|
243
|
+
4. Implement → (make code changes)
|
|
244
|
+
5. Apply → musubi-change apply DELTA-AUTH-001
|
|
245
|
+
6. Archive → musubi-change archive DELTA-AUTH-001
|
|
246
|
+
```
|