musubix 3.6.1 → 3.7.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/.github/skills/build-fix/SKILL.md +124 -0
- package/.github/skills/checkpoint/SKILL.md +131 -0
- package/.github/skills/codemap/SKILL.md +120 -0
- package/.github/skills/codemap/templates/codemap-index.md +142 -0
- package/.github/skills/codemap/templates/package-codemap.md +160 -0
- package/.github/skills/context-optimizer/SKILL.md +109 -0
- package/.github/skills/context-optimizer/contexts/dev.md +40 -0
- package/.github/skills/context-optimizer/contexts/research.md +55 -0
- package/.github/skills/context-optimizer/contexts/review.md +49 -0
- package/.github/skills/e2e-runner/SKILL.md +145 -0
- package/.github/skills/eval-harness/SKILL.md +111 -0
- package/.github/skills/eval-harness/examples/capability-eval.md +158 -0
- package/.github/skills/eval-harness/examples/human-grader-template.md +326 -0
- package/.github/skills/eval-harness/examples/regression-eval.md +228 -0
- package/.github/skills/learning-hooks/SKILL.md +101 -0
- package/.github/skills/learning-hooks/templates/learned-skill-template.md +79 -0
- package/.github/skills/musubix-adr-generation/SKILL.md +33 -168
- package/.github/skills/musubix-best-practices/SKILL.md +46 -276
- package/.github/skills/musubix-c4-design/SKILL.md +48 -124
- package/.github/skills/musubix-code-generation/SKILL.md +46 -193
- package/.github/skills/musubix-domain-inference/SKILL.md +54 -168
- package/.github/skills/musubix-ears-validation/SKILL.md +49 -136
- package/.github/skills/musubix-sdd-workflow/SKILL.md +56 -178
- package/.github/skills/musubix-technical-writing/SKILL.md +45 -381
- package/.github/skills/musubix-test-generation/SKILL.md +52 -176
- package/.github/skills/musubix-traceability/SKILL.md +52 -99
- package/.github/skills/refactor-cleaner/SKILL.md +105 -0
- package/.github/skills/session-manager/SKILL.md +119 -0
- package/.github/skills/session-manager/scripts/session-end.sh +175 -0
- package/.github/skills/session-manager/scripts/session-start.sh +87 -0
- package/.github/skills/verification-loop/SKILL.md +111 -0
- package/.github/skills/verification-loop/scripts/verify.sh +305 -0
- package/AGENTS.md +231 -1034
- package/docs/CODEMAPS/CODEMAP.md +1 -0
- package/docs/adr/ADR-v3.7.0-001-everything-claude-code-integration.md +102 -0
- package/package.json +2 -2
|
@@ -1,184 +1,58 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: musubix-sdd-workflow
|
|
3
|
-
description:
|
|
3
|
+
description: MUSUBIX SDD開発ワークフローガイド。10憲法条項に従った開発プロセスに使用。
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# SDD Workflow Skill
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
10憲法条項に基づくSDD (Specification-Driven Development) ワークフロー。
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
1. `steering/`を確認
|
|
14
|
+
2. `steering/rules/constitution.md`の10条項を確認
|
|
15
|
+
3. `storage/specs/`の既存specを確認
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
2. Check `steering/rules/constitution.md` for the 9 constitutional articles
|
|
17
|
-
3. Review existing specs in `storage/specs/`
|
|
17
|
+
## 5 Phases
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
| Phase | 内容 | 成果物 |
|
|
20
|
+
|-------|------|--------|
|
|
21
|
+
| **1** | 要件定義 | REQ-* (EARS形式) |
|
|
22
|
+
| **2** | 設計 | DES-* (C4モデル) |
|
|
23
|
+
| **3** | タスク分解 | TSK-* (≤4時間) |
|
|
24
|
+
| **4** | 実装 | Code + Tests (TDD) |
|
|
25
|
+
| **5** | 完了 | CHANGELOG, Docs |
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
## Phase Flow
|
|
22
28
|
|
|
23
|
-
#### Step 1: Create Requirements Document (Article IV - EARS Format)
|
|
24
|
-
|
|
25
|
-
Create requirements using EARS patterns:
|
|
26
|
-
|
|
27
|
-
```markdown
|
|
28
|
-
# REQ-[CATEGORY]-[NUMBER]
|
|
29
|
-
|
|
30
|
-
**種別**: [UBIQUITOUS|EVENT-DRIVEN|STATE-DRIVEN|UNWANTED|OPTIONAL]
|
|
31
|
-
**優先度**: [P0|P1|P2]
|
|
32
|
-
|
|
33
|
-
**要件**:
|
|
34
|
-
[EARS形式の要件文]
|
|
35
|
-
|
|
36
|
-
**トレーサビリティ**: DES-XXX, TEST-XXX
|
|
37
29
|
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- **Event-driven**: `WHEN [event], THE [system] SHALL [response]`
|
|
42
|
-
- **State-driven**: `WHILE [state], THE [system] SHALL [response]`
|
|
43
|
-
- **Unwanted**: `THE [system] SHALL NOT [behavior]`
|
|
44
|
-
- **Optional**: `IF [condition], THEN THE [system] SHALL [response]`
|
|
45
|
-
|
|
46
|
-
#### Step 2-3: Requirements Review Loop
|
|
47
|
-
|
|
48
|
-
Review requirements for:
|
|
49
|
-
- EARS format compliance
|
|
50
|
-
- Completeness and clarity
|
|
51
|
-
- Testability
|
|
52
|
-
- Traceability readiness
|
|
53
|
-
|
|
54
|
-
**Repeat until no issues remain.**
|
|
55
|
-
|
|
56
|
-
### Phase 2: Design
|
|
57
|
-
|
|
58
|
-
#### Step 4: Create Design Document (Article VII - Design Patterns)
|
|
59
|
-
|
|
60
|
-
Create C4 model design documents:
|
|
61
|
-
|
|
62
|
-
1. **Context Level**: System boundaries and external actors
|
|
63
|
-
2. **Container Level**: Technology choices and container composition
|
|
64
|
-
3. **Component Level**: Internal structure of containers
|
|
65
|
-
4. **Code Level**: Implementation details
|
|
66
|
-
|
|
67
|
-
Design document template:
|
|
68
|
-
```markdown
|
|
69
|
-
# DES-[CATEGORY]-[NUMBER]
|
|
70
|
-
|
|
71
|
-
## トレーサビリティ
|
|
72
|
-
- 要件: REQ-XXX
|
|
73
|
-
|
|
74
|
-
## C4モデル
|
|
75
|
-
### Level 2: Container
|
|
76
|
-
[PlantUML diagram]
|
|
77
|
-
|
|
78
|
-
## コンポーネント設計
|
|
79
|
-
[Component details]
|
|
30
|
+
Phase 1 → Review → Phase 2 → Review → Phase 3 → Review → Phase 4 → Phase 5
|
|
31
|
+
↑___________↓ ↑___________↓ ↑___________↓
|
|
32
|
+
修正ループ 修正ループ 修正ループ
|
|
80
33
|
```
|
|
81
34
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Review design for:
|
|
85
|
-
- Requirement coverage
|
|
86
|
-
- SOLID principles compliance
|
|
87
|
-
- Design pattern appropriateness
|
|
88
|
-
- Traceability to requirements
|
|
89
|
-
|
|
90
|
-
**Repeat until no issues remain.**
|
|
91
|
-
|
|
92
|
-
### Phase 3: Task Decomposition
|
|
35
|
+
**⛔ 禁止**: Phase 2 → Phase 4 の直接遷移(必ずPhase 3を経由)
|
|
93
36
|
|
|
94
|
-
|
|
37
|
+
## WHEN → DO
|
|
95
38
|
|
|
96
|
-
|
|
39
|
+
| WHEN | DO |
|
|
40
|
+
|------|-----|
|
|
41
|
+
| 機能開発開始 | Phase 1から順に実行 |
|
|
42
|
+
| レビューで問題発見 | 修正して再レビュー |
|
|
43
|
+
| Phase 3完了前に実装要求 | 「Phase 3が必要」と回答 |
|
|
44
|
+
| 実装フェーズ | TDD (Red→Green→Blue) |
|
|
97
45
|
|
|
98
|
-
|
|
99
|
-
# TSK-[CATEGORY]-[NUMBER]
|
|
46
|
+
## Article X: Implementation Prerequisites
|
|
100
47
|
|
|
101
|
-
|
|
102
|
-
## 関連要件: REQ-XXX
|
|
48
|
+
**絶対ルール**: 要件・設計・タスクが承認されていない限り、実装禁止。
|
|
103
49
|
|
|
104
|
-
## タスク内容
|
|
105
|
-
[Implementation task description]
|
|
106
|
-
|
|
107
|
-
## 受入基準
|
|
108
|
-
- [ ] Criterion 1
|
|
109
|
-
- [ ] Criterion 2
|
|
110
|
-
|
|
111
|
-
## 見積もり
|
|
112
|
-
[4時間以内を推奨]
|
|
113
50
|
```
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Review tasks for:
|
|
118
|
-
- Appropriate granularity (≤4 hours)
|
|
119
|
-
- Clear acceptance criteria
|
|
120
|
-
- Complete traceability chain
|
|
121
|
-
|
|
122
|
-
**Repeat until no issues remain.**
|
|
123
|
-
|
|
124
|
-
### Phase 4: Implementation
|
|
125
|
-
|
|
126
|
-
#### Step 10: Coding & Unit Testing (Article III - Test-First)
|
|
127
|
-
|
|
128
|
-
For each task, follow Red-Green-Blue cycle:
|
|
129
|
-
|
|
130
|
-
1. **Red**: Write failing test first
|
|
131
|
-
2. **Green**: Write minimal code to pass
|
|
132
|
-
3. **Blue**: Refactor while keeping tests green
|
|
133
|
-
|
|
134
|
-
Add requirement IDs in code comments:
|
|
135
|
-
```typescript
|
|
136
|
-
/**
|
|
137
|
-
* @see REQ-INT-001 - Neuro-Symbolic Integration
|
|
138
|
-
*/
|
|
51
|
+
⛔ 禁止: Phase 2 → Phase 4
|
|
52
|
+
✅ 必須: Phase 1 → 2 → 3 → 4
|
|
139
53
|
```
|
|
140
54
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
When required by the task:
|
|
144
|
-
- Run integration tests
|
|
145
|
-
- Verify component interactions
|
|
146
|
-
- Ensure end-to-end flows work correctly
|
|
147
|
-
|
|
148
|
-
### Phase 5: Documentation & Completion
|
|
149
|
-
|
|
150
|
-
#### Step 12: Update CHANGELOG.md
|
|
151
|
-
|
|
152
|
-
Document all changes:
|
|
153
|
-
- New features
|
|
154
|
-
- Bug fixes
|
|
155
|
-
- Breaking changes
|
|
156
|
-
- Migration notes
|
|
157
|
-
|
|
158
|
-
#### Step 13: Update Other Documentation
|
|
159
|
-
|
|
160
|
-
If necessary, update:
|
|
161
|
-
- README.md
|
|
162
|
-
- USER-GUIDE.md
|
|
163
|
-
- API-REFERENCE.md
|
|
164
|
-
- AGENTS.md
|
|
165
|
-
|
|
166
|
-
#### Step 14: Git Commit & Push
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
git add .
|
|
170
|
-
git commit -m "feat/fix/chore: description"
|
|
171
|
-
git push
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## Traceability Validation (Article V)
|
|
175
|
-
|
|
176
|
-
Ensure 100% traceability throughout:
|
|
177
|
-
```
|
|
178
|
-
REQ-* → DES-* → TSK-* → Code → Test
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## CLI Commands
|
|
55
|
+
## CLI
|
|
182
56
|
|
|
183
57
|
```bash
|
|
184
58
|
# Requirements
|
|
@@ -187,31 +61,35 @@ npx musubix requirements validate <file>
|
|
|
187
61
|
|
|
188
62
|
# Design
|
|
189
63
|
npx musubix design generate <file>
|
|
190
|
-
npx musubix design
|
|
191
|
-
npx musubix design traceability # REQ↔DES traceability (v3.1.0)
|
|
64
|
+
npx musubix design traceability
|
|
192
65
|
|
|
193
|
-
# Code
|
|
66
|
+
# Code
|
|
194
67
|
npx musubix codegen generate <file>
|
|
195
|
-
npx musubix codegen status <spec>
|
|
68
|
+
npx musubix codegen status <spec>
|
|
196
69
|
|
|
197
|
-
#
|
|
70
|
+
# Scaffold
|
|
198
71
|
npx musubix scaffold domain-model <name>
|
|
199
|
-
npx musubix scaffold domain-model <name> -v "Price,Email"
|
|
200
|
-
npx musubix scaffold domain-model <name> -s "Order,Task"
|
|
72
|
+
npx musubix scaffold domain-model <name> -v "Price,Email"
|
|
73
|
+
npx musubix scaffold domain-model <name> -s "Order,Task"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Traceability Chain
|
|
201
77
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
npx musubix trace validate
|
|
78
|
+
```
|
|
79
|
+
REQ-* → DES-* → TSK-* → Code → Tests
|
|
205
80
|
```
|
|
206
81
|
|
|
207
|
-
##
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
82
|
+
## 出力例
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
┌─────────────────────────────────────────┐
|
|
86
|
+
│ Workflow Status │
|
|
87
|
+
├─────────────────────────────────────────┤
|
|
88
|
+
│ Phase 1: ✅ Requirements (3 REQs) │
|
|
89
|
+
│ Phase 2: ✅ Design (1 DES) │
|
|
90
|
+
│ Phase 3: ✅ Tasks (5 TSKs) │
|
|
91
|
+
│ Phase 4: 🔄 Implementation (2/5 done) │
|
|
92
|
+
│ Phase 5: ⏸️ Pending │
|
|
93
|
+
│ Traceability: 100% │
|
|
94
|
+
└─────────────────────────────────────────┘
|
|
95
|
+
```
|