@nahisaho/shikigami 1.19.1 → 1.19.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/prompts/sdd-change-apply.prompt.md +43 -218
- package/.github/prompts/sdd-change-archive.prompt.md +52 -194
- package/.github/prompts/sdd-change-init.prompt.md +53 -215
- package/.github/prompts/sdd-design.prompt.md +43 -205
- package/.github/prompts/sdd-implement.prompt.md +56 -337
- package/.github/prompts/sdd-requirements.prompt.md +39 -148
- package/.github/prompts/sdd-review.prompt.md +55 -108
- package/.github/prompts/sdd-steering.prompt.md +51 -220
- package/.github/prompts/sdd-tasks.prompt.md +50 -208
- package/.github/prompts/sdd-validate.prompt.md +47 -249
- package/.github/prompts/shikigami-citation-formatter.prompt.md +29 -136
- package/.github/prompts/shikigami-comparison-table.prompt.md +40 -82
- package/.github/prompts/shikigami-executive-sync.prompt.md +41 -99
- package/.github/prompts/shikigami-framework-analysis.prompt.md +45 -129
- package/.github/prompts/shikigami-full-research.prompt.md +52 -84
- package/.github/prompts/shikigami-manifest.prompt.md +48 -140
- package/.github/prompts/shikigami-phase-gate.prompt.md +68 -167
- package/.github/prompts/shikigami-purpose-discovery.prompt.md +36 -15
- package/.github/prompts/shikigami-report-writing.prompt.md +34 -18
- package/.github/prompts/shikigami-trend-visualization.prompt.md +33 -154
- package/.github/skills/musubix-adr-generation/SKILL.md +32 -167
- package/.github/skills/musubix-best-practices/SKILL.md +53 -276
- package/.github/skills/musubix-c4-design/SKILL.md +42 -122
- package/.github/skills/musubix-code-generation/SKILL.md +49 -185
- package/.github/skills/musubix-domain-inference/SKILL.md +44 -166
- package/.github/skills/musubix-ears-validation/SKILL.md +77 -110
- package/.github/skills/musubix-sdd-workflow/SKILL.md +50 -191
- package/.github/skills/musubix-technical-writing/SKILL.md +93 -360
- package/.github/skills/musubix-test-generation/SKILL.md +42 -174
- package/.github/skills/musubix-traceability/SKILL.md +74 -78
- package/.github/skills/shikigami-consulting-framework/SKILL.md +93 -1046
- package/.github/skills/shikigami-deep-research/SKILL.md +62 -769
- package/.github/skills/shikigami-planner/SKILL.md +86 -1676
- package/.github/skills/shikigami-writing/SKILL.md +102 -2123
- package/.vscode/mcp.json +4 -0
- package/mcp-server/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,203 +1,59 @@
|
|
|
1
1
|
# MUSUBIX Change Apply Command
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 承認済み変更提案をコードベースに適用
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## WHEN/DO トリガー
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx musubix change apply add-2fa
|
|
15
|
-
npx musubix change apply migrate-to-graphql
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Your Task
|
|
19
|
-
|
|
20
|
-
Implement the changes defined in the change proposal, following constitutional governance.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Process
|
|
25
|
-
|
|
26
|
-
### 1. Read Change Proposal
|
|
27
|
-
|
|
28
|
-
**IMPORTANT**: Read the approved change proposal first:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
storage/changes/{{CHANGE_NAME}}-proposal.md
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Extract**:
|
|
35
|
-
|
|
36
|
-
- ADDED requirements
|
|
37
|
-
- MODIFIED requirements
|
|
38
|
-
- REMOVED requirements
|
|
39
|
-
- Implementation plan
|
|
40
|
-
|
|
41
|
-
**Verify Approval**:
|
|
42
|
-
|
|
43
|
-
- Status must be "Approved" (not "Proposed")
|
|
44
|
-
- If not approved, abort and notify user
|
|
9
|
+
| WHEN | DO |
|
|
10
|
+
|------|-----|
|
|
11
|
+
| `npx musubix change apply <change-name>` 実行時 | 変更実装 |
|
|
12
|
+
| 提案ステータスが"Proposed"の場合 | エラー→承認必要 |
|
|
45
13
|
|
|
46
14
|
---
|
|
47
15
|
|
|
48
|
-
|
|
16
|
+
## プロセス
|
|
49
17
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
18
|
+
| Step | Action | Output |
|
|
19
|
+
|------|--------|--------|
|
|
20
|
+
| 1 | 変更提案読込 | Status: Approved確認 |
|
|
21
|
+
| 2 | Feature branch作成 | `feature/{{CHANGE}}` |
|
|
22
|
+
| 3 | 要件更新 | ADDED/MODIFIED/REMOVED適用 |
|
|
23
|
+
| 4 | 設計更新 | DESファイル更新 |
|
|
24
|
+
| 5 | Test-First実装(Article III) | 🔴→💚→💙 |
|
|
25
|
+
| 6 | 検証 | テスト・型・Lint |
|
|
26
|
+
| 7 | レポート生成 | `{{CHANGE}}-implementation.md` |
|
|
55
27
|
|
|
56
28
|
---
|
|
57
29
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Follow the phases defined in the change proposal:
|
|
61
|
-
|
|
62
|
-
#### Phase 1: Preparation
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# Create feature branch
|
|
66
|
-
git checkout -b feature/{{CHANGE_NAME}}
|
|
67
|
-
|
|
68
|
-
# Create implementation tracking document
|
|
69
|
-
touch storage/changes/{{CHANGE_NAME}}-implementation.md
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
#### Phase 2: Update Requirements
|
|
73
|
-
|
|
74
|
-
For ADDED requirements:
|
|
75
|
-
- Create new requirement files in `storage/specs/`
|
|
76
|
-
|
|
77
|
-
For MODIFIED requirements:
|
|
78
|
-
- Update existing requirement files
|
|
79
|
-
- Mark version change
|
|
80
|
-
|
|
81
|
-
For REMOVED requirements:
|
|
82
|
-
- Archive to `storage/archive/`
|
|
83
|
-
- Update traceability
|
|
84
|
-
|
|
85
|
-
#### Phase 3: Update Design
|
|
86
|
-
|
|
87
|
-
- Update `storage/specs/DES-*.md` files
|
|
88
|
-
- Add new ADRs for significant changes
|
|
89
|
-
|
|
90
|
-
#### Phase 4: Implement Code
|
|
91
|
-
|
|
92
|
-
Follow Test-First (Article III):
|
|
93
|
-
|
|
94
|
-
1. **Write Tests (RED)**
|
|
95
|
-
```typescript
|
|
96
|
-
// packages/core/__tests__/unit/{{feature}}.test.ts
|
|
97
|
-
describe('REQ-{{COMPONENT}}-NEW-001: [New Feature]', () => {
|
|
98
|
-
it('should [new behavior]', () => {
|
|
99
|
-
// Test new functionality
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
2. **Implement (GREEN)**
|
|
105
|
-
```typescript
|
|
106
|
-
// packages/core/src/{{feature}}/service.ts
|
|
107
|
-
// Minimal implementation to pass tests
|
|
108
|
-
```
|
|
30
|
+
## 前提条件チェック
|
|
109
31
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
32
|
+
| Check | Required |
|
|
33
|
+
|-------|----------|
|
|
34
|
+
| 提案ファイル存在 | `storage/changes/{{CHANGE}}-proposal.md` |
|
|
35
|
+
| ステータス | "Approved" |
|
|
36
|
+
| 影響分析完了 | Breaking Changes把握 |
|
|
113
37
|
|
|
114
38
|
---
|
|
115
39
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
For gradual rollout:
|
|
40
|
+
## Feature Flag(段階的ロールアウト用)
|
|
119
41
|
|
|
120
42
|
```typescript
|
|
121
|
-
//
|
|
122
|
-
|
|
43
|
+
// config/feature-flags.ts
|
|
123
44
|
export const FEATURE_FLAGS = {
|
|
124
|
-
enable_{{feature}}: {
|
|
125
|
-
enabled: false, // Start disabled
|
|
126
|
-
description: '{{CHANGE_DESCRIPTION}}',
|
|
127
|
-
},
|
|
128
|
-
} as const;
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
```typescript
|
|
132
|
-
// Usage in code
|
|
133
|
-
import { FEATURE_FLAGS } from '../config/feature-flags.js';
|
|
134
|
-
|
|
135
|
-
if (FEATURE_FLAGS.enable_{{feature}}.enabled) {
|
|
136
|
-
// New implementation
|
|
137
|
-
} else {
|
|
138
|
-
// Old implementation
|
|
139
|
-
}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
### 5. Update CLI (Article II)
|
|
145
|
-
|
|
146
|
-
If CLI changes:
|
|
147
|
-
|
|
148
|
-
```typescript
|
|
149
|
-
// packages/core/src/cli/commands/{{feature}}.ts
|
|
150
|
-
|
|
151
|
-
export function register{{Feature}}Command(program: Command): void {
|
|
152
|
-
program
|
|
153
|
-
.command('{{feature}}')
|
|
154
|
-
.description('{{New/Updated description}}')
|
|
155
|
-
.option('--new-option', 'New option from change')
|
|
156
|
-
.action(async (options) => {
|
|
157
|
-
// Updated implementation
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
### 6. Update MCP Tools
|
|
165
|
-
|
|
166
|
-
If MCP tools change:
|
|
167
|
-
|
|
168
|
-
```typescript
|
|
169
|
-
// packages/mcp-server/src/tools/{{feature}}-tools.ts
|
|
170
|
-
|
|
171
|
-
export const {{feature}}Tool: ToolDefinition = {
|
|
172
|
-
name: 'sdd_{{feature}}',
|
|
173
|
-
description: '{{Updated description}}',
|
|
174
|
-
inputSchema: {
|
|
175
|
-
type: 'object',
|
|
176
|
-
properties: {
|
|
177
|
-
// Updated schema
|
|
178
|
-
newProperty: {
|
|
179
|
-
type: 'string',
|
|
180
|
-
description: 'New property from change',
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
handler: async (args) => {
|
|
185
|
-
// Updated implementation
|
|
186
|
-
},
|
|
45
|
+
enable_{{feature}}: { enabled: false, description: '...' },
|
|
187
46
|
};
|
|
188
47
|
```
|
|
189
48
|
|
|
190
49
|
---
|
|
191
50
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
**Output**: `storage/changes/{{CHANGE_NAME}}-implementation.md`
|
|
51
|
+
## 出力テンプレート
|
|
195
52
|
|
|
196
53
|
```markdown
|
|
197
54
|
# Implementation Report: {{CHANGE_NAME}}
|
|
198
55
|
|
|
199
|
-
**Date**: {{DATE}}
|
|
200
|
-
**Status**: In Progress / Completed
|
|
56
|
+
**Date**: {{DATE}} | **Status**: In Progress/Completed
|
|
201
57
|
|
|
202
58
|
## Summary
|
|
203
59
|
|
|
@@ -207,77 +63,46 @@ export const {{feature}}Tool: ToolDefinition = {
|
|
|
207
63
|
| Design Updated | ✅ |
|
|
208
64
|
| Tests Written | ✅ |
|
|
209
65
|
| Code Implemented | ✅ |
|
|
210
|
-
| Documentation
|
|
66
|
+
| Documentation | ⏳ |
|
|
211
67
|
|
|
212
68
|
## Changes Made
|
|
213
69
|
|
|
214
70
|
### Files Created
|
|
215
|
-
|
|
216
|
-
- `packages/core/src/{{feature}}/new-module.ts`
|
|
217
|
-
- `packages/core/__tests__/unit/new-module.test.ts`
|
|
71
|
+
- `packages/core/src/{{feature}}/new.ts`
|
|
218
72
|
|
|
219
73
|
### Files Modified
|
|
220
|
-
|
|
221
74
|
- `packages/core/src/{{feature}}/service.ts`
|
|
222
|
-
- `packages/mcp-server/src/tools/{{feature}}-tools.ts`
|
|
223
75
|
|
|
224
76
|
### Files Deleted
|
|
225
|
-
|
|
226
77
|
- `packages/core/src/{{feature}}/deprecated.ts`
|
|
227
78
|
|
|
228
79
|
## Test Results
|
|
80
|
+
Tests: X passed | Coverage: XX%
|
|
229
81
|
|
|
230
|
-
|
|
231
|
-
npm test
|
|
232
|
-
|
|
233
|
-
✓ packages/core/__tests__/unit/{{feature}}.test.ts (10 tests)
|
|
234
|
-
✓ packages/core/__tests__/integration/{{feature}}.integration.test.ts (5 tests)
|
|
235
|
-
|
|
236
|
-
Test Suites: 2 passed
|
|
237
|
-
Tests: 15 passed
|
|
238
|
-
Coverage: 87%
|
|
239
|
-
\`\`\`
|
|
240
|
-
|
|
241
|
-
## Traceability Verification
|
|
82
|
+
## Traceability
|
|
242
83
|
|
|
243
84
|
| Requirement | Design | Code | Test |
|
|
244
85
|
|-------------|--------|------|------|
|
|
245
86
|
| REQ-XXX-NEW-001 | DES-XXX-001 | ✅ | ✅ |
|
|
246
|
-
| REQ-XXX-001 (mod) | DES-XXX-001 | ✅ | ✅ |
|
|
247
|
-
|
|
248
|
-
## Deployment Notes
|
|
249
|
-
|
|
250
|
-
1. Run migrations (if any)
|
|
251
|
-
2. Enable feature flag
|
|
252
|
-
3. Monitor metrics
|
|
253
|
-
|
|
254
|
-
## Rollback Instructions
|
|
255
|
-
|
|
256
|
-
1. Disable feature flag
|
|
257
|
-
2. Revert to previous release
|
|
258
87
|
```
|
|
259
88
|
|
|
260
89
|
---
|
|
261
90
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
Run all validations:
|
|
91
|
+
## 検証コマンド
|
|
265
92
|
|
|
266
93
|
```bash
|
|
267
|
-
#
|
|
268
|
-
npm
|
|
269
|
-
|
|
270
|
-
#
|
|
271
|
-
npm run typecheck
|
|
272
|
-
|
|
273
|
-
# Lint
|
|
274
|
-
npm run lint
|
|
275
|
-
|
|
276
|
-
# Traceability
|
|
277
|
-
npx musubix trace validate
|
|
94
|
+
npm test # テスト
|
|
95
|
+
npm run typecheck # 型チェック
|
|
96
|
+
npm run lint # Lint
|
|
97
|
+
npx musubix trace validate # トレーサビリティ
|
|
278
98
|
```
|
|
279
99
|
|
|
280
100
|
---
|
|
281
101
|
|
|
282
|
-
|
|
283
|
-
|
|
102
|
+
## Quality Checklist
|
|
103
|
+
|
|
104
|
+
- [ ] Proposal status is "Approved"
|
|
105
|
+
- [ ] Feature branch created
|
|
106
|
+
- [ ] Test-First followed (Article III)
|
|
107
|
+
- [ ] All tests pass
|
|
108
|
+
- [ ] Traceability maintained (Article V)
|
|
@@ -1,241 +1,99 @@
|
|
|
1
1
|
# MUSUBIX Change Archive Command
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 完了した変更提案をアーカイブ
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## WHEN/DO トリガー
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx musubix change archive add-2fa
|
|
15
|
-
npx musubix change archive migrate-to-graphql
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Your Task
|
|
19
|
-
|
|
20
|
-
Archive the change proposal and implementation, update documentation, and clean up.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Process
|
|
25
|
-
|
|
26
|
-
### 1. Verify Change Completion
|
|
27
|
-
|
|
28
|
-
**Read Implementation Report**:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
storage/changes/{{CHANGE_NAME}}-implementation.md
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Verify Status**:
|
|
35
|
-
|
|
36
|
-
- [ ] Implementation report exists
|
|
37
|
-
- [ ] All requirements implemented
|
|
38
|
-
- [ ] Tests passing
|
|
39
|
-
- [ ] Feature flag enabled (or deprecated feature removed)
|
|
40
|
-
|
|
41
|
-
**If Not Complete**:
|
|
42
|
-
|
|
43
|
-
```markdown
|
|
44
|
-
⚠️ **Change not ready for archival**
|
|
45
|
-
|
|
46
|
-
Status Check:
|
|
47
|
-
- [ ] Implementation complete
|
|
48
|
-
- [ ] Tests passing
|
|
49
|
-
- [ ] Deployed
|
|
50
|
-
- [ ] Stable period passed
|
|
51
|
-
|
|
52
|
-
Please complete all steps before archiving.
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
### 2. Collect Final Metrics
|
|
58
|
-
|
|
59
|
-
```markdown
|
|
60
|
-
## Final Metrics: {{CHANGE_NAME}}
|
|
61
|
-
|
|
62
|
-
### Test Results
|
|
63
|
-
|
|
64
|
-
- Unit Tests: XX passed
|
|
65
|
-
- Integration Tests: XX passed
|
|
66
|
-
- Coverage: XX%
|
|
67
|
-
|
|
68
|
-
### Code Quality
|
|
69
|
-
|
|
70
|
-
- Lint: ✅ No errors
|
|
71
|
-
- TypeScript: ✅ No errors
|
|
72
|
-
|
|
73
|
-
### Traceability
|
|
74
|
-
|
|
75
|
-
- Requirements Coverage: 100%
|
|
76
|
-
- Design Coverage: 100%
|
|
77
|
-
- Test Coverage: XX%
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
### 3. Archive Documents
|
|
83
|
-
|
|
84
|
-
Move change documents to archive:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# Create archive directory
|
|
88
|
-
mkdir -p storage/archive/changes/{{CHANGE_NAME}}
|
|
89
|
-
|
|
90
|
-
# Move change documents
|
|
91
|
-
mv storage/changes/{{CHANGE_NAME}}-proposal.md storage/archive/changes/{{CHANGE_NAME}}/
|
|
92
|
-
mv storage/changes/{{CHANGE_NAME}}-implementation.md storage/archive/changes/{{CHANGE_NAME}}/
|
|
93
|
-
```
|
|
9
|
+
| WHEN | DO |
|
|
10
|
+
|------|-----|
|
|
11
|
+
| `npx musubix change archive <change-name>` 実行時 | アーカイブ実行 |
|
|
12
|
+
| 実装レポートが未完了の場合 | エラー→完了待ち |
|
|
94
13
|
|
|
95
14
|
---
|
|
96
15
|
|
|
97
|
-
|
|
16
|
+
## プロセス
|
|
98
17
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
| Requirement | Design | Task | Code | Test |
|
|
109
|
-
|-------------|--------|------|------|------|
|
|
110
|
-
| REQ-XXX-NEW-001 | DES-XXX-001 | TSK-XXX-001 | service.ts | service.test.ts |
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Update CHANGELOG.md**:
|
|
114
|
-
|
|
115
|
-
```markdown
|
|
116
|
-
## [1.x.x] - {{DATE}}
|
|
117
|
-
|
|
118
|
-
### Added
|
|
119
|
-
- {{Feature description}} (CHG-{{CHANGE}}-001)
|
|
120
|
-
|
|
121
|
-
### Changed
|
|
122
|
-
- {{Modified feature}} (CHG-{{CHANGE}}-001)
|
|
123
|
-
|
|
124
|
-
### Removed
|
|
125
|
-
- {{Deprecated feature}} (CHG-{{CHANGE}}-001)
|
|
126
|
-
```
|
|
18
|
+
| Step | Action | Output |
|
|
19
|
+
|------|--------|--------|
|
|
20
|
+
| 1 | 完了状態確認 | Implementation Report検証 |
|
|
21
|
+
| 2 | 最終メトリクス収集 | テスト・カバレッジ |
|
|
22
|
+
| 3 | ドキュメント移動 | `storage/archive/changes/{{CHANGE}}/` |
|
|
23
|
+
| 4 | CHANGELOG更新 | Added/Changed/Removed |
|
|
24
|
+
| 5 | Feature Flag削除(該当時) | コードクリーンアップ |
|
|
25
|
+
| 6 | サマリ生成 | SUMMARY.md |
|
|
127
26
|
|
|
128
27
|
---
|
|
129
28
|
|
|
130
|
-
|
|
29
|
+
## 完了チェックリスト
|
|
131
30
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
// enabled: true,
|
|
140
|
-
// description: '{{CHANGE_DESCRIPTION}}',
|
|
141
|
-
// },
|
|
142
|
-
|
|
143
|
-
// Update code to remove flag checks
|
|
144
|
-
```
|
|
31
|
+
| Check | Required |
|
|
32
|
+
|-------|----------|
|
|
33
|
+
| Implementation report存在 | ✅ |
|
|
34
|
+
| 全要件実装済み | ✅ |
|
|
35
|
+
| テスト全パス | ✅ |
|
|
36
|
+
| デプロイ完了 | ✅ |
|
|
37
|
+
| 安定期間経過 | ✅ |
|
|
145
38
|
|
|
146
39
|
---
|
|
147
40
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
**Output**: `storage/archive/changes/{{CHANGE_NAME}}/SUMMARY.md`
|
|
41
|
+
## 出力テンプレート
|
|
151
42
|
|
|
152
43
|
```markdown
|
|
153
|
-
#
|
|
44
|
+
# Archive Summary: {{CHANGE_NAME}}
|
|
154
45
|
|
|
155
|
-
**
|
|
156
|
-
**Archived**: {{DATE}}
|
|
46
|
+
**ID**: CHG-{{CHANGE}}-001 | **Archived**: {{DATE}}
|
|
157
47
|
**Duration**: X weeks
|
|
158
48
|
|
|
159
|
-
## Overview
|
|
160
|
-
|
|
161
|
-
**Change Type**: Feature / Enhancement / Refactor
|
|
162
|
-
**Packages Affected**: packages/core/, packages/mcp-server/
|
|
163
|
-
|
|
164
49
|
## Final State
|
|
165
50
|
|
|
166
51
|
### Requirements
|
|
167
|
-
|
|
168
52
|
| ID | Title | Status |
|
|
169
53
|
|----|-------|--------|
|
|
170
|
-
| REQ-XXX-NEW-001 | [
|
|
171
|
-
| REQ-XXX-001 | [Modified Feature] | Updated |
|
|
172
|
-
|
|
173
|
-
### Files Changed
|
|
174
|
-
|
|
175
|
-
**Created**: X files
|
|
176
|
-
**Modified**: X files
|
|
177
|
-
**Deleted**: X files
|
|
54
|
+
| REQ-XXX-NEW-001 | [Title] | Implemented |
|
|
178
55
|
|
|
179
|
-
###
|
|
56
|
+
### Metrics
|
|
57
|
+
- Tests: XX passed
|
|
58
|
+
- Coverage: XX%
|
|
59
|
+
- Lint: ✅
|
|
180
60
|
|
|
181
|
-
|
|
182
|
-
|
|
61
|
+
## Files Changed
|
|
62
|
+
**Created**: X | **Modified**: X | **Deleted**: X
|
|
183
63
|
|
|
184
64
|
## Documents Archived
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
3. SUMMARY.md (this file)
|
|
65
|
+
1. {{CHANGE}}-proposal.md
|
|
66
|
+
2. {{CHANGE}}-implementation.md
|
|
67
|
+
3. SUMMARY.md
|
|
189
68
|
|
|
190
69
|
## Lessons Learned
|
|
191
|
-
|
|
192
|
-
1. [Lesson 1]
|
|
193
|
-
2. [Lesson 2]
|
|
194
|
-
|
|
195
|
-
## Related Changes
|
|
196
|
-
|
|
197
|
-
- CHG-XXX-001: [Related change]
|
|
70
|
+
1. [Lesson]
|
|
198
71
|
```
|
|
199
72
|
|
|
200
73
|
---
|
|
201
74
|
|
|
202
|
-
|
|
75
|
+
## クリーンアップ
|
|
203
76
|
|
|
204
77
|
```bash
|
|
205
|
-
#
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
# Verify archive is complete
|
|
209
|
-
ls storage/archive/changes/{{CHANGE_NAME}}/
|
|
210
|
-
# Expected:
|
|
211
|
-
# - {{CHANGE_NAME}}-proposal.md
|
|
212
|
-
# - {{CHANGE_NAME}}-implementation.md
|
|
213
|
-
# - SUMMARY.md
|
|
78
|
+
# アーカイブ移動
|
|
79
|
+
mkdir -p storage/archive/changes/{{CHANGE}}
|
|
80
|
+
mv storage/changes/{{CHANGE}}-*.md storage/archive/changes/{{CHANGE}}/
|
|
214
81
|
|
|
215
82
|
# Git commit
|
|
216
|
-
git add storage/archive/
|
|
217
|
-
git add storage/traceability/
|
|
218
|
-
git add CHANGELOG.md
|
|
83
|
+
git add storage/archive/ CHANGELOG.md
|
|
219
84
|
git commit -m "chore: archive change CHG-{{CHANGE}}-001"
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
### 8. Final Verification
|
|
225
85
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
grep -r "CHG-{{CHANGE}}-001" packages/
|
|
229
|
-
# Should only find documentation references
|
|
230
|
-
|
|
231
|
-
# Ensure tests still pass
|
|
232
|
-
npm test
|
|
233
|
-
|
|
234
|
-
# Ensure build succeeds
|
|
235
|
-
npm run build
|
|
86
|
+
# 検証
|
|
87
|
+
npm test && npm run build
|
|
236
88
|
```
|
|
237
89
|
|
|
238
90
|
---
|
|
239
91
|
|
|
240
|
-
|
|
241
|
-
|
|
92
|
+
## Quality Checklist
|
|
93
|
+
|
|
94
|
+
- [ ] Implementation complete
|
|
95
|
+
- [ ] All tests pass
|
|
96
|
+
- [ ] Documents archived
|
|
97
|
+
- [ ] CHANGELOG updated
|
|
98
|
+
- [ ] Feature flags removed (if any)
|
|
99
|
+
- [ ] No orphaned references
|