musubix 3.4.1 β 3.4.3
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/README.md +50 -315
- package/bin/musubix.js +1 -9
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +74 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -57
- package/.github/AGENTS.md +0 -949
- package/.github/prompts/sdd-change-apply.prompt.md +0 -283
- package/.github/prompts/sdd-change-archive.prompt.md +0 -241
- package/.github/prompts/sdd-change-init.prompt.md +0 -269
- package/.github/prompts/sdd-design.prompt.md +0 -250
- package/.github/prompts/sdd-implement.prompt.md +0 -387
- package/.github/prompts/sdd-requirements.prompt.md +0 -193
- package/.github/prompts/sdd-review.prompt.md +0 -155
- package/.github/prompts/sdd-security.prompt.md +0 -228
- package/.github/prompts/sdd-steering.prompt.md +0 -269
- package/.github/prompts/sdd-tasks.prompt.md +0 -255
- package/.github/prompts/sdd-test.prompt.md +0 -230
- package/.github/prompts/sdd-validate.prompt.md +0 -304
- package/.github/skills/musubix-adr-generation/SKILL.md +0 -209
- package/.github/skills/musubix-best-practices/SKILL.md +0 -315
- package/.github/skills/musubix-c4-design/SKILL.md +0 -162
- package/.github/skills/musubix-code-generation/SKILL.md +0 -237
- package/.github/skills/musubix-domain-inference/SKILL.md +0 -196
- package/.github/skills/musubix-ears-validation/SKILL.md +0 -161
- package/.github/skills/musubix-sdd-workflow/SKILL.md +0 -217
- package/.github/skills/musubix-technical-writing/SKILL.md +0 -444
- package/.github/skills/musubix-test-generation/SKILL.md +0 -212
- package/.github/skills/musubix-traceability/SKILL.md +0 -141
- package/AGENTS.md +0 -1134
- package/LICENSE +0 -21
- package/README.ja.md +0 -313
- package/bin/musubix-mcp.js +0 -15
- package/docs/API-REFERENCE.md +0 -1425
- package/docs/GITHUB-ACTIONS-NPM-SETUP.md +0 -132
- package/docs/INSTALL-GUIDE.ja.md +0 -459
- package/docs/INSTALL-GUIDE.md +0 -459
- package/docs/MIGRATION-v3.0.md +0 -324
- package/docs/MUSUBI-enhancement_roadmap_20260105.md +0 -651
- package/docs/MUSUBIX-v3.0-User-Guide.md +0 -1357
- package/docs/MUSUBIXv2.2.0-Manual-outline.md +0 -136
- package/docs/MUSUBIXv2.2.0-Manual.md +0 -3123
- package/docs/MUSUBIXv2.3.5-Refactering.md +0 -1310
- package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +0 -291
- package/docs/MUSUBIv2.2.0-USERGUIDE.md +0 -2079
- package/docs/ROADMAP-v1.5.md +0 -116
- package/docs/SwarmCoding.md +0 -1284
- package/docs/Test-prompt.md +0 -105
- package/docs/USER-GUIDE-v1.8.0.md +0 -2371
- package/docs/USER-GUIDE.ja.md +0 -2147
- package/docs/USER-GUIDE.md +0 -3022
- package/docs/YATA-GLOBAL-GUIDE.ja.md +0 -750
- package/docs/YATA-GLOBAL-GUIDE.md +0 -595
- package/docs/YATA-LOCAL-GUIDE.ja.md +0 -989
- package/docs/YATA-LOCAL-GUIDE.md +0 -730
- package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +0 -75
- package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +0 -79
- package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +0 -90
- package/docs/adr/ADR-v3.4.0-001-deep-research-architecture.md +0 -217
- package/docs/adr/ADR-v3.4.0-002-search-provider-selection.md +0 -308
- package/docs/adr/ADR-v3.4.0-003-lm-api-integration.md +0 -475
- package/docs/enterprise-knowledge-management.md +0 -1737
- package/docs/evolution-from-musubi-to-musubix.md +0 -2170
- package/docs/getting-started-with-sdd.md +0 -1602
- package/docs/moodle-refactering-codegraph-musubix.md +0 -391
- package/docs/moodle-refactering-codegraph.md +0 -278
- package/docs/overview/MUSUBIX-CodeGraph.md +0 -322
- package/docs/overview/MUSUBIX-Core.md +0 -671
- package/docs/overview/MUSUBIX-Decisions.md +0 -494
- package/docs/overview/MUSUBIX-FormalVerify.md +0 -566
- package/docs/overview/MUSUBIX-Knowledge.md +0 -1231
- package/docs/overview/MUSUBIX-Learning.md +0 -837
- package/docs/overview/MUSUBIX-MCP-Server.md +0 -535
- package/docs/overview/MUSUBIX-Overview.md +0 -264
- package/docs/overview/MUSUBIX-Phase1-Complete.md +0 -271
- package/docs/overview/MUSUBIX-Phase2-Complete.md +0 -310
- package/docs/overview/MUSUBIX-Policy.md +0 -477
- package/docs/overview/MUSUBIX-Roadmap-v2.md +0 -399
- package/docs/overview/MUSUBIX-Security-Plan.md +0 -939
- package/docs/overview/MUSUBIX-Security-v2.1.md +0 -668
- package/docs/overview/MUSUBIX-Security.md +0 -891
- package/docs/overview/MUSUBIX-YATA.md +0 -666
- package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +0 -513
- package/docs/overview/Neuro-SymbolicAI.md +0 -159
- package/docs/packages/knowledge.md +0 -594
- package/docs/qiita-linux-kernel-knowledge-graph.md +0 -596
- package/scripts/generate-quality-gate-report.ts +0 -106
- package/scripts/postinstall.js +0 -94
- package/steering/.musubi-version +0 -1
- package/steering/product.ja.md +0 -572
- package/steering/project.yml +0 -66
- package/steering/rules/constitution.md +0 -491
- package/steering/structure.ja.md +0 -503
- package/steering/tech.ja.md +0 -208
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
# MUSUBIX Change Init Command
|
|
2
|
-
|
|
3
|
-
Initialize a change proposal for brownfield projects (existing codebase).
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Instructions for AI Agent
|
|
8
|
-
|
|
9
|
-
You are executing the `musubix change init [change-name]` command to create a change proposal for an existing codebase.
|
|
10
|
-
|
|
11
|
-
### Command Format
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx musubix change init add-2fa
|
|
15
|
-
npx musubix change init migrate-to-graphql
|
|
16
|
-
npx musubix change init refactor-auth-service
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Your Task
|
|
20
|
-
|
|
21
|
-
Generate a change proposal specification that documents what will be added, modified, or removed in the existing MUSUBIX system.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Process
|
|
26
|
-
|
|
27
|
-
### 1. Read Steering Context (Article VI)
|
|
28
|
-
|
|
29
|
-
**IMPORTANT**: Before starting, read steering files:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
steering/product.ja.md # Current product context
|
|
33
|
-
steering/structure.ja.md # Existing architecture
|
|
34
|
-
steering/tech.ja.md # Current technology stack
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
### 2. Analyze Existing System
|
|
40
|
-
|
|
41
|
-
**Research Current Implementation**:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Search for related code
|
|
45
|
-
grep -r "{{related-feature}}" packages/
|
|
46
|
-
|
|
47
|
-
# Find existing requirements
|
|
48
|
-
ls storage/specs/REQ-*.md
|
|
49
|
-
|
|
50
|
-
# Check existing design documents
|
|
51
|
-
ls storage/specs/DES-*.md
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
**Document Current State**:
|
|
55
|
-
|
|
56
|
-
- What exists now?
|
|
57
|
-
- What packages are affected?
|
|
58
|
-
- What dependencies exist?
|
|
59
|
-
- What tests cover this area?
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
### 3. Gather Change Requirements
|
|
64
|
-
|
|
65
|
-
**Ask User**:
|
|
66
|
-
|
|
67
|
-
- Why is this change needed?
|
|
68
|
-
- What problem does it solve?
|
|
69
|
-
- What must NOT change (backward compatibility)?
|
|
70
|
-
- What is the timeline?
|
|
71
|
-
|
|
72
|
-
**Impact Analysis**:
|
|
73
|
-
|
|
74
|
-
- [ ] packages/core/ components
|
|
75
|
-
- [ ] packages/mcp-server/ tools
|
|
76
|
-
- [ ] packages/yata-client/ integration
|
|
77
|
-
- [ ] CLI commands
|
|
78
|
-
- [ ] Tests
|
|
79
|
-
- [ ] Documentation
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
### 4. Generate Change Proposal
|
|
84
|
-
|
|
85
|
-
**Output**: `storage/changes/{{CHANGE_NAME}}-proposal.md`
|
|
86
|
-
|
|
87
|
-
```markdown
|
|
88
|
-
# Change Proposal: {{CHANGE_NAME}}
|
|
89
|
-
|
|
90
|
-
**Document ID**: CHG-{{CHANGE}}-001
|
|
91
|
-
**Version**: 1.0.0
|
|
92
|
-
**Date**: {{DATE}}
|
|
93
|
-
**Status**: Proposed
|
|
94
|
-
|
|
95
|
-
## Summary
|
|
96
|
-
|
|
97
|
-
**Change Type**: Feature / Enhancement / Refactor / Bug Fix
|
|
98
|
-
**Affected Packages**: packages/core/, packages/mcp-server/
|
|
99
|
-
**Risk Level**: Low / Medium / High
|
|
100
|
-
|
|
101
|
-
## Motivation
|
|
102
|
-
|
|
103
|
-
**Problem Statement**:
|
|
104
|
-
[Why is this change needed?]
|
|
105
|
-
|
|
106
|
-
**Business Value**:
|
|
107
|
-
[What value does this provide?]
|
|
108
|
-
|
|
109
|
-
## Current State
|
|
110
|
-
|
|
111
|
-
### Existing Implementation
|
|
112
|
-
|
|
113
|
-
| Component | Location | Description |
|
|
114
|
-
|-----------|----------|-------------|
|
|
115
|
-
| AuthService | packages/core/src/auth/ | Current auth implementation |
|
|
116
|
-
|
|
117
|
-
### Existing Tests
|
|
118
|
-
|
|
119
|
-
| Test File | Coverage |
|
|
120
|
-
|-----------|----------|
|
|
121
|
-
| auth.test.ts | 85% |
|
|
122
|
-
|
|
123
|
-
## Proposed Changes
|
|
124
|
-
|
|
125
|
-
### ADDED Requirements
|
|
126
|
-
|
|
127
|
-
#### REQ-{{COMPONENT}}-NEW-001: [New Feature]
|
|
128
|
-
|
|
129
|
-
> [EARS statement]
|
|
130
|
-
|
|
131
|
-
**Priority**: P1
|
|
132
|
-
**Acceptance Criteria**:
|
|
133
|
-
- [ ] [Criterion 1]
|
|
134
|
-
|
|
135
|
-
### MODIFIED Requirements
|
|
136
|
-
|
|
137
|
-
#### REQ-{{COMPONENT}}-001: [Modified Feature]
|
|
138
|
-
|
|
139
|
-
**Current**:
|
|
140
|
-
> [Current EARS statement]
|
|
141
|
-
|
|
142
|
-
**Proposed**:
|
|
143
|
-
> [New EARS statement]
|
|
144
|
-
|
|
145
|
-
**Change Reason**: [Why modify?]
|
|
146
|
-
|
|
147
|
-
### REMOVED Requirements
|
|
148
|
-
|
|
149
|
-
#### REQ-{{COMPONENT}}-OLD-001: [Deprecated Feature]
|
|
150
|
-
|
|
151
|
-
**Reason**: [Why remove?]
|
|
152
|
-
**Migration Path**: [How to migrate?]
|
|
153
|
-
|
|
154
|
-
## Impact Analysis
|
|
155
|
-
|
|
156
|
-
### Affected Components
|
|
157
|
-
|
|
158
|
-
| Package | Component | Impact |
|
|
159
|
-
|---------|-----------|--------|
|
|
160
|
-
| core | auth/service.ts | Modified |
|
|
161
|
-
| mcp-server | tools/auth-tools.ts | Modified |
|
|
162
|
-
|
|
163
|
-
### Breaking Changes
|
|
164
|
-
|
|
165
|
-
- [ ] CLI API changes
|
|
166
|
-
- [ ] MCP tool changes
|
|
167
|
-
- [ ] Type changes
|
|
168
|
-
|
|
169
|
-
### Migration Requirements
|
|
170
|
-
|
|
171
|
-
1. [Migration step 1]
|
|
172
|
-
2. [Migration step 2]
|
|
173
|
-
|
|
174
|
-
## Implementation Plan
|
|
175
|
-
|
|
176
|
-
### Phase 1: Preparation
|
|
177
|
-
|
|
178
|
-
- [ ] Create feature branch
|
|
179
|
-
- [ ] Write tests for new requirements
|
|
180
|
-
- [ ] Update documentation
|
|
181
|
-
|
|
182
|
-
### Phase 2: Implementation
|
|
183
|
-
|
|
184
|
-
- [ ] Implement changes
|
|
185
|
-
- [ ] Update affected components
|
|
186
|
-
- [ ] Add feature flag (if needed)
|
|
187
|
-
|
|
188
|
-
### Phase 3: Validation
|
|
189
|
-
|
|
190
|
-
- [ ] Run all tests
|
|
191
|
-
- [ ] Validate traceability
|
|
192
|
-
- [ ] Code review
|
|
193
|
-
|
|
194
|
-
## Rollback Plan
|
|
195
|
-
|
|
196
|
-
1. Revert feature flag
|
|
197
|
-
2. Deploy previous version
|
|
198
|
-
3. Restore database (if needed)
|
|
199
|
-
|
|
200
|
-
## Approval
|
|
201
|
-
|
|
202
|
-
| Role | Name | Date | Status |
|
|
203
|
-
|------|------|------|--------|
|
|
204
|
-
| Architect | | | Pending |
|
|
205
|
-
| Lead Dev | | | Pending |
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
---
|
|
209
|
-
|
|
210
|
-
### 5. Delta Specification
|
|
211
|
-
|
|
212
|
-
For modifications, create delta spec:
|
|
213
|
-
|
|
214
|
-
```markdown
|
|
215
|
-
## Delta Specification
|
|
216
|
-
|
|
217
|
-
### packages/core/src/auth/service.ts
|
|
218
|
-
|
|
219
|
-
**Change Type**: Modified
|
|
220
|
-
|
|
221
|
-
**Current Implementation**:
|
|
222
|
-
\`\`\`typescript
|
|
223
|
-
export class AuthService {
|
|
224
|
-
async login(email: string, password: string): Promise<Session> {
|
|
225
|
-
// Current implementation
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
\`\`\`
|
|
229
|
-
|
|
230
|
-
**Proposed Implementation**:
|
|
231
|
-
\`\`\`typescript
|
|
232
|
-
export class AuthService {
|
|
233
|
-
async login(email: string, password: string, mfaCode?: string): Promise<Session> {
|
|
234
|
-
// New implementation with MFA support
|
|
235
|
-
if (this.config.mfaEnabled && !mfaCode) {
|
|
236
|
-
throw new MFARequiredError();
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
\`\`\`
|
|
241
|
-
|
|
242
|
-
**Breaking Change**: Yes - New optional parameter
|
|
243
|
-
**Migration**: Update all callers to handle MFARequiredError
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
### 6. Traceability
|
|
249
|
-
|
|
250
|
-
Link to existing documents:
|
|
251
|
-
|
|
252
|
-
```markdown
|
|
253
|
-
## Traceability
|
|
254
|
-
|
|
255
|
-
### Related Requirements
|
|
256
|
-
- REQ-AUTH-001: User authentication (MODIFIED)
|
|
257
|
-
- REQ-AUTH-NEW-001: MFA support (ADDED)
|
|
258
|
-
|
|
259
|
-
### Related Design
|
|
260
|
-
- DES-AUTH-001: Authentication design (UPDATE REQUIRED)
|
|
261
|
-
|
|
262
|
-
### Related Tasks
|
|
263
|
-
- TSK-AUTH-001: Implement MFA (NEW)
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
**MUSUBIX**: https://github.com/nahisaho/MUSUBIX
|
|
269
|
-
**Version**: 1.0.0
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
# MUSUBIX Design Command
|
|
2
|
-
|
|
3
|
-
Generate technical design from requirements using C4 model.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Instructions for AI Agent
|
|
8
|
-
|
|
9
|
-
You are executing the `musubix design [feature-name]` command to create a technical design specification.
|
|
10
|
-
|
|
11
|
-
### Command Format
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx musubix design generate requirements.md
|
|
15
|
-
npx musubix design patterns context
|
|
16
|
-
npx musubix design validate design.md
|
|
17
|
-
npx musubix design c4 design.md
|
|
18
|
-
npx musubix design adr decision
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Your Task
|
|
22
|
-
|
|
23
|
-
Generate a comprehensive technical design that implements the requirements while adhering to constitutional governance.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Process
|
|
28
|
-
|
|
29
|
-
### 1. Read Context (Article VI)
|
|
30
|
-
|
|
31
|
-
**CRITICAL**: Read these files BEFORE designing:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# Steering Context
|
|
35
|
-
steering/structure.ja.md # Architecture patterns to follow
|
|
36
|
-
steering/tech.ja.md # Technology stack (TypeScript, Node.js 20+)
|
|
37
|
-
steering/product.ja.md # Product goals and users
|
|
38
|
-
|
|
39
|
-
# Requirements
|
|
40
|
-
storage/specs/REQ-{{FEATURE}}-001.md # What to implement
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
### 2. Verify Requirements Exist
|
|
46
|
-
|
|
47
|
-
**If NOT found**:
|
|
48
|
-
|
|
49
|
-
```markdown
|
|
50
|
-
β **Requirements file not found**
|
|
51
|
-
|
|
52
|
-
Expected: storage/specs/REQ-{{FEATURE}}-001.md
|
|
53
|
-
|
|
54
|
-
Please run `npx musubix requirements analyze {{feature}}` first.
|
|
55
|
-
|
|
56
|
-
Design cannot proceed without requirements (Article V: Traceability).
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
### 3. Generate Design Document (C4 Model)
|
|
62
|
-
|
|
63
|
-
**Output**: `storage/specs/DES-{{FEATURE}}-001.md`
|
|
64
|
-
|
|
65
|
-
#### A. Context Diagram (Level 1)
|
|
66
|
-
|
|
67
|
-
- System boundary
|
|
68
|
-
- External users
|
|
69
|
-
- External systems
|
|
70
|
-
|
|
71
|
-
#### B. Container Diagram (Level 2)
|
|
72
|
-
|
|
73
|
-
MUSUBIX architecture:
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
77
|
-
β MUSUBIX System β
|
|
78
|
-
β β
|
|
79
|
-
β βββββββββββββββββββ βββββββββββββββββββ β
|
|
80
|
-
β β @nahisaho/ β β @nahisaho/ β β
|
|
81
|
-
β β musubix-core ββββ musubix-mcp- β β
|
|
82
|
-
β β β β server β β
|
|
83
|
-
β ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ β
|
|
84
|
-
β β β β
|
|
85
|
-
β β βββββββββββββββββ β
|
|
86
|
-
β β β β
|
|
87
|
-
β βΌ βΌ β
|
|
88
|
-
β βββββββββββββββββββ β
|
|
89
|
-
β β @nahisaho/ β β
|
|
90
|
-
β β musubix-yata- β β
|
|
91
|
-
β β client β β
|
|
92
|
-
β βββββββββββββββββββ β
|
|
93
|
-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
#### C. Component Diagram (Level 3)
|
|
97
|
-
|
|
98
|
-
For packages/core/:
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
packages/core/src/
|
|
102
|
-
βββ auth/ # Authentication & Authorization
|
|
103
|
-
βββ cli/ # CLI Interface (Article II)
|
|
104
|
-
βββ codegen/ # Code Generation & Analysis
|
|
105
|
-
βββ design/ # Design Patterns & C4 Models
|
|
106
|
-
βββ error/ # Error Handling
|
|
107
|
-
βββ explanation/ # Explanation Generation
|
|
108
|
-
βββ requirements/ # Requirements Analysis
|
|
109
|
-
βββ traceability/ # Traceability
|
|
110
|
-
βββ types/ # Type Definitions
|
|
111
|
-
βββ utils/ # Utilities
|
|
112
|
-
βββ validators/ # EARS Validation
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
### 4. Requirements Mapping (Article V)
|
|
118
|
-
|
|
119
|
-
**CRITICAL**: Map EVERY requirement to design decisions.
|
|
120
|
-
|
|
121
|
-
```markdown
|
|
122
|
-
| Component | Requirements | Design Rationale |
|
|
123
|
-
|-----------|--------------|------------------|
|
|
124
|
-
| CLI | REQ-CLI-001 | Command interface |
|
|
125
|
-
| Validator | REQ-EARS-001 | EARS pattern validation |
|
|
126
|
-
| MCP Server | REQ-MCP-001 | Tool/prompt exposure |
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
### 5. API Design
|
|
132
|
-
|
|
133
|
-
For CLI commands:
|
|
134
|
-
|
|
135
|
-
```typescript
|
|
136
|
-
// packages/core/src/cli/commands/{{feature}}.ts
|
|
137
|
-
|
|
138
|
-
export interface {{Feature}}Options {
|
|
139
|
-
input: string;
|
|
140
|
-
output?: string;
|
|
141
|
-
format?: 'json' | 'markdown';
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export async function {{feature}}Command(options: {{Feature}}Options): Promise<void> {
|
|
145
|
-
// REQ-{{COMPONENT}}-001: [Requirement title]
|
|
146
|
-
}
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
For MCP tools:
|
|
150
|
-
|
|
151
|
-
```typescript
|
|
152
|
-
// packages/mcp-server/src/tools/{{feature}}-tools.ts
|
|
153
|
-
|
|
154
|
-
export const {{feature}}Tool: ToolDefinition = {
|
|
155
|
-
name: 'sdd_{{feature}}',
|
|
156
|
-
description: '{{Feature description}}',
|
|
157
|
-
inputSchema: {
|
|
158
|
-
type: 'object',
|
|
159
|
-
properties: {
|
|
160
|
-
// ...
|
|
161
|
-
},
|
|
162
|
-
required: ['...'],
|
|
163
|
-
},
|
|
164
|
-
handler: async (args) => {
|
|
165
|
-
// REQ-{{COMPONENT}}-001
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
### 6. Design Document Template
|
|
173
|
-
|
|
174
|
-
```markdown
|
|
175
|
-
# Design Document: {{FEATURE_NAME}}
|
|
176
|
-
|
|
177
|
-
**Document ID**: DES-{{FEATURE}}-001
|
|
178
|
-
**Version**: 1.0.0
|
|
179
|
-
**Date**: {{DATE}}
|
|
180
|
-
**Requirements**: REQ-{{FEATURE}}-001
|
|
181
|
-
|
|
182
|
-
## Overview
|
|
183
|
-
|
|
184
|
-
- **Purpose**: [Design purpose]
|
|
185
|
-
- **Package**: packages/core/ | packages/mcp-server/ | packages/yata-client/
|
|
186
|
-
|
|
187
|
-
## C4 Model
|
|
188
|
-
|
|
189
|
-
### Level 1: Context
|
|
190
|
-
[Context diagram]
|
|
191
|
-
|
|
192
|
-
### Level 2: Container
|
|
193
|
-
[Container diagram]
|
|
194
|
-
|
|
195
|
-
### Level 3: Component
|
|
196
|
-
[Component diagram]
|
|
197
|
-
|
|
198
|
-
## Requirements Traceability
|
|
199
|
-
|
|
200
|
-
| Requirement | Component | Implementation |
|
|
201
|
-
|-------------|-----------|----------------|
|
|
202
|
-
| REQ-XXX-001 | cli/commands/{{feature}}.ts | {{Feature}}Command |
|
|
203
|
-
|
|
204
|
-
## API Design
|
|
205
|
-
|
|
206
|
-
### CLI Interface (Article II)
|
|
207
|
-
|
|
208
|
-
\`\`\`bash
|
|
209
|
-
npx musubix {{feature}} [options]
|
|
210
|
-
\`\`\`
|
|
211
|
-
|
|
212
|
-
### TypeScript Interface
|
|
213
|
-
|
|
214
|
-
\`\`\`typescript
|
|
215
|
-
export interface {{Feature}}Options {
|
|
216
|
-
// ...
|
|
217
|
-
}
|
|
218
|
-
\`\`\`
|
|
219
|
-
|
|
220
|
-
## ADR (Architecture Decision Records)
|
|
221
|
-
|
|
222
|
-
### ADR-001: [Decision Title]
|
|
223
|
-
|
|
224
|
-
**Status**: Accepted
|
|
225
|
-
**Context**: [Why was this decision needed?]
|
|
226
|
-
**Decision**: [What was decided?]
|
|
227
|
-
**Consequences**: [What are the results?]
|
|
228
|
-
|
|
229
|
-
## Traceability
|
|
230
|
-
|
|
231
|
-
- **Requirements**: REQ-{{FEATURE}}-001
|
|
232
|
-
- **Tasks**: TSK-{{FEATURE}}-001
|
|
233
|
-
- **Tests**: packages/core/__tests__/unit/{{feature}}.test.ts
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
### 7. MCP Tool Integration
|
|
239
|
-
|
|
240
|
-
Use MUSUBIX MCP tools:
|
|
241
|
-
|
|
242
|
-
```
|
|
243
|
-
sdd_create_design - Create design document
|
|
244
|
-
sdd_validate_design - Validate traceability
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
**MUSUBIX**: https://github.com/nahisaho/MUSUBIX
|
|
250
|
-
**Version**: 1.0.0
|