create-ai-project 1.16.1 → 1.16.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.
@@ -92,6 +92,7 @@ For DesignDoc, additionally verify:
92
92
  - Technical information verification: When sources exist, verify with WebSearch for latest information and validate claim validity
93
93
  - Failure scenario review: Identify failure scenarios across normal usage, high load, and external failures; specify which design element becomes the bottleneck
94
94
  - Code inspection evidence review: Verify inspected files are relevant to design scope; flag if key related files are missing
95
+ - **As-is implementation document review**: When code verification results are provided and the document describes existing implementation (not future requirements), verify that code-observable behaviors are stated as facts; speculative language about deterministic behavior → `important` issue
95
96
 
96
97
  **Perspective-specific Mode**:
97
98
  - Implement review based on specified mode and focus
@@ -181,6 +181,7 @@ When external scope is NOT provided:
181
181
  - Investigate until code implementation is fully understood
182
182
  - Comprehensively confirm related files, tests, and configurations
183
183
  - Write specifications with confidence (minimize speculation and assumptions)
184
+ - **Language Standard**: Code is the single source of truth. Describe observable behavior in definitive form. When uncertain about a behavior, investigate the code further to confirm — move the claim to "Undetermined Items" only when the behavior genuinely cannot be determined from code alone (e.g., business intent behind a design choice).
184
185
 
185
186
  ### Confidence Gating
186
187
 
@@ -196,6 +197,7 @@ Before documenting any claim, assess confidence level:
196
197
  - Never document Unverified claims as facts
197
198
  - Inferred claims require explicit rationale
198
199
  - Prioritize Verified claims in core requirements
200
+ - Before classifying as Inferred, attempt to verify by reading the relevant code — classify as Inferred only after confirming the code is inaccessible or ambiguous
199
201
 
200
202
  ### Reverse PRD Process
201
203
  1. **Investigation Phase** (skip if External Scope Provided)
@@ -92,6 +92,7 @@ DesignDocの場合、追加で以下を確認:
92
92
  - 技術情報検証:出典がある場合はWebSearchで最新情報を確認、主張の妥当性を検証
93
93
  - 失敗シナリオ検証:正常系・高負荷・外部障害の失敗シナリオを特定し、どの設計要素がボトルネックになるか指摘
94
94
  - コード調査エビデンス検証:調査ファイルが設計スコープに関連するか確認、主要な関連ファイルの漏れを指摘
95
+ - **既存実装ドキュメント検証**: コード検証結果が提供され、ドキュメントが既存実装を記述している場合(将来の要件ではなく)、コードから観察可能な振る舞いが事実として記述されていることを検証する。確定的な振る舞いに対する推測的な表現 → `important`
95
96
 
96
97
  **観点特化モード**:
97
98
  - 指定されたmodeとfocusに基づいてレビューを実施
@@ -181,6 +181,7 @@ PRD作成時は**ユーザージャーニー図**と**スコープ境界図**を
181
181
  - コード実装を完全に理解するまで調査
182
182
  - 関連ファイル、テスト、設定を網羅的に確認
183
183
  - 自信を持って仕様を記述(推測や仮定を最小化)
184
+ - **記述基準**: コードがsingle source of truth(SSoT)である。観察可能な振る舞いを断定形で記述する。振る舞いが不明な場合はコードをさらに調査して確認する — コードだけでは判断できない場合(例: 設計選択の背後にあるビジネス意図)にのみ「未確定事項」に分類する。
184
185
 
185
186
  ### 信頼度ゲーティング
186
187
 
@@ -196,6 +197,7 @@ PRD作成時は**ユーザージャーニー図**と**スコープ境界図**を
196
197
  - Unverifiedな主張を事実として文書化しない
197
198
  - Inferredな主張には明示的な根拠を記載
198
199
  - コア要件ではVerifiedな主張を優先
200
+ - Inferredに分類する前に、関連コードを読んで検証を試みる — コードがアクセス不能または曖昧であることを確認した場合にのみInferredに分類する
199
201
 
200
202
  ### リバースPRDプロセス
201
203
  1. **調査フェーズ**(External Scope Provided時はスキップ)
@@ -2,7 +2,7 @@
2
2
  description: Execute decomposed tasks in autonomous execution mode
3
3
  ---
4
4
 
5
- Follow subagents-orchestration-guide skill strictly and act as the **orchestrator**.
5
+ Follow subagents-orchestration-guide skill strictly and act as the **orchestrator** — your role is to invoke sub-agents, pass data between them, and report results.
6
6
 
7
7
  Work plan: $ARGUMENTS
8
8
 
@@ -9,7 +9,7 @@ description: Execute from requirement analysis to design document creation
9
9
  **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
10
10
 
11
11
  **Execution Protocol**:
12
- 1. **Delegate all work** to sub-agents (NEVER investigate/analyze yourself)
12
+ 1. **Delegate all work** to sub-agents your role is to invoke sub-agents, pass data between them, and report results
13
13
  2. **Follow subagents-orchestration-guide skill design flow exactly**:
14
14
  - Execute: requirement-analyzer → technical-designer → document-reviewer → design-sync
15
15
  - **Stop at every `[Stop: ...]` marker** → Wait for user approval before proceeding
@@ -4,7 +4,7 @@ description: Orchestrate the complete implementation lifecycle from requirements
4
4
 
5
5
  **Command Context**: Full-cycle implementation management (Requirements Analysis → Design → Planning → Implementation → Quality Assurance)
6
6
 
7
- Strictly adhere to subagents-orchestration-guide skill and operate as an orchestrator.
7
+ Strictly adhere to subagents-orchestration-guide skill and operate as an orchestrator — your role is to invoke sub-agents, pass data between them, and report results.
8
8
 
9
9
  ## Execution Decision Flow
10
10
 
@@ -9,7 +9,7 @@ description: Create work plan from design document and obtain plan approval
9
9
  **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
10
10
 
11
11
  **Execution Protocol**:
12
- 1. **Delegate all work** to sub-agents (NEVER create plans yourself)
12
+ 1. **Delegate all work** to sub-agents your role is to invoke sub-agents, pass data between them, and report results
13
13
  2. **Follow subagents-orchestration-guide skill planning flow exactly**:
14
14
  - Execute steps defined below
15
15
  - **Stop and obtain approval** for plan content before completion
@@ -6,6 +6,15 @@ description: Generate PRD and Design Docs from existing codebase through discove
6
6
 
7
7
  Target: $ARGUMENTS
8
8
 
9
+ ## Orchestrator Definition
10
+
11
+ **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
12
+
13
+ **Execution Protocol**:
14
+ 1. **Delegate all work** to sub-agents — your role is to invoke sub-agents, pass data between them, and report results
15
+ 2. **Pass structured JSON** between steps using `$STEP_N_OUTPUT` placeholder notation
16
+ 3. **Never investigate code yourself** — all code reading is done by sub-agents
17
+
9
18
  **TodoWrite**: Register phases first, then steps within each phase as you enter it.
10
19
 
11
20
  ## Step 0: Initial Configuration
@@ -39,8 +48,6 @@ Phase 2: Design Doc Generation (if requested)
39
48
  ※ fullstack=Yes: units may produce backend + frontend Design Docs based on scope
40
49
  ```
41
50
 
42
- **Context Passing**: Pass structured JSON output between steps. Use `$STEP_N_OUTPUT` placeholder notation.
43
-
44
51
  ## Phase 1: PRD Generation
45
52
 
46
53
  **Register in TodoWrite**:
@@ -70,7 +77,7 @@ prompt: |
70
77
 
71
78
  ### Step 2-5: Per-Unit Processing
72
79
 
73
- **Complete Steps 2→3→4→5 for each unit before proceeding to the next unit.**
80
+ **FOR** each unit in `$STEP_1_OUTPUT.discoveredUnits` **(sequential, one unit at a time):**
74
81
 
75
82
  #### Step 2: PRD Generation
76
83
 
@@ -96,6 +103,8 @@ prompt: |
96
103
 
97
104
  #### Step 3: Code Verification
98
105
 
106
+ **Prerequisite**: $STEP_2_OUTPUT (PRD path from Step 2)
107
+
99
108
  **Task invocation**:
100
109
  ```
101
110
  subagent_type: code-verifier
@@ -158,10 +167,13 @@ prompt: |
158
167
  ## Review Feedback
159
168
  $STEP_4_OUTPUT
160
169
 
161
- ## Discrepancies to Address
162
- (Extract critical and major discrepancies from $STEP_3_OUTPUT)
170
+ ## Code Verification Results
171
+ $STEP_3_OUTPUT
163
172
 
164
- Apply corrections and improvements.
173
+ Address each issue by severity:
174
+ - critical: Must fix — incorrect or missing core behavior
175
+ - important: Should fix — improves accuracy or completeness
176
+ - recommended: May fix — stylistic or minor improvements
165
177
  ```
166
178
 
167
179
  **Loop Control**: Maximum 2 revision cycles. After 2 cycles, flag for human review regardless of status.
@@ -195,13 +207,15 @@ Map `$STEP_1_OUTPUT` units to Design Doc generation targets, carrying forward:
195
207
 
196
208
  ### Step 7-10: Per-Unit Processing
197
209
 
198
- **Complete Steps 7→8→9→10 for each unit before proceeding to the next unit.**
210
+ **FOR** each unit in `$STEP_6_OUTPUT.designDocTargets` **(sequential, one unit at a time):**
199
211
 
200
212
  #### Step 7: Design Doc Generation
201
213
 
202
214
  Generate Design Docs per unit based on `$STEP_6_OUTPUT` mapping.
203
215
 
204
- **Design Doc** (technical-designer):
216
+ When fullstack=Yes, invoke 7a then 7b sequentially (7b depends on 7a output).
217
+
218
+ **7a.** Backend Design Doc (technical-designer):
205
219
 
206
220
  When fullstack=Yes: append "Focus on: API contracts, data layer, business logic, service architecture." to the prompt.
207
221
 
@@ -226,7 +240,7 @@ prompt: |
226
240
 
227
241
  **Store output as**: `$STEP_7_OUTPUT`
228
242
 
229
- **Frontend Design Doc** (fullstack, units with frontend scope):
243
+ **7b.** Frontend Design Doc (fullstack, units with frontend scope):
230
244
 
231
245
  ```
232
246
  subagent_type: technical-designer-frontend
@@ -299,7 +313,54 @@ prompt: |
299
313
 
300
314
  #### Step 10: Revision (conditional)
301
315
 
302
- Same logic as Step 5, using the corresponding technical-designer / technical-designer-frontend with update mode.
316
+ **Trigger Conditions** (any one of the following):
317
+ - Review status is "Needs Revision" or "Rejected"
318
+ - Critical discrepancies exist in `$STEP_8_OUTPUT`
319
+ - consistencyScore < 70
320
+
321
+ **Backend Design Doc revision** (technical-designer):
322
+ ```
323
+ subagent_type: technical-designer
324
+ prompt: |
325
+ Update Design Doc based on review feedback.
326
+
327
+ Operation Mode: update
328
+ Existing Document: $STEP_7_OUTPUT
329
+
330
+ ## Review Feedback
331
+ $STEP_9_OUTPUT
332
+
333
+ ## Code Verification Results
334
+ $STEP_8_OUTPUT
335
+
336
+ Address each issue by severity:
337
+ - critical: Must fix — incorrect or missing core behavior
338
+ - important: Should fix — improves accuracy or completeness
339
+ - recommended: May fix — stylistic or minor improvements
340
+ ```
341
+
342
+ **Frontend Design Doc revision** (fullstack, technical-designer-frontend):
343
+ ```
344
+ subagent_type: technical-designer-frontend
345
+ prompt: |
346
+ Update frontend Design Doc based on review feedback.
347
+
348
+ Operation Mode: update
349
+ Existing Document: $STEP_7_FRONTEND_OUTPUT
350
+
351
+ ## Review Feedback
352
+ $STEP_9_OUTPUT
353
+
354
+ ## Code Verification Results
355
+ $STEP_8_OUTPUT
356
+
357
+ Address each issue by severity:
358
+ - critical: Must fix — incorrect or missing core behavior
359
+ - important: Should fix — improves accuracy or completeness
360
+ - recommended: May fix — stylistic or minor improvements
361
+ ```
362
+
363
+ **Loop Control**: Maximum 2 revision cycles. After 2 cycles, flag for human review regardless of status.
303
364
 
304
365
  #### Unit Completion
305
366
 
@@ -34,6 +34,8 @@ Validate Design Doc compliance:
34
34
  - Code quality check
35
35
  - Implementation completeness assessment
36
36
 
37
+ **Store output as**: `$STEP_2_OUTPUT`
38
+
37
39
  ### 3. Verdict and Response
38
40
 
39
41
  **Criteria (considering project stage)**:
@@ -60,7 +62,7 @@ If user selects `y`:
60
62
  1. **Update TodoWrite**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Create task file following task template (see documentation-criteria skill) -> `docs/plans/tasks/review-fixes-YYYYMMDD.md`
61
63
  2. **Execute task-executor**: Staged auto-fixes (stops at 5 files)
62
64
  3. **Execute quality-fixer**: Confirm quality gate passage
63
- 4. **Re-validate**: Measure improvement with code-reviewer
65
+ 4. **Re-validate**: Re-validate Design Doc compliance after fixes. Prior compliance issues: $STEP_2_OUTPUT. Verify each prior issue is resolved.
64
66
 
65
67
  ### 4. Final Report
66
68
  ```
@@ -11,7 +11,7 @@ description: Update existing design documents (Design Doc / PRD / ADR) with revi
11
11
  **First Action**: Register Steps 1-6 to TodoWrite before any execution.
12
12
 
13
13
  **Execution Protocol**:
14
- 1. **Delegate all work** to sub-agents (NEVER edit documents yourself)
14
+ 1. **Delegate all work** to sub-agents your role is to invoke sub-agents, pass data between them, and report results
15
15
  2. **Execute update flow**:
16
16
  - Identify target → Clarify changes → Update document → Review → Consistency check
17
17
  - **Stop at every `[Stop: ...]` marker** → Wait for user approval before proceeding
@@ -125,9 +125,29 @@ prompt: |
125
125
  - Completeness of change history
126
126
  ```
127
127
 
128
+ **Store output as**: `$STEP_5_OUTPUT`
129
+
128
130
  **On review result**:
129
131
  - Approved → Proceed to Step 6
130
- - Needs revision → Return to Step 4 with reviewer feedback (max 2 iterations)
132
+ - Needs revision → Return to Step 4 with the following prompt:
133
+ ```
134
+ subagent_type: [Update Agent from Step 2]
135
+ description: "Revise [Type] based on review feedback"
136
+ prompt: |
137
+ Operation Mode: update
138
+ Existing Document: [path from Step 1]
139
+
140
+ ## Prior Review Feedback
141
+ $STEP_5_OUTPUT
142
+
143
+ Address each issue by severity:
144
+ - critical: Must fix
145
+ - important: Should fix
146
+ - recommended: May fix
147
+
148
+ Apply corrections and update change history.
149
+ ```
150
+ (max 2 iterations)
131
151
  - **After 2 rejections** → Flag for human review, present accumulated feedback to user and end
132
152
 
133
153
  Present review result to user for approval.
@@ -2,7 +2,7 @@
2
2
  description: 分解済みタスクを自律実行モードで実装
3
3
  ---
4
4
 
5
- subagents-orchestration-guideスキルの指針に従い、**オーケストレーター**として振る舞います。
5
+ subagents-orchestration-guideスキルの指針に従い、**オーケストレーター**として振る舞います — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告。
6
6
 
7
7
  作業計画書: $ARGUMENTS
8
8
 
@@ -9,7 +9,7 @@ description: 要件分析から設計書作成まで実行
9
9
  **コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
10
10
 
11
11
  **実行プロトコル**:
12
- 1. **全作業をサブエージェントに委譲**(自分で調査・分析しない)
12
+ 1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
13
13
  2. **subagents-orchestration-guideスキルの設計フローに厳密に従う**:
14
14
  - 実行: requirement-analyzer → technical-designer → document-reviewer → design-sync
15
15
  - **`[停止: ...]`マーカーで必ず停止** → 次に進む前にユーザー承認を待つ
@@ -4,7 +4,7 @@ description: オーケストレーターとして要件分析から実装まで
4
4
 
5
5
  **コマンドコンテキスト**: 実装の完全サイクル管理(要件分析→設計→計画→実装→品質保証)
6
6
 
7
- subagents-orchestration-guideスキルの指針に従い、オーケストレーターとして振る舞います。
7
+ subagents-orchestration-guideスキルの指針に従い、オーケストレーターとして振る舞います — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告。
8
8
 
9
9
  ## 実行判断フロー
10
10
 
@@ -9,7 +9,7 @@ description: 設計書から作業計画書を作成し計画承認を取得
9
9
  **コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
10
10
 
11
11
  **実行プロトコル**:
12
- 1. **全作業をサブエージェントに委譲**(自分で計画を作成しない)
12
+ 1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
13
13
  2. **subagents-orchestration-guideスキルの計画フローに厳密に従う**:
14
14
  - 以下のステップを実行
15
15
  - **完了前に計画承認を取得**
@@ -6,6 +6,15 @@ description: 既存コードベースからPRDとDesign Docを生成するリバ
6
6
 
7
7
  対象: $ARGUMENTS
8
8
 
9
+ ## オーケストレーター定義
10
+
11
+ **コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
12
+
13
+ **実行プロトコル**:
14
+ 1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
15
+ 2. **ステップ間で構造化JSONを受け渡す** — `$STEP_N_OUTPUT`プレースホルダー記法を使用
16
+ 3. **コード読解はすべてサブエージェントが実施**
17
+
9
18
  **TodoWrite登録**: まずフェーズをTodoWriteに登録し、各フェーズ開始時に詳細ステップを追加登録する。
10
19
 
11
20
  ## ステップ0: 初期設定
@@ -39,8 +48,6 @@ AskUserQuestionで以下を確認:
39
48
  ※ fullstack=Yes: ユニットのスコープに応じてbackend + frontend Design Docを生成
40
49
  ```
41
50
 
42
- **コンテキスト伝達**: ステップ間で構造化JSON出力を受け渡す。`$STEP_N_OUTPUT`プレースホルダー記法を使用。
43
-
44
51
  ## フェーズ1: PRD生成
45
52
 
46
53
  **TodoWrite登録**:
@@ -70,7 +77,7 @@ prompt: |
70
77
 
71
78
  ### ステップ2-5: ユニット毎の処理
72
79
 
73
- **各ユニットについてステップ2→3→4→5を完了してから次のユニットへ進む。**
80
+ **FOR** `$STEP_1_OUTPUT.discoveredUnits`の各ユニット **(逐次実行、1ユニットずつ)**:
74
81
 
75
82
  #### ステップ2: PRD生成
76
83
 
@@ -96,6 +103,8 @@ prompt: |
96
103
 
97
104
  #### ステップ3: コード検証
98
105
 
106
+ **前提条件**: $STEP_2_OUTPUT(ステップ2のPRDパス)
107
+
99
108
  **Task呼び出し**:
100
109
  ```
101
110
  subagent_type: code-verifier
@@ -158,10 +167,13 @@ prompt: |
158
167
  ## レビューフィードバック
159
168
  $STEP_4_OUTPUT
160
169
 
161
- ## 対処すべき不整合
162
- ($STEP_3_OUTPUTからcriticalとmajorの不整合を抽出)
170
+ ## コード検証結果
171
+ $STEP_3_OUTPUT
163
172
 
164
- 修正と改善を適用する。
173
+ severity別に対処する:
174
+ - critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
175
+ - important: 推奨修正 — 正確性や完全性の向上
176
+ - recommended: 任意修正 — 文体や軽微な改善
165
177
  ```
166
178
 
167
179
  **ループ制御**: 最大2回の修正サイクル。2サイクル後はステータスに関わらず人間レビュー用にフラグ。
@@ -195,13 +207,15 @@ prompt: |
195
207
 
196
208
  ### ステップ7-10: ユニット毎の処理
197
209
 
198
- **各ユニットについてステップ7→8→9→10を完了してから次のユニットへ進む。**
210
+ **FOR** `$STEP_6_OUTPUT.designDocTargets`の各ユニット **(逐次実行、1ユニットずつ)**:
199
211
 
200
212
  #### ステップ7: Design Doc生成
201
213
 
202
214
  `$STEP_6_OUTPUT`のマッピング結果に基づき、ユニット毎に必要なDesign Docを生成する。
203
215
 
204
- **Design Doc**(technical-designer):
216
+ fullstack=Yesの場合、7aの後に7bを逐次実行する(7bは7aの出力に依存)。
217
+
218
+ **7a.** バックエンドDesign Doc(technical-designer):
205
219
 
206
220
  fullstack=Yes時: promptに「対象: APIコントラクト、データ層、ビジネスロジック、サービスアーキテクチャ。」を追加する。
207
221
 
@@ -226,7 +240,7 @@ prompt: |
226
240
 
227
241
  **出力を保存**: `$STEP_7_OUTPUT`
228
242
 
229
- **フロントエンドDesign Doc**(fullstack、フロントエンドスコープを含むユニット):
243
+ **7b.** フロントエンドDesign Docfullstack、フロントエンドスコープを含むユニット):
230
244
 
231
245
  ```
232
246
  subagent_type: technical-designer-frontend
@@ -299,7 +313,54 @@ prompt: |
299
313
 
300
314
  #### ステップ10: 修正(条件付き)
301
315
 
302
- ステップ5と同様のロジック。updateモードで対応するtechnical-designer / technical-designer-frontendを使用。
316
+ **トリガー条件**(以下のいずれか):
317
+ - レビューステータスが「Needs Revision」または「Rejected」
318
+ - `$STEP_8_OUTPUT`にクリティカルな不整合が存在
319
+ - consistencyScore < 70
320
+
321
+ **バックエンドDesign Doc修正**(technical-designer):
322
+ ```
323
+ subagent_type: technical-designer
324
+ prompt: |
325
+ レビューフィードバックに基づきDesign Docを更新する。
326
+
327
+ 動作モード: update
328
+ 既存ドキュメント: $STEP_7_OUTPUT
329
+
330
+ ## レビューフィードバック
331
+ $STEP_9_OUTPUT
332
+
333
+ ## コード検証結果
334
+ $STEP_8_OUTPUT
335
+
336
+ severity別に対処する:
337
+ - critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
338
+ - important: 推奨修正 — 正確性や完全性の向上
339
+ - recommended: 任意修正 — 文体や軽微な改善
340
+ ```
341
+
342
+ **フロントエンドDesign Doc修正**(fullstack、technical-designer-frontend):
343
+ ```
344
+ subagent_type: technical-designer-frontend
345
+ prompt: |
346
+ レビューフィードバックに基づきフロントエンドDesign Docを更新する。
347
+
348
+ 動作モード: update
349
+ 既存ドキュメント: $STEP_7_FRONTEND_OUTPUT
350
+
351
+ ## レビューフィードバック
352
+ $STEP_9_OUTPUT
353
+
354
+ ## コード検証結果
355
+ $STEP_8_OUTPUT
356
+
357
+ severity別に対処する:
358
+ - critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
359
+ - important: 推奨修正 — 正確性や完全性の向上
360
+ - recommended: 任意修正 — 文体や軽微な改善
361
+ ```
362
+
363
+ **ループ制御**: 最大2回の修正サイクル。2サイクル後はステータスに関わらず人間レビュー用にフラグ。
303
364
 
304
365
  #### ユニット完了
305
366
 
@@ -34,6 +34,8 @@ Design Doc準拠率を検証:
34
34
  - コード品質チェック
35
35
  - 実装完全性の評価
36
36
 
37
+ **出力を保存**: `$STEP_2_OUTPUT`
38
+
37
39
  ### 3. 判定と対応
38
40
 
39
41
  **判定基準(プロジェクト段階を考慮)**:
@@ -60,7 +62,7 @@ Design Doc準拠率を検証:
60
62
  1. **TodoWrite更新**: 作業ステップを登録。必ず含める: 最初に「スキル制約の確認」、最後に「スキル忠実度の検証」。タスクテンプレート(documentation-criteriaスキル参照)に従いタスクファイル作成 → `docs/plans/tasks/review-fixes-YYYYMMDD.md`
61
63
  2. **task-executor実行**: 自動修正を段階的実行(5ファイル超過で停止)
62
64
  3. **quality-fixer実行**: 品質ゲート通過を確認
63
- 4. **再検証**: code-reviewerで改善度を測定
65
+ 4. **再検証**: 修正後のDesign Doc準拠率を再検証する。前回の準拠問題: $STEP_2_OUTPUT。各問題が解決されたことを確認する。
64
66
 
65
67
  ### 4. 最終レポート
66
68
  ```
@@ -11,7 +11,7 @@ description: 既存設計ドキュメント(Design Doc / PRD / ADR)をレビ
11
11
  **初期アクション**: 実行前にステップ1-6をTodoWriteに登録する。
12
12
 
13
13
  **実行プロトコル**:
14
- 1. **全作業をサブエージェントに委譲**(自分でドキュメントを編集しない)
14
+ 1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
15
15
  2. **更新フローを実行**:
16
16
  - 対象特定 → 変更内容確認 → ドキュメント更新 → レビュー → 整合性チェック
17
17
  - **`[停止: ...]`マーカーで必ず停止** → 次に進む前にユーザー承認を待つ
@@ -125,9 +125,29 @@ prompt: |
125
125
  - 変更履歴の完全性
126
126
  ```
127
127
 
128
+ **出力を保存**: `$STEP_5_OUTPUT`
129
+
128
130
  **レビュー結果に基づく対応**:
129
131
  - 承認 → ステップ6へ進む
130
- - 要修正 → レビュアーフィードバックを持ってステップ4に戻る(最大2回)
132
+ - 要修正 → 以下のプロンプトでステップ4に戻る:
133
+ ```
134
+ subagent_type: [ステップ2の更新エージェント]
135
+ description: "レビューフィードバックに基づき[タイプ]を修正"
136
+ prompt: |
137
+ 動作モード: update
138
+ 既存ドキュメント: [ステップ1のパス]
139
+
140
+ ## 前回のレビューフィードバック
141
+ $STEP_5_OUTPUT
142
+
143
+ severity別に対処する:
144
+ - critical: 必須修正
145
+ - important: 推奨修正
146
+ - recommended: 任意修正
147
+
148
+ 修正を適用し変更履歴を更新する。
149
+ ```
150
+ (最大2回)
131
151
  - **2回のリジェクト後** → 人間レビュー用にフラグ、蓄積されたフィードバックをユーザーに提示して終了
132
152
 
133
153
  レビュー結果をユーザーに提示して承認を得る。
package/CHANGELOG.md CHANGED
@@ -5,6 +5,35 @@ 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.16.2] - 2026-03-03
9
+
10
+ ### Changed
11
+
12
+ #### Orchestrator Role Clarity (en/ja)
13
+ - Replace prohibition-style delegation ("NEVER investigate yourself") with positive role definition across build, design, implement, plan, update-doc commands: "your role is to invoke sub-agents, pass data between them, and report results"
14
+
15
+ #### reverse-engineer (en/ja) — Execution Accuracy
16
+ - Add Orchestrator Definition section with structured JSON passing and code-reading delegation
17
+ - Replace prose loop headers with explicit `FOR ... (sequential, one unit at a time)` notation (Steps 2-5, 7-10)
18
+ - Add prerequisite annotation to Step 3 (dependency on Step 2 output)
19
+ - Expand Step 5 revision prompt: replace vague "apply corrections" with severity-based handling (critical/important/recommended)
20
+ - Expand Step 10 from single-line reference to full backend + frontend revision prompts with severity-based handling
21
+ - Add `7a.`/`7b.` labels and sequential execution note for fullstack Design Doc generation
22
+ - Remove redundant "Context Passing" line (moved to Orchestrator Definition)
23
+
24
+ #### review (en/ja)
25
+ - Add `$STEP_2_OUTPUT` storage for code-reviewer results
26
+ - Replace vague re-validation ("measure improvement") with prior-issue-tracking re-validation using `$STEP_2_OUTPUT`
27
+
28
+ #### update-doc (en/ja)
29
+ - Add `$STEP_5_OUTPUT` storage for document-reviewer results
30
+ - Expand revision loop: replace single-line description with full sub-agent prompt including severity-based handling and `$STEP_5_OUTPUT` reference
31
+
32
+ #### Agents — Reverse Engineering Accuracy (en/ja)
33
+ - document-reviewer: add as-is implementation document review rule — verify code-observable behaviors are stated as facts, flag speculative language on deterministic behavior
34
+ - prd-creator: add Language Standard rule — code as SSoT, definitive form for observable behavior, "Undetermined Items" only for genuinely undeterminable claims
35
+ - prd-creator: add Inferred verification rule — attempt code reading before classifying claims as Inferred
36
+
8
37
  ## [1.16.1] - 2026-02-23
9
38
 
10
39
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ai-project",
3
- "version": "1.16.1",
3
+ "version": "1.16.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": [