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.
Files changed (36) hide show
  1. package/.github/skills/build-fix/SKILL.md +124 -0
  2. package/.github/skills/checkpoint/SKILL.md +131 -0
  3. package/.github/skills/codemap/SKILL.md +120 -0
  4. package/.github/skills/codemap/templates/codemap-index.md +142 -0
  5. package/.github/skills/codemap/templates/package-codemap.md +160 -0
  6. package/.github/skills/context-optimizer/SKILL.md +109 -0
  7. package/.github/skills/context-optimizer/contexts/dev.md +40 -0
  8. package/.github/skills/context-optimizer/contexts/research.md +55 -0
  9. package/.github/skills/context-optimizer/contexts/review.md +49 -0
  10. package/.github/skills/e2e-runner/SKILL.md +145 -0
  11. package/.github/skills/eval-harness/SKILL.md +111 -0
  12. package/.github/skills/eval-harness/examples/capability-eval.md +158 -0
  13. package/.github/skills/eval-harness/examples/human-grader-template.md +326 -0
  14. package/.github/skills/eval-harness/examples/regression-eval.md +228 -0
  15. package/.github/skills/learning-hooks/SKILL.md +101 -0
  16. package/.github/skills/learning-hooks/templates/learned-skill-template.md +79 -0
  17. package/.github/skills/musubix-adr-generation/SKILL.md +33 -168
  18. package/.github/skills/musubix-best-practices/SKILL.md +46 -276
  19. package/.github/skills/musubix-c4-design/SKILL.md +48 -124
  20. package/.github/skills/musubix-code-generation/SKILL.md +46 -193
  21. package/.github/skills/musubix-domain-inference/SKILL.md +54 -168
  22. package/.github/skills/musubix-ears-validation/SKILL.md +49 -136
  23. package/.github/skills/musubix-sdd-workflow/SKILL.md +56 -178
  24. package/.github/skills/musubix-technical-writing/SKILL.md +45 -381
  25. package/.github/skills/musubix-test-generation/SKILL.md +52 -176
  26. package/.github/skills/musubix-traceability/SKILL.md +52 -99
  27. package/.github/skills/refactor-cleaner/SKILL.md +105 -0
  28. package/.github/skills/session-manager/SKILL.md +119 -0
  29. package/.github/skills/session-manager/scripts/session-end.sh +175 -0
  30. package/.github/skills/session-manager/scripts/session-start.sh +87 -0
  31. package/.github/skills/verification-loop/SKILL.md +111 -0
  32. package/.github/skills/verification-loop/scripts/verify.sh +305 -0
  33. package/AGENTS.md +231 -1034
  34. package/docs/CODEMAPS/CODEMAP.md +1 -0
  35. package/docs/adr/ADR-v3.7.0-001-everything-claude-code-integration.md +102 -0
  36. package/package.json +2 -2
@@ -0,0 +1,326 @@
1
+ # Human Grader Templates
2
+
3
+ ## Standard Human Grader Template
4
+
5
+ ```markdown
6
+ [HUMAN GRADE: <feature-name>]
7
+
8
+ Reviewer: @<username>
9
+ Date: YYYY-MM-DD
10
+ Review Type: <Initial|Re-review|Final>
11
+
12
+ ---
13
+
14
+ ## Checklist
15
+
16
+ ### Functional Requirements
17
+ - [ ] 仕様を満たしている
18
+ - [ ] 全ての機能が正常に動作する
19
+ - [ ] エッジケースが考慮されている
20
+ - [ ] エラーハンドリングが適切
21
+
22
+ ### Code Quality
23
+ - [ ] コードが読みやすい
24
+ - [ ] 命名規則が一貫している
25
+ - [ ] 重複コードがない(DRY原則)
26
+ - [ ] 適切な抽象化レベル
27
+
28
+ ### Compatibility
29
+ - [ ] 既存API互換性が維持されている
30
+ - [ ] 後方互換性が確保されている
31
+ - [ ] 破壊的変更がある場合は文書化されている
32
+
33
+ ### Security
34
+ - [ ] セキュリティ上の懸念がない
35
+ - [ ] 入力バリデーションが適切
36
+ - [ ] 機密データの取り扱いが安全
37
+ - [ ] 認証・認可が正しく実装されている
38
+
39
+ ### Performance
40
+ - [ ] パフォーマンス要件を満たす
41
+ - [ ] N+1クエリがない
42
+ - [ ] 適切なキャッシュ戦略
43
+ - [ ] メモリリークの懸念がない
44
+
45
+ ### Testing
46
+ - [ ] テストカバレッジが十分(80%以上)
47
+ - [ ] ユニットテストが存在する
48
+ - [ ] 統合テストが存在する
49
+ - [ ] エッジケースのテストがある
50
+
51
+ ### Documentation
52
+ - [ ] コードコメントが適切
53
+ - [ ] APIドキュメントが更新されている
54
+ - [ ] READMEが更新されている(必要な場合)
55
+
56
+ ---
57
+
58
+ ## Scores (1-5)
59
+
60
+ | Category | Score | Notes |
61
+ |-----------------|-------|--------------------------|
62
+ | Functionality | /5 | |
63
+ | Code Quality | /5 | |
64
+ | Maintainability | /5 | |
65
+ | Documentation | /5 | |
66
+
67
+ **Total: XX/20**
68
+
69
+ ---
70
+
71
+ ## Detailed Feedback
72
+
73
+ ### Strengths
74
+ 1.
75
+ 2.
76
+ 3.
77
+
78
+ ### Areas for Improvement
79
+ 1.
80
+ 2.
81
+ 3.
82
+
83
+ ### Critical Issues (if any)
84
+ -
85
+
86
+ ---
87
+
88
+ ## Verdict
89
+
90
+ **Decision: <PASS|FAIL|NEEDS_REVISION>**
91
+
92
+ ### If NEEDS_REVISION, required changes:
93
+ 1.
94
+ 2.
95
+
96
+ ### Follow-up Actions:
97
+ - [ ]
98
+ - [ ]
99
+
100
+ ---
101
+
102
+ **Signature:** [Reviewer Name]
103
+ **Date:** YYYY-MM-DD
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Specialized Templates
109
+
110
+ ### Security Review Template
111
+
112
+ ```markdown
113
+ [HUMAN GRADE: <feature-name> - Security Review]
114
+
115
+ Reviewer: @<security-reviewer>
116
+ Date: YYYY-MM-DD
117
+ Review Type: Security Audit
118
+
119
+ ---
120
+
121
+ ## Security Checklist
122
+
123
+ ### Authentication
124
+ - [ ] 認証メカニズムが適切
125
+ - [ ] セッション管理が安全
126
+ - [ ] パスワードポリシーが適切
127
+ - [ ] MFAの考慮
128
+
129
+ ### Authorization
130
+ - [ ] アクセス制御が正しく実装
131
+ - [ ] 権限昇格の脆弱性なし
132
+ - [ ] リソースベースの認可
133
+
134
+ ### Data Protection
135
+ - [ ] 機密データの暗号化
136
+ - [ ] PII/PHIの適切な取り扱い
137
+ - [ ] データの最小化原則
138
+
139
+ ### Input Validation
140
+ - [ ] 全入力のバリデーション
141
+ - [ ] SQLインジェクション対策
142
+ - [ ] XSS対策
143
+ - [ ] CSRF対策
144
+
145
+ ### API Security
146
+ - [ ] レート制限
147
+ - [ ] 適切なエラーメッセージ
148
+ - [ ] ログの適切な出力
149
+
150
+ ---
151
+
152
+ ## Risk Assessment
153
+
154
+ | Vulnerability Type | Risk Level | Status |
155
+ |-------------------|------------|--------|
156
+ | Injection | Low/Med/High | ✅/⚠️/❌ |
157
+ | Broken Auth | Low/Med/High | ✅/⚠️/❌ |
158
+ | XSS | Low/Med/High | ✅/⚠️/❌ |
159
+ | CSRF | Low/Med/High | ✅/⚠️/❌ |
160
+ | Broken Access | Low/Med/High | ✅/⚠️/❌ |
161
+
162
+ ---
163
+
164
+ ## Findings
165
+
166
+ ### Critical (Must Fix)
167
+ 1.
168
+
169
+ ### High (Should Fix)
170
+ 1.
171
+
172
+ ### Medium (Consider Fixing)
173
+ 1.
174
+
175
+ ### Low (Nice to Fix)
176
+ 1.
177
+
178
+ ---
179
+
180
+ **Security Verdict: <APPROVED|REJECTED|CONDITIONAL>**
181
+ ```
182
+
183
+ ---
184
+
185
+ ### Architecture Review Template
186
+
187
+ ```markdown
188
+ [HUMAN GRADE: <feature-name> - Architecture Review]
189
+
190
+ Reviewer: @<architect>
191
+ Date: YYYY-MM-DD
192
+ Review Type: Architecture Decision
193
+
194
+ ---
195
+
196
+ ## Architecture Checklist
197
+
198
+ ### Design Principles
199
+ - [ ] Single Responsibility Principle
200
+ - [ ] Open/Closed Principle
201
+ - [ ] Liskov Substitution Principle
202
+ - [ ] Interface Segregation Principle
203
+ - [ ] Dependency Inversion Principle
204
+
205
+ ### Patterns
206
+ - [ ] 適切なデザインパターンの使用
207
+ - [ ] アンチパターンの回避
208
+ - [ ] 過度な複雑さの回避
209
+
210
+ ### Scalability
211
+ - [ ] 水平スケーラビリティの考慮
212
+ - [ ] ボトルネックの特定と対策
213
+ - [ ] 負荷分散の戦略
214
+
215
+ ### Maintainability
216
+ - [ ] モジュール性
217
+ - [ ] テスタビリティ
218
+ - [ ] 変更容易性
219
+
220
+ ---
221
+
222
+ ## Architecture Decision Record
223
+
224
+ ### Context
225
+ <決定の背景>
226
+
227
+ ### Decision
228
+ <選択したアプローチ>
229
+
230
+ ### Consequences
231
+ <この決定の結果・影響>
232
+
233
+ ### Alternatives Considered
234
+ 1. <代替案1>: <却下理由>
235
+ 2. <代替案2>: <却下理由>
236
+
237
+ ---
238
+
239
+ **Architecture Verdict: <APPROVED|NEEDS_REVISION|REJECTED>**
240
+ ```
241
+
242
+ ---
243
+
244
+ ### UX Review Template
245
+
246
+ ```markdown
247
+ [HUMAN GRADE: <feature-name> - UX Review]
248
+
249
+ Reviewer: @<ux-designer>
250
+ Date: YYYY-MM-DD
251
+ Review Type: User Experience
252
+
253
+ ---
254
+
255
+ ## UX Checklist
256
+
257
+ ### Usability
258
+ - [ ] 直感的なUI
259
+ - [ ] 一貫したデザイン言語
260
+ - [ ] 適切なフィードバック
261
+ - [ ] エラー回復が容易
262
+
263
+ ### Accessibility
264
+ - [ ] キーボードナビゲーション
265
+ - [ ] スクリーンリーダー対応
266
+ - [ ] 色覚多様性への配慮
267
+ - [ ] 適切なコントラスト比
268
+
269
+ ### Performance Perception
270
+ - [ ] ローディング状態の表示
271
+ - [ ] スケルトンUI
272
+ - [ ] 楽観的更新
273
+ - [ ] 適切なアニメーション
274
+
275
+ ---
276
+
277
+ ## Heuristic Evaluation
278
+
279
+ | Heuristic | Score (1-5) |
280
+ |------------------------------|-------------|
281
+ | Visibility of System Status | /5 |
282
+ | Match with Real World | /5 |
283
+ | User Control & Freedom | /5 |
284
+ | Consistency & Standards | /5 |
285
+ | Error Prevention | /5 |
286
+ | Recognition over Recall | /5 |
287
+ | Flexibility & Efficiency | /5 |
288
+ | Aesthetic & Minimal Design | /5 |
289
+ | Help Users with Errors | /5 |
290
+ | Help & Documentation | /5 |
291
+
292
+ **Total: XX/50**
293
+
294
+ ---
295
+
296
+ **UX Verdict: <APPROVED|NEEDS_IMPROVEMENT|REJECTED>**
297
+ ```
298
+
299
+ ---
300
+
301
+ ## Usage Guidelines
302
+
303
+ ### When to Use Human Grader
304
+
305
+ 1. **主観的判断が必要な場合**
306
+ - UI/UXの品質評価
307
+ - コードの読みやすさ
308
+ - 設計の妥当性
309
+
310
+ 2. **ドメイン専門知識が必要な場合**
311
+ - ビジネスロジックの正確性
312
+ - 法規制への準拠
313
+ - 業界標準への適合
314
+
315
+ 3. **自動化が困難な場合**
316
+ - クロスブラウザ互換性
317
+ - アクセシビリティ
318
+ - パフォーマンス体感
319
+
320
+ ### Best Practices
321
+
322
+ - 複数のレビュアーによる評価を推奨
323
+ - チェックリストは事前に合意して一貫性を保つ
324
+ - 主観的判断には必ず理由を明記
325
+ - NEEDS_REVISIONの場合は具体的な改善点を列挙
326
+ - フォローアップアクションを明確に定義
@@ -0,0 +1,228 @@
1
+ # Regression Eval Examples
2
+
3
+ ## Example 1: User Service Regression
4
+
5
+ ```markdown
6
+ [REGRESSION EVAL: user-service]
7
+
8
+ Baseline: abc1234 (v3.6.0 release)
9
+ Date: 2026-01-25
10
+
11
+ Tests:
12
+ - user.create.test.ts: PASS
13
+ - user.update.test.ts: PASS
14
+ - user.delete.test.ts: FAIL
15
+ - user.search.test.ts: PASS
16
+ - user.auth.test.ts: PASS
17
+
18
+ Result: 4/5 passed (previously 5/5)
19
+
20
+ Regression Detected: Yes
21
+
22
+ Failed Test Details:
23
+ - user.delete.test.ts:
24
+ - Error: "ValidationError: Cannot delete user with active sessions"
25
+ - Line: 45
26
+ - Expected: 204 No Content
27
+ - Actual: 400 Bad Request
28
+
29
+ Root Cause:
30
+ - 新しいバリデーションルールが追加され、アクティブセッションを持つユーザーの削除が禁止された
31
+
32
+ Resolution:
33
+ - [ ] テストを更新して新しい挙動を反映
34
+ - [ ] または、バリデーションルールの見直し
35
+
36
+ Notes:
37
+ - この変更は意図的なセキュリティ強化
38
+ - テストケースの更新が必要
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Example 2: API Endpoint Regression
44
+
45
+ ```markdown
46
+ [REGRESSION EVAL: api-endpoints]
47
+
48
+ Baseline: def5678 (v3.5.0 release)
49
+ Date: 2026-01-25
50
+
51
+ Tests:
52
+ - api.auth.test.ts: PASS
53
+ - api.users.test.ts: PASS
54
+ - api.products.test.ts: PASS
55
+ - api.orders.test.ts: PASS
56
+ - api.payments.test.ts: PASS
57
+
58
+ Result: 5/5 passed (previously 5/5)
59
+
60
+ Regression Detected: No
61
+
62
+ Performance Comparison:
63
+ | Endpoint | Baseline | Current | Change |
64
+ |---------------|----------|---------|--------|
65
+ | GET /users | 45ms | 42ms | -6.7% |
66
+ | POST /orders | 120ms | 115ms | -4.2% |
67
+ | GET /products | 30ms | 28ms | -6.7% |
68
+
69
+ Notes:
70
+ - パフォーマンスの改善を確認
71
+ - 機能的な回帰なし
72
+ ```
73
+
74
+ ---
75
+
76
+ ## Example 3: Database Migration Regression
77
+
78
+ ```markdown
79
+ [REGRESSION EVAL: database-schema]
80
+
81
+ Baseline: ghi9012 (pre-migration)
82
+ Date: 2026-01-25
83
+
84
+ Tests:
85
+ - migration.up.test.ts: PASS
86
+ - migration.down.test.ts: PASS
87
+ - schema.integrity.test.ts: FAIL
88
+ - data.consistency.test.ts: PASS
89
+ - index.performance.test.ts: PASS
90
+
91
+ Result: 4/5 passed (previously 5/5)
92
+
93
+ Regression Detected: Yes
94
+
95
+ Failed Test Details:
96
+ - schema.integrity.test.ts:
97
+ - Error: "Foreign key constraint violation"
98
+ - Table: orders
99
+ - Constraint: fk_orders_users
100
+ - Reason: 孤立したorder レコードが存在
101
+
102
+ Root Cause:
103
+ - マイグレーション前に外部キー制約がなかったため、不整合データが存在
104
+ - マイグレーションで制約を追加したことで検出
105
+
106
+ Resolution:
107
+ - [x] 不整合データのクリーンアップスクリプトを実行
108
+ - [x] 制約を段階的に適用(まずソフト制約、その後ハード制約)
109
+ - [ ] データ検証の自動化テストを追加
110
+
111
+ Notes:
112
+ - 本番環境適用前にデータクリーンアップが必須
113
+ ```
114
+
115
+ ---
116
+
117
+ ## Example 4: Frontend Component Regression
118
+
119
+ ```markdown
120
+ [REGRESSION EVAL: ui-components]
121
+
122
+ Baseline: jkl3456 (design-system-v2)
123
+ Date: 2026-01-25
124
+
125
+ Tests:
126
+ - button.visual.test.ts: PASS
127
+ - input.visual.test.ts: PASS
128
+ - modal.visual.test.ts: FAIL
129
+ - table.visual.test.ts: PASS
130
+ - form.visual.test.ts: PASS
131
+ - navigation.visual.test.ts: PASS
132
+
133
+ Result: 5/6 passed (previously 6/6)
134
+
135
+ Regression Detected: Yes
136
+
137
+ Failed Test Details:
138
+ - modal.visual.test.ts:
139
+ - Error: "Visual diff exceeded threshold (15% vs 5% allowed)"
140
+ - Screenshot: .reports/screenshots/modal-diff.png
141
+ - Affected area: Close button position
142
+
143
+ Root Cause:
144
+ - Flexboxのalign-items変更によりボタン位置が変化
145
+
146
+ Resolution:
147
+ - [ ] CSSの修正
148
+ - [ ] または、ベースライン画像の更新(意図的変更の場合)
149
+
150
+ Notes:
151
+ - デザインチームに確認が必要
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Example 5: Security Regression
157
+
158
+ ```markdown
159
+ [REGRESSION EVAL: security-scan]
160
+
161
+ Baseline: mno7890 (security-audit-q4)
162
+ Date: 2026-01-25
163
+
164
+ Tests:
165
+ - auth.security.test.ts: PASS
166
+ - xss.prevention.test.ts: PASS
167
+ - csrf.protection.test.ts: PASS
168
+ - sql.injection.test.ts: PASS
169
+ - dependency.audit.test.ts: FAIL
170
+
171
+ Result: 4/5 passed (previously 5/5)
172
+
173
+ Regression Detected: Yes
174
+
175
+ Failed Test Details:
176
+ - dependency.audit.test.ts:
177
+ - Error: "2 high severity vulnerabilities found"
178
+ - Packages:
179
+ 1. lodash@4.17.20 → CVE-2021-23337 (Prototype Pollution)
180
+ 2. axios@0.21.0 → CVE-2021-3749 (ReDoS)
181
+
182
+ Resolution:
183
+ - [x] lodash を 4.17.21 に更新
184
+ - [x] axios を 0.21.4 に更新
185
+ - [x] npm audit を再実行して確認
186
+
187
+ Notes:
188
+ - 依存関係の自動更新を検討
189
+ - Dependabotの設定を確認
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Template for New Regression Eval
195
+
196
+ ```markdown
197
+ [REGRESSION EVAL: <feature-name>]
198
+
199
+ Baseline: <Git SHA または チェックポイント名> (<説明>)
200
+ Date: YYYY-MM-DD
201
+
202
+ Tests:
203
+ - <test-file-1>: <PASS|FAIL>
204
+ - <test-file-2>: <PASS|FAIL>
205
+ - <test-file-3>: <PASS|FAIL>
206
+ - <test-file-4>: <PASS|FAIL>
207
+
208
+ Result: X/Y passed (previously Y/Y)
209
+
210
+ Regression Detected: <Yes|No>
211
+
212
+ Failed Test Details (if any):
213
+ - <test-file>:
214
+ - Error: "<エラーメッセージ>"
215
+ - Line: <行番号>
216
+ - Expected: <期待値>
217
+ - Actual: <実際の値>
218
+
219
+ Root Cause:
220
+ - <回帰の原因分析>
221
+
222
+ Resolution:
223
+ - [ ] <解決策1>
224
+ - [ ] <解決策2>
225
+
226
+ Notes:
227
+ - <追加の注記>
228
+ ```
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: learning-hooks
3
+ description: セッションから再利用可能なパターンを自動抽出し、学習済みスキルとして保存。
4
+ license: MIT
5
+ version: 1.1.0
6
+ triggers:
7
+ - セッション終了(10メッセージ以上)
8
+ - エラー解決後
9
+ - ユーザー修正後
10
+ ---
11
+
12
+ # Learning Hooks
13
+
14
+ > **要約**: セッションから再利用可能なパターンを自動抽出し、次回以降に活用。
15
+
16
+ ## 🔄 トリガーと即時アクション
17
+
18
+ ### パターン抽出 (REQ-LH-001)
19
+
20
+ **WHEN** セッション終了時(条件: メッセージ10件以上 AND 15分以上)
21
+ **DO** 以下のパターンを抽出
22
+
23
+ | タイプ | 説明 | 抽出条件 |
24
+ |--------|------|---------|
25
+ | `error_resolution` | エラー解決 | エラー→修正→解消の流れ |
26
+ | `user_corrections` | ユーザー修正 | AI提案を修正→承認 |
27
+ | `workarounds` | 回避策 | ライブラリ既知問題への対処 |
28
+ | `debugging_techniques` | デバッグ技法 | 問題調査・解決手法 |
29
+ | `project_specific` | プロジェクト固有 | アーキテクチャ、命名規則 |
30
+
31
+ ### 抽出フロー
32
+
33
+ ```
34
+ セッション終了 → 条件チェック → 会話分析 → パターン候補 → 信頼度計算(≥0.7) → 保存
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 📁 Learned Skills Storage (REQ-LH-002)
40
+
41
+ **保存先**: `~/.musubix/skills/learned/<pattern-name>/SKILL.md`
42
+
43
+ **フォーマット**:
44
+ ```markdown
45
+ # [パターン名]
46
+
47
+ **Extracted:** [日付]
48
+ **Context:** [適用条件]
49
+ **Confidence:** [信頼度]
50
+
51
+ ## Problem
52
+ [解決する問題]
53
+
54
+ ## Solution
55
+ [パターン/技法/回避策]
56
+
57
+ ## Example
58
+ [コード例]
59
+
60
+ ## When to Use
61
+ [トリガー条件]
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 🚫 Pattern Ignore List (REQ-LH-003)
67
+
68
+ **抽出しない**:
69
+ - 単純なタイポ修正
70
+ - 一時的な問題の修正
71
+ - 外部API障害への対応
72
+
73
+ ---
74
+
75
+ ## 💡 抽出例
76
+
77
+ ### error_resolution
78
+ ```markdown
79
+ # TypeScript TS2322 型不一致の解決
80
+
81
+ **Problem:** `Type 'string' is not assignable to type 'number'`
82
+ **Solution:** 明示的な型変換 `Number(value)` または型ガード追加
83
+ **When:** TS2322エラーが発生し、型変換が必要な場合
84
+ ```
85
+
86
+ ### workaround
87
+ ```markdown
88
+ # Vitest ESMモード設定
89
+
90
+ **Problem:** ESMモジュールでVitestが動作しない
91
+ **Solution:** `vitest.config.ts`に`deps.inline: [...]`を追加
92
+ **When:** ESMパッケージをテストする際
93
+ ```
94
+
95
+ ---
96
+
97
+ ## トレーサビリティ
98
+
99
+ - REQ-LH-001: Continuous Learning Evaluation
100
+ - REQ-LH-002: Learned Skills Storage
101
+ - REQ-LH-003: Pattern Ignore List
@@ -0,0 +1,79 @@
1
+ # Learned Skill Template
2
+
3
+ 学習されたスキルのテンプレートです。
4
+
5
+ ---
6
+
7
+ # [Descriptive Pattern Name]
8
+
9
+ **Extracted:** [Date: YYYY-MM-DD]
10
+ **Source:** [Session ID or Project]
11
+ **Context:** [When this applies]
12
+ **Confidence:** [0.0-1.0]
13
+ **Category:** [error_resolution|user_corrections|workarounds|debugging_techniques|project_specific]
14
+
15
+ ---
16
+
17
+ ## Problem
18
+
19
+ [What problem this solves]
20
+
21
+ - 発生条件
22
+ - エラーメッセージ(該当する場合)
23
+ - 影響範囲
24
+
25
+ ---
26
+
27
+ ## Solution
28
+
29
+ [The pattern/technique/workaround]
30
+
31
+ ### 手順
32
+
33
+ 1. ステップ1
34
+ 2. ステップ2
35
+ 3. ステップ3
36
+
37
+ ### 注意点
38
+
39
+ - 注意点1
40
+ - 注意点2
41
+
42
+ ---
43
+
44
+ ## Example
45
+
46
+ ```typescript
47
+ // コード例(該当する場合)
48
+ ```
49
+
50
+ ---
51
+
52
+ ## When to Use
53
+
54
+ [Trigger conditions]
55
+
56
+ - トリガー1
57
+ - トリガー2
58
+ - トリガー3
59
+
60
+ ---
61
+
62
+ ## Related Patterns
63
+
64
+ - [関連パターン1]
65
+ - [関連パターン2]
66
+
67
+ ---
68
+
69
+ ## Metadata
70
+
71
+ ```yaml
72
+ extracted_from: session-2026-01-25
73
+ usage_count: 0
74
+ last_used: null
75
+ success_rate: null
76
+ tags:
77
+ - tag1
78
+ - tag2
79
+ ```