create-ai-project 1.18.1 → 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-verifier.md +62 -26
- package/.claude/agents-en/investigator.md +14 -15
- package/.claude/agents-en/prd-creator.md +56 -30
- package/.claude/agents-en/scope-discoverer.md +31 -29
- 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 +7 -12
- package/.claude/agents-ja/code-verifier.md +62 -26
- package/.claude/agents-ja/investigator.md +14 -15
- package/.claude/agents-ja/prd-creator.md +56 -30
- package/.claude/agents-ja/scope-discoverer.md +31 -29
- 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 +7 -12
- package/.claude/commands-en/diagnose.md +26 -7
- package/.claude/commands-en/reverse-engineer.md +17 -9
- package/.claude/commands-ja/diagnose.md +26 -7
- package/.claude/commands-ja/reverse-engineer.md +17 -9
- package/CHANGELOG.md +32 -0
- package/package.json +1 -1
|
@@ -74,6 +74,7 @@ prompt: |
|
|
|
74
74
|
- No units discovered → ask user for hints
|
|
75
75
|
- `$STEP_1_OUTPUT.prdUnits` exists
|
|
76
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
|
|
77
78
|
|
|
78
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.
|
|
79
80
|
|
|
@@ -97,8 +98,9 @@ prompt: |
|
|
|
97
98
|
Related Files: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
98
99
|
Entry Points: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
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.
|
|
102
104
|
```
|
|
103
105
|
|
|
104
106
|
**Store output as**: `$STEP_2_OUTPUT` (PRD path)
|
|
@@ -115,14 +117,16 @@ prompt: |
|
|
|
115
117
|
|
|
116
118
|
doc_type: prd
|
|
117
119
|
document_path: $STEP_2_OUTPUT
|
|
118
|
-
code_paths: $PRD_UNIT_COMBINED_RELATED_FILES (from $STEP_1_OUTPUT)
|
|
119
120
|
verbose: false
|
|
120
121
|
```
|
|
121
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
|
+
|
|
122
125
|
**Store output as**: `$STEP_3_OUTPUT`
|
|
123
126
|
|
|
124
127
|
**Quality Gate**:
|
|
125
|
-
- 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)
|
|
126
130
|
- consistencyScore < 70 → flag for detailed review
|
|
127
131
|
|
|
128
132
|
#### Step 4: Review
|
|
@@ -206,6 +210,7 @@ Map `$STEP_1_OUTPUT` units to Design Doc generation targets, carrying forward:
|
|
|
206
210
|
- `technicalProfile.publicInterfaces` → Public Interfaces
|
|
207
211
|
- `dependencies` → Dependencies
|
|
208
212
|
- `relatedFiles` → Scope boundary
|
|
213
|
+
- `unitInventory` → Unit Inventory (routes, test files, public exports)
|
|
209
214
|
|
|
210
215
|
**Store output as**: `$STEP_6_OUTPUT`
|
|
211
216
|
|
|
@@ -229,17 +234,18 @@ subagent_type: technical-designer
|
|
|
229
234
|
prompt: |
|
|
230
235
|
Create Design Doc for the following feature based on existing code.
|
|
231
236
|
|
|
232
|
-
Operation Mode:
|
|
237
|
+
Operation Mode: reverse-engineer
|
|
233
238
|
|
|
234
239
|
Feature: $UNIT_NAME (from $STEP_6_OUTPUT)
|
|
235
240
|
Description: $UNIT_DESCRIPTION
|
|
236
241
|
Primary Files: $UNIT_PRIMARY_MODULES
|
|
237
242
|
Public Interfaces: $UNIT_PUBLIC_INTERFACES
|
|
238
243
|
Dependencies: $UNIT_DEPENDENCIES
|
|
244
|
+
Unit Inventory: $UNIT_INVENTORY (routes, test files, public exports from scope discovery)
|
|
239
245
|
|
|
240
246
|
Parent PRD: $APPROVED_PRD_PATH
|
|
241
247
|
|
|
242
|
-
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.
|
|
243
249
|
```
|
|
244
250
|
|
|
245
251
|
**Store output as**: `$STEP_7_OUTPUT`
|
|
@@ -251,20 +257,21 @@ subagent_type: technical-designer-frontend
|
|
|
251
257
|
prompt: |
|
|
252
258
|
Create a frontend Design Doc for the following feature based on existing code.
|
|
253
259
|
|
|
254
|
-
Operation Mode:
|
|
260
|
+
Operation Mode: reverse-engineer
|
|
255
261
|
|
|
256
262
|
Feature: $UNIT_NAME (from $STEP_6_OUTPUT)
|
|
257
263
|
Description: $UNIT_DESCRIPTION
|
|
258
264
|
Primary Files: $UNIT_PRIMARY_MODULES
|
|
259
265
|
Public Interfaces: $UNIT_PUBLIC_INTERFACES
|
|
260
266
|
Dependencies: $UNIT_DEPENDENCIES
|
|
267
|
+
Unit Inventory: $UNIT_INVENTORY
|
|
261
268
|
|
|
262
269
|
Parent PRD: $APPROVED_PRD_PATH
|
|
263
270
|
Backend Design Doc: $STEP_7_OUTPUT
|
|
264
271
|
|
|
265
272
|
Reference backend Design Doc for API contracts.
|
|
266
273
|
Focus on: component hierarchy, state management, UI interactions, data fetching.
|
|
267
|
-
Document current architecture.
|
|
274
|
+
Document current architecture as-is. Use Unit Inventory as completeness baseline.
|
|
268
275
|
```
|
|
269
276
|
|
|
270
277
|
**Store output as**: `$STEP_7_FRONTEND_OUTPUT`
|
|
@@ -281,10 +288,11 @@ prompt: |
|
|
|
281
288
|
|
|
282
289
|
doc_type: design-doc
|
|
283
290
|
document_path: $STEP_7_OUTPUT or $STEP_7_FRONTEND_OUTPUT
|
|
284
|
-
code_paths: $UNIT_PRIMARY_MODULES
|
|
285
291
|
verbose: false
|
|
286
292
|
```
|
|
287
293
|
|
|
294
|
+
Note: `code_paths` is intentionally NOT provided. The verifier independently discovers code scope from the document.
|
|
295
|
+
|
|
288
296
|
**Store output as**: `$STEP_8_OUTPUT`
|
|
289
297
|
|
|
290
298
|
#### Step 9: Review
|
|
@@ -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
|
|
|
@@ -74,6 +74,7 @@ prompt: |
|
|
|
74
74
|
- ユニットが発見されない → ユーザーにヒントを求める
|
|
75
75
|
- `$STEP_1_OUTPUT.prdUnits`が存在すること
|
|
76
76
|
- `prdUnits`全体の`sourceUnits`を結合・重複除去した集合が`discoveredUnits`のID集合と一致すること — 欠落や重複がないこと
|
|
77
|
+
- 各discoveredUnitの`unitInventory`に少なくとも1つの非空カテゴリ(routes、testFiles、publicExports)があること。3つすべてが空のユニットは発見が不完全 — そのユニットのrelatedFilesにフォーカスしてscope-discovererを再実行する
|
|
77
78
|
|
|
78
79
|
**人間レビューポイント**(有効時): `$STEP_1_OUTPUT.prdUnits`とソースユニットのマッピングを提示する。ユーザーはグルーピングの確認、調整、またはスコープからの除外を行う。これは最も重要なレビューポイント — グルーピングの誤りはすべての下流ドキュメントに波及する。
|
|
79
80
|
|
|
@@ -97,8 +98,9 @@ prompt: |
|
|
|
97
98
|
関連ファイル: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
98
99
|
エントリーポイント: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
提供されたスコープを調査の起点として使用。
|
|
102
|
+
エントリーポイントの追跡でスコープ外のファイルが判明した場合は含める。
|
|
103
|
+
徹底的なコード調査に基づき最終版PRDを作成。
|
|
102
104
|
```
|
|
103
105
|
|
|
104
106
|
**出力を保存**: `$STEP_2_OUTPUT`(PRDパス)
|
|
@@ -115,14 +117,16 @@ prompt: |
|
|
|
115
117
|
|
|
116
118
|
doc_type: prd
|
|
117
119
|
document_path: $STEP_2_OUTPUT
|
|
118
|
-
code_paths: $PRD_UNIT_COMBINED_RELATED_FILES ($STEP_1_OUTPUTより)
|
|
119
120
|
verbose: false
|
|
120
121
|
```
|
|
121
122
|
|
|
123
|
+
注: `code_paths`は意図的に未指定。検証エージェントがドキュメントからコードスコープを独自に発見することで、scope-discovererの出力に制約されない独立した検証を実現する。
|
|
124
|
+
|
|
122
125
|
**出力を保存**: `$STEP_3_OUTPUT`
|
|
123
126
|
|
|
124
127
|
**品質ゲート**:
|
|
125
|
-
- consistencyScore >= 70 → レビューへ進む
|
|
128
|
+
- consistencyScore >= 70 かつ verifiableClaimCount >= 20 → レビューへ進む
|
|
129
|
+
- consistencyScore >= 70 だが verifiableClaimCount < 20 → 検証が浅い、code-verifierを再実行
|
|
126
130
|
- consistencyScore < 70 → 詳細レビュー用にフラグ
|
|
127
131
|
|
|
128
132
|
#### ステップ4: レビュー
|
|
@@ -206,6 +210,7 @@ fullstack=Yesの場合、ユニットの`relatedFiles`と`technicalProfile.prima
|
|
|
206
210
|
- `technicalProfile.publicInterfaces` → publicインターフェース
|
|
207
211
|
- `dependencies` → 依存関係
|
|
208
212
|
- `relatedFiles` → スコープ境界
|
|
213
|
+
- `unitInventory` → ユニットインベントリ(ルート、テストファイル、publicエクスポート)
|
|
209
214
|
|
|
210
215
|
**出力を保存**: `$STEP_6_OUTPUT`
|
|
211
216
|
|
|
@@ -229,17 +234,18 @@ subagent_type: technical-designer
|
|
|
229
234
|
prompt: |
|
|
230
235
|
既存コードに基づき以下の機能のDesign Docを作成する。
|
|
231
236
|
|
|
232
|
-
動作モード:
|
|
237
|
+
動作モード: reverse-engineer
|
|
233
238
|
|
|
234
239
|
機能: $UNIT_NAME ($STEP_6_OUTPUTより)
|
|
235
240
|
説明: $UNIT_DESCRIPTION
|
|
236
241
|
主要ファイル: $UNIT_PRIMARY_MODULES
|
|
237
242
|
publicインターフェース: $UNIT_PUBLIC_INTERFACES
|
|
238
243
|
依存関係: $UNIT_DEPENDENCIES
|
|
244
|
+
ユニットインベントリ: $UNIT_INVENTORY(スコープ発見で得たルート、テストファイル、publicエクスポート)
|
|
239
245
|
|
|
240
246
|
親PRD: $APPROVED_PRD_PATH
|
|
241
247
|
|
|
242
|
-
|
|
248
|
+
現在のアーキテクチャを現状のままドキュメント化する。ユニットインベントリを網羅性の検証基準として使用する — すべてのルートとエクスポートがDesign Docに反映されていること。
|
|
243
249
|
```
|
|
244
250
|
|
|
245
251
|
**出力を保存**: `$STEP_7_OUTPUT`
|
|
@@ -251,20 +257,21 @@ subagent_type: technical-designer-frontend
|
|
|
251
257
|
prompt: |
|
|
252
258
|
既存コードに基づき以下の機能のフロントエンドDesign Docを作成する。
|
|
253
259
|
|
|
254
|
-
動作モード:
|
|
260
|
+
動作モード: reverse-engineer
|
|
255
261
|
|
|
256
262
|
機能: $UNIT_NAME ($STEP_6_OUTPUTより)
|
|
257
263
|
説明: $UNIT_DESCRIPTION
|
|
258
264
|
主要ファイル: $UNIT_PRIMARY_MODULES
|
|
259
265
|
publicインターフェース: $UNIT_PUBLIC_INTERFACES
|
|
260
266
|
依存関係: $UNIT_DEPENDENCIES
|
|
267
|
+
ユニットインベントリ: $UNIT_INVENTORY
|
|
261
268
|
|
|
262
269
|
親PRD: $APPROVED_PRD_PATH
|
|
263
270
|
バックエンドDesign Doc: $STEP_7_OUTPUT
|
|
264
271
|
|
|
265
272
|
バックエンドDesign DocのAPIコントラクトを参照。
|
|
266
273
|
対象: コンポーネント階層、状態管理、UI操作、データ取得。
|
|
267
|
-
|
|
274
|
+
現在のアーキテクチャを現状のままドキュメント化する。ユニットインベントリを網羅性の検証基準として使用する。
|
|
268
275
|
```
|
|
269
276
|
|
|
270
277
|
**出力を保存**: `$STEP_7_FRONTEND_OUTPUT`
|
|
@@ -281,10 +288,11 @@ prompt: |
|
|
|
281
288
|
|
|
282
289
|
doc_type: design-doc
|
|
283
290
|
document_path: $STEP_7_OUTPUT または $STEP_7_FRONTEND_OUTPUT
|
|
284
|
-
code_paths: $UNIT_PRIMARY_MODULES
|
|
285
291
|
verbose: false
|
|
286
292
|
```
|
|
287
293
|
|
|
294
|
+
注: `code_paths`は意図的に未指定。検証エージェントがドキュメントからコードスコープを独自に発見する。
|
|
295
|
+
|
|
288
296
|
**出力を保存**: `$STEP_8_OUTPUT`
|
|
289
297
|
|
|
290
298
|
#### ステップ9: レビュー
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,38 @@ 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
|
+
|
|
8
40
|
## [1.18.1] - 2026-03-25
|
|
9
41
|
|
|
10
42
|
### 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": [
|