create-ai-project 1.18.0 → 1.18.2
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/.claude/agents-en/code-reviewer.md +11 -1
- package/.claude/agents-en/code-verifier.md +67 -27
- package/.claude/agents-en/document-reviewer.md +4 -2
- package/.claude/agents-en/integration-test-reviewer.md +10 -0
- package/.claude/agents-en/investigator.md +20 -17
- package/.claude/agents-en/prd-creator.md +56 -30
- package/.claude/agents-en/quality-fixer-frontend.md +15 -5
- package/.claude/agents-en/quality-fixer.md +15 -5
- package/.claude/agents-en/requirement-analyzer.md +5 -1
- package/.claude/agents-en/rule-advisor.md +9 -0
- package/.claude/agents-en/scope-discoverer.md +61 -29
- package/.claude/agents-en/security-reviewer.md +4 -0
- package/.claude/agents-en/solver.md +6 -2
- package/.claude/agents-en/task-executor-frontend.md +9 -0
- package/.claude/agents-en/task-executor.md +9 -0
- package/.claude/agents-en/technical-designer-frontend.md +60 -126
- package/.claude/agents-en/technical-designer.md +72 -111
- package/.claude/agents-en/verifier.md +13 -13
- package/.claude/agents-ja/acceptance-test-generator.md +6 -0
- package/.claude/agents-ja/code-reviewer.md +17 -1
- package/.claude/agents-ja/code-verifier.md +67 -27
- package/.claude/agents-ja/design-sync.md +5 -0
- package/.claude/agents-ja/document-reviewer.md +4 -2
- package/.claude/agents-ja/integration-test-reviewer.md +14 -0
- package/.claude/agents-ja/investigator.md +20 -17
- package/.claude/agents-ja/prd-creator.md +56 -30
- package/.claude/agents-ja/quality-fixer-frontend.md +15 -5
- package/.claude/agents-ja/quality-fixer.md +15 -5
- package/.claude/agents-ja/requirement-analyzer.md +9 -1
- package/.claude/agents-ja/rule-advisor.md +9 -0
- package/.claude/agents-ja/scope-discoverer.md +60 -28
- package/.claude/agents-ja/security-reviewer.md +4 -0
- package/.claude/agents-ja/solver.md +6 -2
- package/.claude/agents-ja/task-executor-frontend.md +9 -0
- package/.claude/agents-ja/task-executor.md +9 -0
- package/.claude/agents-ja/technical-designer-frontend.md +67 -134
- package/.claude/agents-ja/technical-designer.md +72 -111
- package/.claude/agents-ja/verifier.md +13 -13
- package/.claude/commands-en/diagnose.md +26 -7
- package/.claude/commands-en/reverse-engineer.md +29 -17
- package/.claude/commands-en/update-doc.md +10 -5
- package/.claude/commands-ja/diagnose.md +26 -7
- package/.claude/commands-ja/reverse-engineer.md +29 -17
- package/.claude/commands-ja/update-doc.md +10 -5
- package/CHANGELOG.md +60 -0
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ Use AskUserQuestion to confirm:
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
Phase 1: PRD Generation
|
|
42
|
-
Step 1: Scope Discovery (unified, single pass)
|
|
42
|
+
Step 1: Scope Discovery (unified, single pass → group into PRD units → human review)
|
|
43
43
|
Step 2-5: Per-unit loop (Generation → Verification → Review → Revision)
|
|
44
44
|
|
|
45
45
|
Phase 2: Design Doc Generation (if requested)
|
|
@@ -72,12 +72,15 @@ prompt: |
|
|
|
72
72
|
**Quality Gate**:
|
|
73
73
|
- At least one unit discovered → proceed
|
|
74
74
|
- No units discovered → ask user for hints
|
|
75
|
+
- `$STEP_1_OUTPUT.prdUnits` exists
|
|
76
|
+
- All `sourceUnits` across `prdUnits` (flattened, deduplicated) match the set of `discoveredUnits` IDs — no unit missing, no unit duplicated
|
|
77
|
+
- Each discovered unit's `unitInventory` has at least one non-empty category (routes, testFiles, or publicExports). Units with all three empty indicate incomplete discovery — re-run scope-discoverer with focus on that unit's relatedFiles
|
|
75
78
|
|
|
76
|
-
**Human Review Point** (if enabled): Present
|
|
79
|
+
**Human Review Point** (if enabled): Present `$STEP_1_OUTPUT.prdUnits` with their source unit mapping. The user confirms, adjusts grouping, or excludes units from scope. This is the most important review point — incorrect grouping cascades into all downstream documents.
|
|
77
80
|
|
|
78
81
|
### Step 2-5: Per-Unit Processing
|
|
79
82
|
|
|
80
|
-
**FOR** each unit in `$STEP_1_OUTPUT.
|
|
83
|
+
**FOR** each unit in `$STEP_1_OUTPUT.prdUnits` **(sequential, one unit at a time):**
|
|
81
84
|
|
|
82
85
|
#### Step 2: PRD Generation
|
|
83
86
|
|
|
@@ -90,13 +93,14 @@ prompt: |
|
|
|
90
93
|
Operation Mode: reverse-engineer
|
|
91
94
|
External Scope Provided: true
|
|
92
95
|
|
|
93
|
-
Feature: $
|
|
94
|
-
Description: $
|
|
95
|
-
Related Files: $
|
|
96
|
-
Entry Points: $
|
|
96
|
+
Feature: $PRD_UNIT_NAME (from $STEP_1_OUTPUT)
|
|
97
|
+
Description: $PRD_UNIT_DESCRIPTION
|
|
98
|
+
Related Files: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
99
|
+
Entry Points: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
97
100
|
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
Use provided scope as investigation starting point.
|
|
102
|
+
If tracing entry points reveals files outside this scope, include them.
|
|
103
|
+
Create final version PRD based on thorough code investigation.
|
|
100
104
|
```
|
|
101
105
|
|
|
102
106
|
**Store output as**: `$STEP_2_OUTPUT` (PRD path)
|
|
@@ -113,14 +117,16 @@ prompt: |
|
|
|
113
117
|
|
|
114
118
|
doc_type: prd
|
|
115
119
|
document_path: $STEP_2_OUTPUT
|
|
116
|
-
code_paths: $UNIT_RELATED_FILES (from $STEP_1_OUTPUT)
|
|
117
120
|
verbose: false
|
|
118
121
|
```
|
|
119
122
|
|
|
123
|
+
Note: `code_paths` is intentionally NOT provided. The verifier independently discovers code scope from the document, ensuring independent verification not constrained by scope-discoverer's output.
|
|
124
|
+
|
|
120
125
|
**Store output as**: `$STEP_3_OUTPUT`
|
|
121
126
|
|
|
122
127
|
**Quality Gate**:
|
|
123
|
-
- consistencyScore >= 70 → proceed to review
|
|
128
|
+
- consistencyScore >= 70 AND verifiableClaimCount >= 20 → proceed to review
|
|
129
|
+
- consistencyScore >= 70 BUT verifiableClaimCount < 20 → re-run verifier (investigation too shallow)
|
|
124
130
|
- consistencyScore < 70 → flag for detailed review
|
|
125
131
|
|
|
126
132
|
#### Step 4: Review
|
|
@@ -195,13 +201,16 @@ prompt: |
|
|
|
195
201
|
|
|
196
202
|
### Step 6: Design Doc Scope Mapping
|
|
197
203
|
|
|
198
|
-
Use `$STEP_1_OUTPUT` (
|
|
204
|
+
**No additional discovery required.** Use `$STEP_1_OUTPUT.discoveredUnits` (implementation-granularity units) for technical profiles. Use `$STEP_1_OUTPUT.prdUnits[].sourceUnits` to trace which discovered units belong to each PRD unit.
|
|
205
|
+
|
|
206
|
+
When fullstack=Yes, determine per unit whether backend / frontend / both Design Docs are needed based on path patterns in the unit's `relatedFiles` and `technicalProfile.primaryModules` (refer to project structure defined in technical-spec skill).
|
|
199
207
|
|
|
200
208
|
Map `$STEP_1_OUTPUT` units to Design Doc generation targets, carrying forward:
|
|
201
209
|
- `technicalProfile.primaryModules` → Primary Files
|
|
202
210
|
- `technicalProfile.publicInterfaces` → Public Interfaces
|
|
203
211
|
- `dependencies` → Dependencies
|
|
204
212
|
- `relatedFiles` → Scope boundary
|
|
213
|
+
- `unitInventory` → Unit Inventory (routes, test files, public exports)
|
|
205
214
|
|
|
206
215
|
**Store output as**: `$STEP_6_OUTPUT`
|
|
207
216
|
|
|
@@ -225,17 +234,18 @@ subagent_type: technical-designer
|
|
|
225
234
|
prompt: |
|
|
226
235
|
Create Design Doc for the following feature based on existing code.
|
|
227
236
|
|
|
228
|
-
Operation Mode:
|
|
237
|
+
Operation Mode: reverse-engineer
|
|
229
238
|
|
|
230
239
|
Feature: $UNIT_NAME (from $STEP_6_OUTPUT)
|
|
231
240
|
Description: $UNIT_DESCRIPTION
|
|
232
241
|
Primary Files: $UNIT_PRIMARY_MODULES
|
|
233
242
|
Public Interfaces: $UNIT_PUBLIC_INTERFACES
|
|
234
243
|
Dependencies: $UNIT_DEPENDENCIES
|
|
244
|
+
Unit Inventory: $UNIT_INVENTORY (routes, test files, public exports from scope discovery)
|
|
235
245
|
|
|
236
246
|
Parent PRD: $APPROVED_PRD_PATH
|
|
237
247
|
|
|
238
|
-
Document current architecture.
|
|
248
|
+
Document current architecture as-is. Use Unit Inventory as a completeness baseline — all routes and exports should be accounted for in the Design Doc.
|
|
239
249
|
```
|
|
240
250
|
|
|
241
251
|
**Store output as**: `$STEP_7_OUTPUT`
|
|
@@ -247,20 +257,21 @@ subagent_type: technical-designer-frontend
|
|
|
247
257
|
prompt: |
|
|
248
258
|
Create a frontend Design Doc for the following feature based on existing code.
|
|
249
259
|
|
|
250
|
-
Operation Mode:
|
|
260
|
+
Operation Mode: reverse-engineer
|
|
251
261
|
|
|
252
262
|
Feature: $UNIT_NAME (from $STEP_6_OUTPUT)
|
|
253
263
|
Description: $UNIT_DESCRIPTION
|
|
254
264
|
Primary Files: $UNIT_PRIMARY_MODULES
|
|
255
265
|
Public Interfaces: $UNIT_PUBLIC_INTERFACES
|
|
256
266
|
Dependencies: $UNIT_DEPENDENCIES
|
|
267
|
+
Unit Inventory: $UNIT_INVENTORY
|
|
257
268
|
|
|
258
269
|
Parent PRD: $APPROVED_PRD_PATH
|
|
259
270
|
Backend Design Doc: $STEP_7_OUTPUT
|
|
260
271
|
|
|
261
272
|
Reference backend Design Doc for API contracts.
|
|
262
273
|
Focus on: component hierarchy, state management, UI interactions, data fetching.
|
|
263
|
-
Document current architecture.
|
|
274
|
+
Document current architecture as-is. Use Unit Inventory as completeness baseline.
|
|
264
275
|
```
|
|
265
276
|
|
|
266
277
|
**Store output as**: `$STEP_7_FRONTEND_OUTPUT`
|
|
@@ -277,10 +288,11 @@ prompt: |
|
|
|
277
288
|
|
|
278
289
|
doc_type: design-doc
|
|
279
290
|
document_path: $STEP_7_OUTPUT or $STEP_7_FRONTEND_OUTPUT
|
|
280
|
-
code_paths: $UNIT_PRIMARY_MODULES
|
|
281
291
|
verbose: false
|
|
282
292
|
```
|
|
283
293
|
|
|
294
|
+
Note: `code_paths` is intentionally NOT provided. The verifier independently discovers code scope from the document.
|
|
295
|
+
|
|
284
296
|
**Store output as**: `$STEP_8_OUTPUT`
|
|
285
297
|
|
|
286
298
|
#### Step 9: Review
|
|
@@ -24,7 +24,7 @@ description: Update existing design documents (Design Doc / PRD / ADR) with revi
|
|
|
24
24
|
```
|
|
25
25
|
Target document → [Stop: Confirm changes]
|
|
26
26
|
↓
|
|
27
|
-
technical-designer / prd-creator (update mode)
|
|
27
|
+
technical-designer / technical-designer-frontend / prd-creator (update mode)
|
|
28
28
|
↓
|
|
29
29
|
document-reviewer → [Stop: Review approval]
|
|
30
30
|
↓ (Design Doc only)
|
|
@@ -66,15 +66,20 @@ ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
|
|
|
66
66
|
| Multiple candidates found | Present options with AskUserQuestion |
|
|
67
67
|
| No documents found | Report and end (suggest /design instead) |
|
|
68
68
|
|
|
69
|
-
### Step 2: Document Type Determination
|
|
69
|
+
### Step 2: Document Type and Layer Determination
|
|
70
70
|
|
|
71
|
-
Determine type from document path:
|
|
71
|
+
Determine type from document path, then determine the layer to select the correct update agent:
|
|
72
72
|
|
|
73
73
|
| Path Pattern | Type | Update Agent | Notes |
|
|
74
74
|
|-------------|------|--------------|-------|
|
|
75
|
-
| `docs/design/*.md` | Design Doc | technical-designer
|
|
75
|
+
| `docs/design/*.md` | Design Doc | technical-designer or technical-designer-frontend | See layer detection below |
|
|
76
76
|
| `docs/prd/*.md` | PRD | prd-creator | - |
|
|
77
|
-
| `docs/adr/*.md` | ADR | technical-designer
|
|
77
|
+
| `docs/adr/*.md` | ADR | technical-designer or technical-designer-frontend | See layer detection below |
|
|
78
|
+
|
|
79
|
+
**Layer detection** (for Design Doc and ADR):
|
|
80
|
+
Read the document and determine its layer from content signals:
|
|
81
|
+
- **Frontend** (→ technical-designer-frontend): Document title/scope mentions React, components, UI, frontend; or file contains component hierarchy, state management, UI interactions
|
|
82
|
+
- **Backend** (→ technical-designer): All other cases (API, data layer, business logic, infrastructure)
|
|
78
83
|
|
|
79
84
|
**ADR Update Guidance**:
|
|
80
85
|
- **Minor changes** (clarification, typo fix, small scope adjustment): Update the existing ADR file
|
|
@@ -81,7 +81,18 @@ rule-advisorの出力から以下を確認:
|
|
|
81
81
|
Agentツールでinvestigatorを呼び出す:
|
|
82
82
|
- `subagent_type`: "investigator"
|
|
83
83
|
- `description`: "問題情報の収集"
|
|
84
|
-
- `prompt`:
|
|
84
|
+
- `prompt`: |
|
|
85
|
+
以下の現象について、関連する情報を網羅的に収集してください。
|
|
86
|
+
|
|
87
|
+
現象: [ユーザーが報告した問題]
|
|
88
|
+
|
|
89
|
+
問題の本質: [ステップ0.3のtaskEssence]
|
|
90
|
+
調査観点: [ステップ0.4のinvestigationFocus]
|
|
91
|
+
|
|
92
|
+
[変更失敗の場合、追加で以下を含める:]
|
|
93
|
+
変更内容: [何を変更したか]
|
|
94
|
+
影響箇所: [何が壊れたか]
|
|
95
|
+
共通コンポーネント: [原因変更と影響箇所の共通点]
|
|
85
96
|
|
|
86
97
|
**期待される出力**: 証拠マトリクス、比較分析結果、因果追跡結果、未探索領域のリスト、調査の限界
|
|
87
98
|
|
|
@@ -90,12 +101,20 @@ Agentツールでinvestigatorを呼び出す:
|
|
|
90
101
|
調査出力を確認:
|
|
91
102
|
|
|
92
103
|
**品質チェック**(出力JSONに以下が含まれているか):
|
|
93
|
-
- [ ] comparisonAnalysis
|
|
94
|
-
- [ ]
|
|
95
|
-
- [ ]
|
|
96
|
-
- [ ]
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
- [ ] `comparisonAnalysis`が存在し、`normalImplementation`がnullでない(比較対象が見つかった)、または「正常動作する実装が見つからなかった」と明示的に記録されている
|
|
105
|
+
- [ ] 各仮説の`causalChain`が停止条件に到達(コード変更で対処可能 / 設計判断レベル / 外部制約)
|
|
106
|
+
- [ ] 各仮説の`causeCategory`が以下のいずれか: typo / logic_error / missing_constraint / design_gap / external_factor
|
|
107
|
+
- [ ] `investigationSources`が少なくとも3つの異なるソースタイプ(code, history, dependency, config, document, external)をカバー
|
|
108
|
+
- [ ] ステップ0.4で提供した`investigationFocus`の項目が調査に含まれている
|
|
109
|
+
- [ ] 各仮説の`supportingEvidence`に具体的なファイルや場所を引用した`source`フィールドを持つエントリが最低1つある
|
|
110
|
+
|
|
111
|
+
**品質不足の場合**: 不足項目を明示してinvestigatorを再実行:
|
|
112
|
+
- `prompt`: |
|
|
113
|
+
以下の不足点に焦点を当てて再調査してください:
|
|
114
|
+
- 不足: [品質チェックから具体的な不足項目を列挙]
|
|
115
|
+
|
|
116
|
+
前回の調査結果(コンテキスト用、調査済み領域の再調査は不要):
|
|
117
|
+
[前回の調査JSON]
|
|
99
118
|
|
|
100
119
|
**design_gap検出時のエスカレーション**:
|
|
101
120
|
|
|
@@ -39,7 +39,7 @@ AskUserQuestionで以下を確認:
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
フェーズ1: PRD生成
|
|
42
|
-
ステップ1:
|
|
42
|
+
ステップ1: スコープ発見(統合、シングルパス → PRDユニットグルーピング → 人間レビュー)
|
|
43
43
|
ステップ2-5: ユニット毎ループ(生成 → 検証 → レビュー → 修正)
|
|
44
44
|
|
|
45
45
|
フェーズ2: Design Doc生成(要求された場合)
|
|
@@ -72,12 +72,15 @@ prompt: |
|
|
|
72
72
|
**品質ゲート**:
|
|
73
73
|
- 1つ以上のユニットが発見された → 続行
|
|
74
74
|
- ユニットが発見されない → ユーザーにヒントを求める
|
|
75
|
+
- `$STEP_1_OUTPUT.prdUnits`が存在すること
|
|
76
|
+
- `prdUnits`全体の`sourceUnits`を結合・重複除去した集合が`discoveredUnits`のID集合と一致すること — 欠落や重複がないこと
|
|
77
|
+
- 各discoveredUnitの`unitInventory`に少なくとも1つの非空カテゴリ(routes、testFiles、publicExports)があること。3つすべてが空のユニットは発見が不完全 — そのユニットのrelatedFilesにフォーカスしてscope-discovererを再実行する
|
|
75
78
|
|
|
76
|
-
**人間レビューポイント**(有効時):
|
|
79
|
+
**人間レビューポイント**(有効時): `$STEP_1_OUTPUT.prdUnits`とソースユニットのマッピングを提示する。ユーザーはグルーピングの確認、調整、またはスコープからの除外を行う。これは最も重要なレビューポイント — グルーピングの誤りはすべての下流ドキュメントに波及する。
|
|
77
80
|
|
|
78
81
|
### ステップ2-5: ユニット毎の処理
|
|
79
82
|
|
|
80
|
-
**FOR** `$STEP_1_OUTPUT.
|
|
83
|
+
**FOR** `$STEP_1_OUTPUT.prdUnits`の各ユニット **(逐次実行、1ユニットずつ)**:
|
|
81
84
|
|
|
82
85
|
#### ステップ2: PRD生成
|
|
83
86
|
|
|
@@ -90,13 +93,14 @@ prompt: |
|
|
|
90
93
|
動作モード: reverse-engineer
|
|
91
94
|
External Scope Provided: true
|
|
92
95
|
|
|
93
|
-
機能: $
|
|
94
|
-
説明: $
|
|
95
|
-
関連ファイル: $
|
|
96
|
-
エントリーポイント: $
|
|
96
|
+
機能: $PRD_UNIT_NAME ($STEP_1_OUTPUTより)
|
|
97
|
+
説明: $PRD_UNIT_DESCRIPTION
|
|
98
|
+
関連ファイル: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
99
|
+
エントリーポイント: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
97
100
|
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
提供されたスコープを調査の起点として使用。
|
|
102
|
+
エントリーポイントの追跡でスコープ外のファイルが判明した場合は含める。
|
|
103
|
+
徹底的なコード調査に基づき最終版PRDを作成。
|
|
100
104
|
```
|
|
101
105
|
|
|
102
106
|
**出力を保存**: `$STEP_2_OUTPUT`(PRDパス)
|
|
@@ -113,14 +117,16 @@ prompt: |
|
|
|
113
117
|
|
|
114
118
|
doc_type: prd
|
|
115
119
|
document_path: $STEP_2_OUTPUT
|
|
116
|
-
code_paths: $UNIT_RELATED_FILES ($STEP_1_OUTPUTより)
|
|
117
120
|
verbose: false
|
|
118
121
|
```
|
|
119
122
|
|
|
123
|
+
注: `code_paths`は意図的に未指定。検証エージェントがドキュメントからコードスコープを独自に発見することで、scope-discovererの出力に制約されない独立した検証を実現する。
|
|
124
|
+
|
|
120
125
|
**出力を保存**: `$STEP_3_OUTPUT`
|
|
121
126
|
|
|
122
127
|
**品質ゲート**:
|
|
123
|
-
- consistencyScore >= 70 → レビューへ進む
|
|
128
|
+
- consistencyScore >= 70 かつ verifiableClaimCount >= 20 → レビューへ進む
|
|
129
|
+
- consistencyScore >= 70 だが verifiableClaimCount < 20 → 検証が浅い、code-verifierを再実行
|
|
124
130
|
- consistencyScore < 70 → 詳細レビュー用にフラグ
|
|
125
131
|
|
|
126
132
|
#### ステップ4: レビュー
|
|
@@ -195,13 +201,16 @@ prompt: |
|
|
|
195
201
|
|
|
196
202
|
### ステップ6: Design Docスコープマッピング
|
|
197
203
|
|
|
198
|
-
`$STEP_1_OUTPUT
|
|
204
|
+
**追加の発見は不要。** `$STEP_1_OUTPUT.discoveredUnits`(実装粒度のユニット)を技術プロファイルとして使用する。`$STEP_1_OUTPUT.prdUnits[].sourceUnits`で各PRDユニットに属するdiscoveredUnitsを追跡する。
|
|
205
|
+
|
|
206
|
+
fullstack=Yesの場合、ユニットの`relatedFiles`と`technicalProfile.primaryModules`のパスパターンからbackend / frontend / 両方のいずれが必要かをユニット毎に判定する(technical-specスキルのプロジェクト構造定義を参照)。
|
|
199
207
|
|
|
200
208
|
`$STEP_1_OUTPUT`のユニットから以下を引き継ぐ:
|
|
201
209
|
- `technicalProfile.primaryModules` → 主要ファイル
|
|
202
210
|
- `technicalProfile.publicInterfaces` → publicインターフェース
|
|
203
211
|
- `dependencies` → 依存関係
|
|
204
212
|
- `relatedFiles` → スコープ境界
|
|
213
|
+
- `unitInventory` → ユニットインベントリ(ルート、テストファイル、publicエクスポート)
|
|
205
214
|
|
|
206
215
|
**出力を保存**: `$STEP_6_OUTPUT`
|
|
207
216
|
|
|
@@ -225,17 +234,18 @@ subagent_type: technical-designer
|
|
|
225
234
|
prompt: |
|
|
226
235
|
既存コードに基づき以下の機能のDesign Docを作成する。
|
|
227
236
|
|
|
228
|
-
動作モード:
|
|
237
|
+
動作モード: reverse-engineer
|
|
229
238
|
|
|
230
239
|
機能: $UNIT_NAME ($STEP_6_OUTPUTより)
|
|
231
240
|
説明: $UNIT_DESCRIPTION
|
|
232
241
|
主要ファイル: $UNIT_PRIMARY_MODULES
|
|
233
242
|
publicインターフェース: $UNIT_PUBLIC_INTERFACES
|
|
234
243
|
依存関係: $UNIT_DEPENDENCIES
|
|
244
|
+
ユニットインベントリ: $UNIT_INVENTORY(スコープ発見で得たルート、テストファイル、publicエクスポート)
|
|
235
245
|
|
|
236
246
|
親PRD: $APPROVED_PRD_PATH
|
|
237
247
|
|
|
238
|
-
|
|
248
|
+
現在のアーキテクチャを現状のままドキュメント化する。ユニットインベントリを網羅性の検証基準として使用する — すべてのルートとエクスポートがDesign Docに反映されていること。
|
|
239
249
|
```
|
|
240
250
|
|
|
241
251
|
**出力を保存**: `$STEP_7_OUTPUT`
|
|
@@ -247,20 +257,21 @@ subagent_type: technical-designer-frontend
|
|
|
247
257
|
prompt: |
|
|
248
258
|
既存コードに基づき以下の機能のフロントエンドDesign Docを作成する。
|
|
249
259
|
|
|
250
|
-
動作モード:
|
|
260
|
+
動作モード: reverse-engineer
|
|
251
261
|
|
|
252
262
|
機能: $UNIT_NAME ($STEP_6_OUTPUTより)
|
|
253
263
|
説明: $UNIT_DESCRIPTION
|
|
254
264
|
主要ファイル: $UNIT_PRIMARY_MODULES
|
|
255
265
|
publicインターフェース: $UNIT_PUBLIC_INTERFACES
|
|
256
266
|
依存関係: $UNIT_DEPENDENCIES
|
|
267
|
+
ユニットインベントリ: $UNIT_INVENTORY
|
|
257
268
|
|
|
258
269
|
親PRD: $APPROVED_PRD_PATH
|
|
259
270
|
バックエンドDesign Doc: $STEP_7_OUTPUT
|
|
260
271
|
|
|
261
272
|
バックエンドDesign DocのAPIコントラクトを参照。
|
|
262
273
|
対象: コンポーネント階層、状態管理、UI操作、データ取得。
|
|
263
|
-
|
|
274
|
+
現在のアーキテクチャを現状のままドキュメント化する。ユニットインベントリを網羅性の検証基準として使用する。
|
|
264
275
|
```
|
|
265
276
|
|
|
266
277
|
**出力を保存**: `$STEP_7_FRONTEND_OUTPUT`
|
|
@@ -277,10 +288,11 @@ prompt: |
|
|
|
277
288
|
|
|
278
289
|
doc_type: design-doc
|
|
279
290
|
document_path: $STEP_7_OUTPUT または $STEP_7_FRONTEND_OUTPUT
|
|
280
|
-
code_paths: $UNIT_PRIMARY_MODULES
|
|
281
291
|
verbose: false
|
|
282
292
|
```
|
|
283
293
|
|
|
294
|
+
注: `code_paths`は意図的に未指定。検証エージェントがドキュメントからコードスコープを独自に発見する。
|
|
295
|
+
|
|
284
296
|
**出力を保存**: `$STEP_8_OUTPUT`
|
|
285
297
|
|
|
286
298
|
#### ステップ9: レビュー
|
|
@@ -24,7 +24,7 @@ description: 既存設計ドキュメント(Design Doc / PRD / ADR)をレビ
|
|
|
24
24
|
```
|
|
25
25
|
対象ドキュメント → [停止: 変更内容確認]
|
|
26
26
|
↓
|
|
27
|
-
technical-designer / prd-creator(updateモード)
|
|
27
|
+
technical-designer / technical-designer-frontend / prd-creator(updateモード)
|
|
28
28
|
↓
|
|
29
29
|
document-reviewer → [停止: レビュー承認]
|
|
30
30
|
↓(Design Docのみ)
|
|
@@ -66,15 +66,20 @@ ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
|
|
|
66
66
|
| 複数の候補が見つかった | AskUserQuestionで選択肢を提示 |
|
|
67
67
|
| ドキュメントが見つからない | 報告して終了(代わりに/designを推奨) |
|
|
68
68
|
|
|
69
|
-
### ステップ2:
|
|
69
|
+
### ステップ2: ドキュメントタイプとレイヤーの判定
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
ドキュメントパスからタイプを判定し、適切な更新エージェントを選択するためにレイヤーを判定する:
|
|
72
72
|
|
|
73
73
|
| パスパターン | タイプ | 更新エージェント | 備考 |
|
|
74
74
|
|-------------|--------|-----------------|------|
|
|
75
|
-
| `docs/design/*.md` | Design Doc | technical-designer |
|
|
75
|
+
| `docs/design/*.md` | Design Doc | technical-designerまたはtechnical-designer-frontend | 下記レイヤー判定を参照 |
|
|
76
76
|
| `docs/prd/*.md` | PRD | prd-creator | - |
|
|
77
|
-
| `docs/adr/*.md` | ADR | technical-designer |
|
|
77
|
+
| `docs/adr/*.md` | ADR | technical-designerまたはtechnical-designer-frontend | 下記レイヤー判定を参照 |
|
|
78
|
+
|
|
79
|
+
**レイヤー判定**(Design DocとADRの場合):
|
|
80
|
+
ドキュメントの内容からレイヤーを判定する:
|
|
81
|
+
- **フロントエンド**(→ technical-designer-frontend): タイトルやスコープにReact、コンポーネント、UI、フロントエンドの記載がある。またはコンポーネント階層、状態管理、UIインタラクションを含む
|
|
82
|
+
- **バックエンド**(→ technical-designer): 上記以外(API、データ層、ビジネスロジック、インフラストラクチャ)
|
|
78
83
|
|
|
79
84
|
**ADR更新ガイダンス**:
|
|
80
85
|
- **軽微な変更**(明確化、誤字修正、小規模なスコープ調整): 既存ADRファイルを更新
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,66 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.18.2] - 2026-03-26
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
#### Investigation Depth Consistency
|
|
13
|
+
- `code-verifier`: Section-by-section claim extraction with minimum 20 claims threshold and score stability constraint
|
|
14
|
+
- `code-verifier`: Tool-backed evidence rules requiring Glob/Grep confirmation for existence, behavioral, and identifier claims
|
|
15
|
+
- `code-verifier`: Reverse coverage assessment (code-to-document direction) enumerating routes, test files, and public exports
|
|
16
|
+
- `investigator`: Structured source table with minimum investigation actions per source type, replacing vague bullet list
|
|
17
|
+
- `investigator`: Tracking depth check replacing "shallow tracking signs" with explicit stop condition requirement
|
|
18
|
+
- `verifier`: Structured triangulation supplementation with source type gap analysis
|
|
19
|
+
|
|
20
|
+
#### Reverse-Engineer Workflow Accuracy
|
|
21
|
+
- `prd-creator`: 7-step reverse investigation protocol (route enumeration → entry point tracing → data model → tests → roles → spec → confirmation)
|
|
22
|
+
- `prd-creator`: Exact code transcription requirement for identifiers, URLs, and parameter names
|
|
23
|
+
- `prd-creator`: Scope expansion from entry points when external scope is provided
|
|
24
|
+
- `scope-discoverer`: Unit inventory enumeration (routes, test files, public exports) per discovered unit, propagated to downstream agents
|
|
25
|
+
- `scope-discoverer`: Step renumbering (4.5 → 5, subsequent steps shifted to 6-9)
|
|
26
|
+
- `technical-designer` / `technical-designer-frontend`: Reverse-engineer operation mode with mode-separated checklists
|
|
27
|
+
- `reverse-engineer`: Independent verifier scope discovery (code_paths intentionally omitted)
|
|
28
|
+
- `reverse-engineer`: verifiableClaimCount ≥ 20 quality gate
|
|
29
|
+
- `reverse-engineer`: unitInventory propagation to Design Doc generation
|
|
30
|
+
|
|
31
|
+
#### Diagnostic Workflow
|
|
32
|
+
- `diagnose`: Structured investigator prompts passing taskEssence and investigationFocus
|
|
33
|
+
- `diagnose`: Expanded quality checks with 6 specific criteria and re-run prompt template
|
|
34
|
+
|
|
35
|
+
#### Agent Structure
|
|
36
|
+
- Removed redundant "Core Responsibilities" sections from 5 agents (code-verifier, investigator, scope-discoverer, verifier) — content preserved in execution steps
|
|
37
|
+
- `technical-designer` / `technical-designer-frontend`: Consolidated integration point contracts, removed ADR template duplication
|
|
38
|
+
- `technical-designer` / `technical-designer-frontend`: Research guidelines condensed with reverse-engineer mode skip rule
|
|
39
|
+
|
|
40
|
+
## [1.18.1] - 2026-03-25
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
#### Structured JSON Output Enforcement
|
|
45
|
+
- Explicit "Return JSON Result" step added to all 15 agents (EN/JA) to ensure consistent structured JSON output
|
|
46
|
+
- Completion criteria updated with "Final response is the JSON output" check across all agents
|
|
47
|
+
|
|
48
|
+
#### Scope Discovery Improvements
|
|
49
|
+
- `scope-discoverer`: PRD unit grouping (step 7) with `valueProfile` metadata (`targetPersona`, `userGoal`, `valueCategory`)
|
|
50
|
+
- `scope-discoverer`: `prdUnits` array in output format for downstream document generation
|
|
51
|
+
- `reverse-engineer`: Updated to use `prdUnits` with quality gate validation (sourceUnits completeness check)
|
|
52
|
+
- `reverse-engineer`: Human review point now presents PRD unit grouping for confirmation
|
|
53
|
+
|
|
54
|
+
#### Document Update Layer Detection
|
|
55
|
+
- `update-doc`: Auto-detect frontend/backend layer from document content for correct agent selection (`technical-designer` vs `technical-designer-frontend`)
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- `quality-fixer` / `quality-fixer-frontend`: "User Report" section replaced with "Intermediate Progress Report" to clarify final output must be JSON
|
|
60
|
+
- `scope-discoverer`: "Merge signals" renamed to "Cohesion signals" with note that grouping is deferred to step 7
|
|
61
|
+
- `investigator`: Step 4 renamed from "Impact Scope Identification and Output" to "Impact Scope Identification"
|
|
62
|
+
- `solver`: Step 5 renamed from "Implementation Steps Creation and Output" to "Implementation Steps Creation"
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- Added missing "Applying to Implementation" sections to 5 Japanese agent definitions (`code-reviewer`, `acceptance-test-generator`, `design-sync`, `integration-test-reviewer`, `requirement-analyzer`) that caused JA agents to operate without skill loading instructions
|
|
67
|
+
|
|
8
68
|
## [1.18.0] - 2026-03-21
|
|
9
69
|
|
|
10
70
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ai-project",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"packageManager": "npm@10.8.2",
|
|
5
5
|
"description": "TypeScript boilerplate with skills and sub-agents for Claude Code. Prevents context exhaustion through role-based task splitting.",
|
|
6
6
|
"keywords": [
|