create-ai-project 1.20.7 → 1.20.9

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 (85) hide show
  1. package/.claude/agents-en/acceptance-test-generator.md +6 -4
  2. package/.claude/agents-en/code-reviewer.md +93 -42
  3. package/.claude/agents-en/code-verifier.md +84 -42
  4. package/.claude/agents-en/codebase-analyzer.md +32 -17
  5. package/.claude/agents-en/design-sync.md +3 -3
  6. package/.claude/agents-en/document-reviewer.md +20 -8
  7. package/.claude/agents-en/integration-test-reviewer.md +5 -7
  8. package/.claude/agents-en/investigator.md +7 -10
  9. package/.claude/agents-en/prd-creator.md +1 -3
  10. package/.claude/agents-en/quality-fixer-frontend.md +36 -166
  11. package/.claude/agents-en/quality-fixer.md +36 -163
  12. package/.claude/agents-en/requirement-analyzer.md +5 -9
  13. package/.claude/agents-en/rule-advisor.md +4 -4
  14. package/.claude/agents-en/scope-discoverer.md +14 -8
  15. package/.claude/agents-en/security-reviewer.md +38 -17
  16. package/.claude/agents-en/skill-creator.md +2 -4
  17. package/.claude/agents-en/skill-reviewer.md +1 -3
  18. package/.claude/agents-en/solver.md +9 -10
  19. package/.claude/agents-en/task-decomposer.md +1 -3
  20. package/.claude/agents-en/task-executor-frontend.md +123 -143
  21. package/.claude/agents-en/task-executor.md +123 -163
  22. package/.claude/agents-en/technical-designer-frontend.md +163 -186
  23. package/.claude/agents-en/technical-designer.md +160 -157
  24. package/.claude/agents-en/ui-spec-designer.md +1 -3
  25. package/.claude/agents-en/verifier.md +12 -15
  26. package/.claude/agents-en/work-planner.md +21 -11
  27. package/.claude/agents-ja/acceptance-test-generator.md +7 -5
  28. package/.claude/agents-ja/code-reviewer.md +97 -46
  29. package/.claude/agents-ja/code-verifier.md +85 -43
  30. package/.claude/agents-ja/codebase-analyzer.md +32 -17
  31. package/.claude/agents-ja/design-sync.md +4 -4
  32. package/.claude/agents-ja/document-reviewer.md +22 -15
  33. package/.claude/agents-ja/integration-test-reviewer.md +6 -8
  34. package/.claude/agents-ja/investigator.md +8 -11
  35. package/.claude/agents-ja/prd-creator.md +2 -4
  36. package/.claude/agents-ja/quality-fixer-frontend.md +93 -224
  37. package/.claude/agents-ja/quality-fixer.md +85 -212
  38. package/.claude/agents-ja/requirement-analyzer.md +6 -10
  39. package/.claude/agents-ja/rule-advisor.md +5 -5
  40. package/.claude/agents-ja/scope-discoverer.md +15 -9
  41. package/.claude/agents-ja/security-reviewer.md +42 -21
  42. package/.claude/agents-ja/skill-creator.md +2 -4
  43. package/.claude/agents-ja/skill-reviewer.md +1 -3
  44. package/.claude/agents-ja/solver.md +10 -11
  45. package/.claude/agents-ja/task-decomposer.md +26 -28
  46. package/.claude/agents-ja/task-executor-frontend.md +170 -190
  47. package/.claude/agents-ja/task-executor.md +134 -171
  48. package/.claude/agents-ja/technical-designer-frontend.md +224 -247
  49. package/.claude/agents-ja/technical-designer.md +206 -202
  50. package/.claude/agents-ja/ui-spec-designer.md +2 -4
  51. package/.claude/agents-ja/verifier.md +13 -16
  52. package/.claude/agents-ja/work-planner.md +21 -11
  53. package/.claude/commands-en/add-integration-tests.md +29 -6
  54. package/.claude/commands-en/build.md +18 -13
  55. package/.claude/commands-en/front-build.md +18 -13
  56. package/.claude/commands-en/front-review.md +12 -1
  57. package/.claude/commands-en/implement.md +16 -7
  58. package/.claude/commands-en/review.md +12 -1
  59. package/.claude/commands-ja/add-integration-tests.md +37 -14
  60. package/.claude/commands-ja/build.md +29 -24
  61. package/.claude/commands-ja/front-build.md +29 -24
  62. package/.claude/commands-ja/front-review.md +12 -1
  63. package/.claude/commands-ja/implement.md +24 -15
  64. package/.claude/commands-ja/review.md +12 -1
  65. package/.claude/skills-en/documentation-criteria/SKILL.md +2 -2
  66. package/.claude/skills-en/documentation-criteria/references/design-template.md +15 -1
  67. package/.claude/skills-en/documentation-criteria/references/plan-template.md +1 -1
  68. package/.claude/skills-en/documentation-criteria/references/task-template.md +4 -1
  69. package/.claude/skills-en/documentation-criteria/references/ui-spec-template.md +1 -1
  70. package/.claude/skills-en/frontend-typescript-rules/SKILL.md +1 -1
  71. package/.claude/skills-en/skill-optimization/SKILL.md +1 -1
  72. package/.claude/skills-en/subagents-orchestration-guide/SKILL.md +34 -20
  73. package/.claude/skills-en/task-analyzer/references/skills-index.yaml +3 -2
  74. package/.claude/skills-en/typescript-testing/SKILL.md +1 -1
  75. package/.claude/skills-ja/documentation-criteria/SKILL.md +3 -3
  76. package/.claude/skills-ja/documentation-criteria/references/design-template.md +15 -1
  77. package/.claude/skills-ja/documentation-criteria/references/plan-template.md +1 -1
  78. package/.claude/skills-ja/documentation-criteria/references/task-template.md +26 -23
  79. package/.claude/skills-ja/documentation-criteria/references/ui-spec-template.md +1 -1
  80. package/.claude/skills-ja/skill-optimization/SKILL.md +1 -1
  81. package/.claude/skills-ja/subagents-orchestration-guide/SKILL.md +34 -20
  82. package/.claude/skills-ja/task-analyzer/references/skills-index.yaml +3 -2
  83. package/.claude/skills-ja/typescript-testing/SKILL.md +1 -1
  84. package/CHANGELOG.md +68 -0
  85. package/package.json +1 -1
@@ -76,33 +76,34 @@ Agentツールでtask-decomposerを呼び出す:
76
76
  **必須実行サイクル**: `task-executor → エスカレーションチェック → quality-fixer → commit`
77
77
 
78
78
  各タスクで必須:
79
- 1. **TaskCreateでタスク登録**: 作業ステップを登録。必ず含める: 最初に「スキル制約の確認」、最後に「スキル忠実度の検証」
80
- 2. **task-executor実行**: タスク実装を実行(レイヤー横断時: subagents-orchestration-guideのレイヤー別エージェントルーティング参照)
81
- 3. **task-executorレスポンスチェック**:
79
+ 1. **TaskCreateでタスク登録**: 作業ステップを登録。必ず含める: 最初に「ロード済みスキルから具体ルールを抽出」、最後に「抽出ルールを最終JSON前に検証」
80
+ 2. **task-executor を呼び出す**: タスク実装を実行(レイヤー横断 の場合は subagents-orchestration-guide の レイヤー別エージェントルーティング 参照)
81
+ 3. **task-executor レスポンスをチェック**:
82
82
  - `status: "escalation_needed"` または `"blocked"` → 停止してユーザーにエスカレーション
83
- - `requiresTestReview` が `true` → **integration-test-reviewer**を実行
84
- - `needs_revision` → `requiredFixes`を添えてステップ2に戻る
85
- - `approved` → ステップ4へ
86
- - `readyForQualityCheck: true` → ステップ4へ
87
- 4. **quality-fixer実行**: 全品質チェックと修正を実行(レイヤー横断時: レイヤー別エージェントルーティング参照)。**必ず**現在のタスクファイルパスを`task_file`として渡す
88
- 5. **quality-fixerレスポンスチェック**:
89
- - `stub_detected` → `incompleteImplementations[]`の詳細を添えてステップ2に戻す
83
+ - `requiresTestReview` が `true` → **integration-test-reviewer** を実行
84
+ - `needs_revision` → ステップ2 に戻り、同じ `task_file` と `requiredFixes[]` 配列を入力として task-executor を **Fix Mode** で再起動
85
+ - `approved` → ステップ4
86
+ - `readyForQualityCheck: true` → ステップ4
87
+ 4. **quality-fixer を呼び出す**: 全品質チェックと修正を実行(レイヤー横断 の場合は レイヤー別エージェントルーティング 参照)。`task_file` として現在のタスクファイルパス、`filesModified` として実装ステップの `filesModified` 配列を **必ず渡す**(未完成実装検出を当該タスクの実書き込み集合にスコープする。省略時は quality-fixer が `git diff HEAD` にフォールバック)
88
+ 5. **quality-fixer レスポンスをチェック**:
89
+ - `stub_detected` → ステップ2 に戻り、同じ `task_file` と `incompleteImplementations[]` 配列を入力として task-executor を **Fix Mode** で再起動
90
90
  - `blocked` → 停止してユーザーにエスカレーション
91
- - `approved` → ステップ6へ
92
- 6. **承認後コミット**: git commitを実行
91
+ - `approved` → ステップ6
92
+ 6. **承認後コミット**: git commit を実行
93
93
 
94
- **重要**: 例外なく全ての構造化レスポンスを監視し、全ての品質ゲートが通過することを確保。quality-fixerが`approved`を返すまで次のタスクに進まない。
94
+ **重要**: 全サブエージェントレスポンスの status フィールドをパースし、4ステップサイクルの対応ブランチを実行。quality-fixer が `approved` を返すまで次のタスクに進まない。
95
95
 
96
- ## サブエージェント呼び出し時の制約
96
+ ## サブエージェントのスコープ境界
97
+
98
+ 本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
97
99
 
98
- **全サブエージェントプロンプトの末尾に必須追加**:
99
100
  ```
100
- 【システム制約】
101
- このエージェントはbuildスキルのスコープ内で動作します。オーケストレーターが提供したルールのみを使用してください。
101
+ Scope boundary for subagents:
102
+ Operate within the task scope and referenced files in the prompt.
103
+ Use loaded skills to execute that scope.
104
+ Escalate when the required fix or investigation falls outside that scope.
102
105
  ```
103
106
 
104
- 自律的なサブエージェントの安定実行にはスコープ制約が必要です。全てのサブエージェントプロンプトにこの制約を必ず付加してください。
105
-
106
107
  承認確認後、自律実行モードを開始。要件変更を検知した場合は即座に停止。
107
108
 
108
109
  ## 実装後検証(全タスク完了後)
@@ -115,11 +116,15 @@ Agentツールでtask-decomposerを呼び出す:
115
116
 
116
117
  2. **結果の統合** — 合格/不合格の基準はsubagents-orchestration-guideの実装後検証セクション参照。統合検証レポートをユーザーに提示。
117
118
 
118
- 3. **修正サイクル**(いずれかの検証エージェントが不合格の場合、最大2回):
119
- - 全ての対応可能な検出事項を1つのタスクファイルに統合
120
- - task-executorで統合修正を実行 quality-fixer
121
- - 不合格の検証エージェントのみ再実行
122
- - 2回のサイクル後も不合格が残る場合残存する検出事項とともにユーザーにエスカレーション
119
+ 3. **修正サイクル**(いずれかの verifier が fail のとき、最大2サイクル):
120
+ - task-template を用いて、統合修正タスクファイル(例: `docs/plans/tasks/post-impl-fixes-YYYYMMDD.md`)を作成。Target Files には全 verifier の `requiredFixes[].location` / `discrepancies[].codeLocation` が指すファイルパスの和集合を `file[:line]` として解釈してファイル部分のみ取り出して投入する。これにより、元タスクに依らず影響ファイルすべてが executor の File Scope Constraint に許可される。
121
+ - task-executor を起動する前に、**verifier 出力を正規化**して統一的な `requiredFixes[]` にする:
122
+ - `security-reviewer.requiredFixes[]`(既に `{location, issue, fix}` 形式)→ そのまま透過。
123
+ - `code-verifier.discrepancies[]`対応可能な各 discrepancy(status が `drift` / `gap` / `conflict`)を `{location: discrepancy.codeLocation, issue: discrepancy.claim, fix: "[Design Doc 整合性回復に必要な具体的修正。discrepancy.classification と evidence から導出]"}` に変換。
124
+ - `discrepancy.codeLocation` が `null`(主張が未実装)の場合は、`location` に予定された対象ファイルパスを設定し、そのファイルを統合タスクの Target Files にも追加する。対象ファイルが特定できない場合は、Fix Mode を起動する代わりにユーザーにエスカレーション。
125
+ - `task_file` には統合修正タスクファイルのパス、`requiredFixes` に正規化配列を設定して task-executor を **Fix Mode** で起動。
126
+ - 続いて quality-fixer、その後 fail した verifier のみ再実行。
127
+ - 2サイクル後も fail が残る場合 → 残存指摘事項を添えてユーザーにエスカレーション
123
128
 
124
129
  4. **全て合格** → 完了レポートへ
125
130
 
@@ -76,33 +76,34 @@ Agentツールでtask-decomposerを呼び出す:
76
76
  **必須実行サイクル**: `task-executor-frontend → エスカレーションチェック → quality-fixer-frontend → commit`
77
77
 
78
78
  各タスクで必須:
79
- 1. **TaskCreateでタスク登録**: 作業ステップを登録。必ず含める: 最初に「スキル制約の確認」、最後に「スキル忠実度の検証」
80
- 2. **Agent tool** (subagent_type: "task-executor-frontend") → タスクファイルパスをpromptに渡し、構造化レスポンスを受け取る
81
- 3. **task-executor-frontendレスポンスチェック**:
79
+ 1. **TaskCreateでタスク登録**: 作業ステップを登録。必ず含める: 最初に「ロード済みスキルから具体ルールを抽出」、最後に「抽出ルールを最終JSON前に検証」
80
+ 2. **Agent tool** (subagent_type: "task-executor-frontend") → タスクファイルパスを prompt に渡し、構造化レスポンスを受け取る
81
+ 3. **task-executor-frontend レスポンスをチェック**:
82
82
  - `status: "escalation_needed"` または `"blocked"` → 停止してユーザーにエスカレーション
83
- - `requiresTestReview` が `true` → **integration-test-reviewer**を実行
84
- - `needs_revision` → `requiredFixes`を添えてステップ2に戻る
85
- - `approved` → ステップ4へ
86
- - `readyForQualityCheck: true` → ステップ4へ
87
- 4. **quality-fixer-frontend実行**: 全品質チェックと修正を実行(レイヤー横断時: レイヤー別エージェントルーティング参照)。**必ず**現在のタスクファイルパスを`task_file`として渡す
88
- 5. **quality-fixer-frontendレスポンスチェック**:
89
- - `stub_detected` → `incompleteImplementations[]`の詳細を添えてステップ2に戻す
83
+ - `requiresTestReview` が `true` → **integration-test-reviewer** を実行
84
+ - `needs_revision` → ステップ2 に戻り、同じ `task_file` と `requiredFixes[]` 配列を入力として task-executor-frontend を **Fix Mode** で再起動
85
+ - `approved` → ステップ4
86
+ - `readyForQualityCheck: true` → ステップ4
87
+ 4. **quality-fixer-frontend を呼び出す**: 全品質チェックと修正を実行。`task_file` として現在のタスクファイルパス、`filesModified` として実装ステップの `filesModified` 配列を **必ず渡す**(未完成実装検出を当該タスクの実書き込み集合にスコープする。省略時は quality-fixer が `git diff HEAD` にフォールバック)
88
+ 5. **quality-fixer-frontend レスポンスをチェック**:
89
+ - `stub_detected` → ステップ2 に戻り、同じ `task_file` と `incompleteImplementations[]` 配列を入力として task-executor-frontend を **Fix Mode** で再起動
90
90
  - `blocked` → 停止してユーザーにエスカレーション
91
- - `approved` → ステップ6へ
92
- 6. **承認後コミット**: git commitを実行
91
+ - `approved` → ステップ6
92
+ 6. **承認後コミット**: git commit を実行
93
93
 
94
- **重要**: 全てのサブエージェントレスポンスのstatusフィールドをパースし、4ステップサイクルの対応ブランチを実行。quality-fixer-frontendが`approved`を返すまで次のタスクに進まない。
94
+ **重要**: 全サブエージェントレスポンスの status フィールドをパースし、4ステップサイクルの対応ブランチを実行。quality-fixer-frontend が `approved` を返すまで次のタスクに進まない。
95
95
 
96
- ## サブエージェント呼び出し時の制約
96
+ ## サブエージェントのスコープ境界
97
+
98
+ 本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
97
99
 
98
- **全サブエージェントプロンプトの末尾に必須追加**:
99
100
  ```
100
- 【システム制約】
101
- このエージェントはbuildスキルのスコープ内で動作します。オーケストレーターが提供したルールのみを使用してください。
101
+ Scope boundary for subagents:
102
+ Operate within the task scope and referenced files in the prompt.
103
+ Use loaded skills to execute that scope.
104
+ Escalate when the required fix or investigation falls outside that scope.
102
105
  ```
103
106
 
104
- 自律的なサブエージェントの安定実行にはスコープ制約が必要です。全てのサブエージェントプロンプトにこの制約を必ず付加してください。
105
-
106
107
  ! ls -la docs/plans/*.md | head -10
107
108
 
108
109
  承認ステータスを確認してから進む。確認後、自律実行モードを開始。要件変更を検出したら即座に停止。
@@ -117,11 +118,15 @@ Agentツールでtask-decomposerを呼び出す:
117
118
 
118
119
  2. **結果の統合** — 合格/不合格の基準はsubagents-orchestration-guideの実装後検証セクション参照。統合検証レポートをユーザーに提示。
119
120
 
120
- 3. **修正サイクル**(いずれかの検証エージェントが不合格の場合、最大2回):
121
- - 全ての対応可能な検出事項を1つのタスクファイルに統合
122
- - task-executor-frontendで統合修正を実行 quality-fixer-frontend
123
- - 不合格の検証エージェントのみ再実行
124
- - 2回のサイクル後も不合格が残る場合残存する検出事項とともにユーザーにエスカレーション
121
+ 3. **修正サイクル**(いずれかの verifier が fail のとき、最大2サイクル):
122
+ - task-template を用いて、統合修正タスクファイル(例: `docs/plans/tasks/post-impl-fixes-YYYYMMDD.md`)を作成。Target Files には全 verifier の `requiredFixes[].location` / `discrepancies[].codeLocation` が指すファイルパスの和集合を `file[:line]` として解釈してファイル部分のみ取り出して投入する。これにより、元タスクに依らず影響ファイルすべてが executor の File Scope Constraint に許可される。
123
+ - task-executor-frontend を起動する前に、**verifier 出力を正規化**して統一的な `requiredFixes[]` にする:
124
+ - `security-reviewer.requiredFixes[]`(既に `{location, issue, fix}` 形式)→ そのまま透過。
125
+ - `code-verifier.discrepancies[]`対応可能な各 discrepancy(status が `drift` / `gap` / `conflict`)を `{location: discrepancy.codeLocation, issue: discrepancy.claim, fix: "[Design Doc 整合性回復に必要な具体的修正。discrepancy.classification と evidence から導出]"}` に変換。
126
+ - `discrepancy.codeLocation` が `null`(主張が未実装)の場合は、`location` に予定された対象ファイルパスを設定し、そのファイルを統合タスクの Target Files にも追加する。対象ファイルが特定できない場合は、Fix Mode を起動する代わりにユーザーにエスカレーション。
127
+ - `task_file` には統合修正タスクファイルのパス、`requiredFixes` に正規化配列を設定して task-executor-frontend を **Fix Mode** で起動。
128
+ - 続いて quality-fixer-frontend、その後 fail した verifier のみ再実行。
129
+ - 2サイクル後も fail が残る場合 → 残存指摘事項を添えてユーザーにエスカレーション
125
130
 
126
131
  4. **全て合格** → 完了レポートへ
127
132
 
@@ -106,7 +106,7 @@ Agent toolでtask-executor-frontendを呼び出す:
106
106
  Agent toolでquality-fixer-frontendを呼び出す:
107
107
  - `subagent_type`: "quality-fixer-frontend"
108
108
  - `description`: "品質ゲートチェック"
109
- - `prompt`: "修正ファイルの品質ゲート通過を確認。"
109
+ - `prompt`: "修正ファイルの品質ゲート通過を確認。task_file: docs/plans/tasks/review-fixes-YYYYMMDD.md。filesModified: [直前の実装ステップのレスポンスから抽出]。"
110
110
 
111
111
  ### Step 9: code-reviewer再検証
112
112
 
@@ -151,3 +151,14 @@ Security Review:
151
151
  - コミット済みシークレット(blocked → 人間の判断が必要)
152
152
 
153
153
  **スコープ**: Design Doc準拠検証、セキュリティレビュー、自動修正。
154
+
155
+ ## サブエージェントのスコープ境界
156
+
157
+ 本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
158
+
159
+ ```
160
+ Scope boundary for subagents:
161
+ Operate within the task scope and referenced files in the prompt.
162
+ Use loaded skills to execute that scope.
163
+ Escalate when the required fix or investigation falls outside that scope.
164
+ ```
@@ -39,7 +39,7 @@ requirement-analyzerの`crossLayerScope`がレイヤー横断(backend + fronte
39
39
 
40
40
  ### 5. 規模判定後:TaskCreateでフロー全ステップを登録(必須)
41
41
 
42
- 規模判定完了後、**subagents-orchestration-guideスキルの該当フロー全ステップをTaskCreateで登録**。最初に「スキル制約の確認」、最後に「スキル忠実度の検証」を必ず含める。登録後、TaskListを参照してフローを進める。
42
+ 規模判定完了後、**subagents-orchestration-guideスキルの該当フロー全ステップをTaskCreateで登録**。最初に「ロード済みスキルから具体ルールを抽出」、最後に「抽出ルールを最終JSON前に検証」を必ず含める。登録後、TaskListを参照してフローを進める。
43
43
 
44
44
  ### 6. 次のアクション実行
45
45
 
@@ -58,29 +58,38 @@ requirement-analyzerの`crossLayerScope`がレイヤー横断(backend + fronte
58
58
 
59
59
  **フロー厳守**: subagents-orchestration-guideスキルの「自律実行中のタスク管理」に従い、TaskCreate/TaskUpdateで4ステップを管理する
60
60
 
61
- ## 🚨 サブエージェント呼び出し時の制約
61
+ ## サブエージェントのスコープ境界
62
62
 
63
- サブエージェントからrule-advisorを呼び出すとシステムクラッシュが発生するため、プロンプト末尾に以下を含める:
63
+ 本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
64
+
65
+ ```
66
+ Scope boundary for subagents:
67
+ Operate within the task scope and referenced files in the prompt.
68
+ Use loaded skills to execute that scope.
69
+ Escalate when the required fix or investigation falls outside that scope.
70
+ ```
71
+
72
+ 加えて、サブエージェントから rule-advisor を呼び出すとシステムクラッシュを引き起こすため、全サブエージェントプロンプトの末尾に以下の制約も含める:
64
73
  ```
65
- 【制約】rule-advisorはメインAIのみが使用可能です
74
+ [Constraint] rule-advisor can only be used by Main AI
66
75
  ```
67
76
 
68
77
  ## 🎯 オーケストレーターとしての必須責務
69
78
 
70
79
  ### タスク実行品質サイクル
71
80
  subagents-orchestration-guideスキルの「自律実行中のタスク管理」に従い、TaskCreate/TaskUpdateで以下のステップを管理:
72
- 1. **task-executor実行**: 実装を実行(レイヤー横断時: レイヤー別エージェントルーティング参照)
73
- 2. **task-executorレスポンスチェック**:
81
+ 1. **task-executor を呼び出す**: 実装を実行(レイヤー横断 の場合は レイヤー別エージェントルーティング 参照)
82
+ 2. **task-executor レスポンスをチェック**:
74
83
  - `status: "escalation_needed"` または `"blocked"` → 停止してユーザーにエスカレーション
75
- - `requiresTestReview` が `true` → **integration-test-reviewer**を実行
76
- - `needs_revision` → `requiredFixes`を添えてステップ1に戻る
77
- - `approved` → ステップ3へ
78
- - それ以外 → ステップ3へ
79
- 3. **quality-fixer実行**: 全品質チェックと修正を実行(レイヤー横断時: レイヤー別エージェントルーティング参照)。**必ず**現在のタスクファイルパスを`task_file`として渡す
80
- - `stub_detected` → `incompleteImplementations[]`の詳細を添えてステップ1に戻す
84
+ - `requiresTestReview` が `true` → **integration-test-reviewer** を実行
85
+ - `needs_revision` → ステップ1 に戻り、同じ `task_file` と `requiredFixes[]` 配列を入力として task-executor を **Fix Mode** で再起動
86
+ - `approved` → ステップ3
87
+ - それ以外 → ステップ3
88
+ 3. **quality-fixer を呼び出す**: 全品質チェックと修正を実行(レイヤー横断 の場合は レイヤー別エージェントルーティング 参照)。`task_file` として現在のタスクファイルパス、`filesModified` として実装ステップの `filesModified` 配列を **必ず渡す**(未完成実装検出を当該タスクの実書き込み集合にスコープする。省略時は quality-fixer が `git diff HEAD` にフォールバック)
89
+ - `stub_detected` → ステップ1 に戻り、同じ `task_file` と `incompleteImplementations[]` 配列を入力として task-executor を **Fix Mode** で再起動
81
90
  - `blocked` → ユーザーにエスカレーション
82
- - `approved` → ステップ4へ
83
- 4. **承認後コミット**: `approved`確認後 → git commitを実行
91
+ - `approved` → ステップ4
92
+ 4. **承認後コミット**: `approved` 確認後 → git commit を実行
84
93
 
85
94
  ### Security Review(全タスク完了後)
86
95
 
@@ -88,7 +97,7 @@ subagents-orchestration-guideスキルの「自律実行中のタスク管理」
88
97
  1. **Agent tool** (subagent_type: "security-reviewer") → Design Docパスと実装ファイルリストを渡す
89
98
  2. レスポンスを確認:
90
99
  - `approved` または `approved_with_notes` → 完了レポートへ(notesがあれば含める)
91
- - `needs_revision` → task-executorで`requiredFixes`を実行、quality-fixer実行後、security-reviewerを再実行
100
+ - `needs_revision` → task-template を用いて、統合修正タスクファイル(`docs/plans/tasks/security-fixes-YYYYMMDD.md`)を作成。Target Files には `requiredFixes[].location` を `file[:line]` として解釈してファイル部分のみ取り出した和集合を投入する(元タスクに依らず影響ファイルすべてが executor の File Scope Constraint に許可される)。続いて、`task_file` には新しい統合修正タスクファイルのパス、`requiredFixes` には `security-reviewer.requiredFixes[]` を設定して task-executor を **Fix Mode** で起動。その後 quality-fixer を実行し、最後に security-reviewer を再起動する。
92
101
  - `blocked` → ユーザーにエスカレーション
93
102
 
94
103
  ### テスト情報の伝達
@@ -106,7 +106,7 @@ Agent toolでtask-executorを呼び出す:
106
106
  Agent toolでquality-fixerを呼び出す:
107
107
  - `subagent_type`: "quality-fixer"
108
108
  - `description`: "品質ゲートチェック"
109
- - `prompt`: "修正ファイルの品質ゲート通過を確認。"
109
+ - `prompt`: "修正ファイルの品質ゲート通過を確認。task_file: docs/plans/tasks/review-fixes-YYYYMMDD.md。filesModified: [直前の実装ステップのレスポンスから抽出]。"
110
110
 
111
111
  ### 9. code-reviewer再検証
112
112
 
@@ -152,3 +152,14 @@ Security Review:
152
152
  - コミット済みシークレット(blocked → 人間の判断が必要)
153
153
 
154
154
  **スコープ**: Design Doc準拠検証、セキュリティレビュー、自動修正まで。
155
+
156
+ ## サブエージェントのスコープ境界
157
+
158
+ 本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
159
+
160
+ ```
161
+ Scope boundary for subagents:
162
+ Operate within the task scope and referenced files in the prompt.
163
+ Use loaded skills to execute that scope.
164
+ Escalate when the required fix or investigation falls outside that scope.
165
+ ```
@@ -14,7 +14,7 @@ description: Guides PRD, ADR, Design Doc, UI Spec, and Work Plan creation. Use w
14
14
  | ADR Conditions Met (see below) | ADR -> Design Doc -> Work Plan | Start immediately |
15
15
  | 6+ Files | ADR -> Design Doc -> Work Plan (Required) | Start immediately |
16
16
  | 3-5 Files | Design Doc -> Work Plan (Recommended) | Start immediately |
17
- | 1-2 Files | None | Direct implementation |
17
+ | 1-2 Files | None | Implementation cycle without work plan |
18
18
 
19
19
  ## ADR Creation Conditions (Required if Any Apply)
20
20
 
@@ -87,7 +87,7 @@ description: Guides PRD, ADR, Design Doc, UI Spec, and Work Plan creation. Use w
87
87
  - Visual acceptance criteria (golden states, layout constraints)
88
88
  - Accessibility requirements (keyboard, screen reader, contrast)
89
89
 
90
- **Scope**: Screen structure, transitions, component decomposition, interaction design, and visual acceptance criteria only. Technical implementation and API contracts belong in Design Doc, test implementation in acceptance-test-generator skeletons, schedule in Work Plan.
90
+ **Scope**: Screen structure, transitions, component decomposition, interaction design, and visual acceptance criteria only. Technical implementation and API contracts belong in Design Doc, test implementation in test skeleton generation output, schedule in Work Plan.
91
91
 
92
92
  **Required Structural Elements**:
93
93
  - At least one component with state x display matrix and interaction table
@@ -110,6 +110,20 @@ Each AC is written in EARS format. Keywords determine test type.
110
110
  ### Code Inspection Evidence
111
111
  - [path:function] — [relevance: similar functionality / integration point / pattern reference]
112
112
 
113
+ ### Fact Disposition Table
114
+
115
+ One row per codebase analysis `focusAreas` entry. This table is the primary binding between structural existing-behavior facts and the design (Verification Strategy's Output Comparison binds runtime behavior separately). Other sections that describe existing behavior reference the row by `fact_id` value.
116
+
117
+ | Fact ID | Focus Area | Disposition | Rationale | Evidence | Related Files |
118
+ |---------|------------|-------------|-----------|----------|---------------|
119
+ | [fact_id from focusAreas] | [area name from focusAreas] | preserve / transform / remove / out-of-scope | [preserve: confirmation-only language, e.g., "existing behavior retained without modification" — Rationale asserting a behavior change is flagged as preserve mismatch; transform: state new observable outcome, e.g., "branch X now returns 404 instead of 410" — Rationale asserting no change at all is flagged as transform mismatch; remove: state reason with PRD/UI Spec citation when policy-driven — Rationale asserting production-code retention is flagged as remove mismatch (test/migration retention stated explicitly is acceptable); out-of-scope: cite the scope-defining section and prefer preserve when behavior continues unchanged] | [evidence value carried verbatim from focusAreas] | [comma-separated path list carried verbatim from focusAreas.relatedFiles, e.g., `src/auth/createUser.ts, src/api/routes/users.ts`] |
120
+
121
+ ### Cross-Layer Assumptions (cross-layer flow only)
122
+
123
+ When this Design Doc depends on unverified claims from a prior-layer Design Doc (see Prior-Layer Verification), list each with justification and downstream verification target:
124
+
125
+ - [claim]: [justification]; verify at [step or artifact]
126
+
113
127
  ## Design
114
128
 
115
129
  ### Change Impact Map
@@ -299,7 +313,7 @@ Mark as N/A with brief rationale when the feature has no data layer dependencies
299
313
 
300
314
  ## Verification Strategy
301
315
 
302
- Verification Strategy defines what correctness means and how to prove it at design time. L1/L2/L3 (from implementation-approach skill) define completion verification granularity at task execution time.
316
+ Verification Strategy defines what correctness means and how to prove it at design time. L1/L2/L3 (verification granularity tiers) define completion verification granularity at task execution time.
303
317
 
304
318
  ### Correctness Proof Method
305
319
 
@@ -69,7 +69,7 @@ Maps each Design Doc technical requirement to the covering task(s). One row per
69
69
 
70
70
  Select ONE phase structure based on implementation approach from Design Doc.
71
71
  See documentation-criteria skill for detailed Phase Division Criteria.
72
- All quality checks follow Quality Check Workflow from coding-standards skill.
72
+ All quality checks follow the project's standard Quality Check Workflow.
73
73
  **Delete the unused Option entirely from the final plan.** For hybrid approach, use Option C.
74
74
 
75
75
  ### Option A: Vertical Slice Phase Structure
@@ -15,7 +15,10 @@ Metadata:
15
15
 
16
16
  ## Investigation Targets
17
17
  Files to read before starting implementation (file path, with optional search hint):
18
- - [e.g., src/orders/checkout (processOrder function) — determined by task-decomposer based on task nature]
18
+ - [e.g., src/orders/checkout (processOrder function) — determined during task decomposition based on task nature]
19
+
20
+ ## Investigation Notes
21
+ (Implementation observations are appended here before implementation begins.)
19
22
 
20
23
  ## Implementation Steps (TDD: Red-Green-Refactor)
21
24
  ### 1. Red Phase
@@ -5,7 +5,7 @@
5
5
  [Purpose and scope of this UI Specification in 2-3 sentences]
6
6
 
7
7
  ### Target PRD
8
- - PRD path: [docs/prd/xxx-prd.md | "N/A — based on requirement-analyzer output"]
8
+ - PRD path: [docs/prd/xxx-prd.md | "N/A — based on requirements analysis output"]
9
9
  - Feature scope: [Which PRD requirements this UI Spec covers | Summary of analyzed requirements]
10
10
 
11
11
  ### Design Source
@@ -7,7 +7,7 @@ description: Applies React/TypeScript type safety, component design, and state m
7
7
 
8
8
  ## Frontend-Specific Anti-patterns
9
9
 
10
- In addition to universal anti-patterns in coding-standards skill, watch for these Frontend-specific issues:
10
+ In addition to universal anti-patterns, watch for these Frontend-specific issues:
11
11
 
12
12
  - **Prop drilling through 3+ levels** - Should use Context API or state management
13
13
  - **Massive components (300+ lines)** - Split into smaller components
@@ -136,7 +136,7 @@ Measurable quality criteria for skill content. Each principle includes a pass/fa
136
136
  | # | Principle | Pass Criteria | Fail Example |
137
137
  |---|-----------|---------------|--------------|
138
138
  | 1 | Context efficiency | Every sentence contributes to LLM decision-making. No filler. | "This is an important skill that helps with..." |
139
- | 2 | Deduplication | No concept explained twice at the same abstraction level within the skill or across skills. Mentions at different structural roles (e.g., classification framework vs execution detail) are not duplicates, provided the re-mention adds new constraints or criteria | Same error handling rules in both coding-standards and typescript-rules |
139
+ | 2 | Deduplication | No concept explained twice at the same abstraction level within the skill or across skills. Mentions at different structural roles (e.g., classification framework vs execution detail) are not duplicates, provided the re-mention adds new constraints or criteria | Same error handling rules restated at the same abstraction level in multiple related skills |
140
140
  | 3 | Grouping | Related criteria in single section (minimize read operations) | Scattered error handling rules across 4 sections |
141
141
  | 4 | Measurability | All criteria use if-then format or concrete thresholds | "Write clean code" without definition of clean |
142
142
  | 5 | Positive form | Instructions state what to do (BP-001 applied) | "Don't use any" instead of "Use only X" |
@@ -40,7 +40,7 @@ When receiving a new task, pass user requirements directly to requirement-analyz
40
40
  2. **task-decomposer**: Appropriate task decomposition of work plans
41
41
  3. **task-executor**: Individual task execution and structured response
42
42
  4. **integration-test-reviewer**: Review integration/E2E tests for skeleton compliance
43
- 5. **security-reviewer**: Security compliance review against Design Doc and coding-standards after all tasks complete
43
+ 5. **security-reviewer**: Security compliance review against Design Doc and project coding standards after all tasks complete
44
44
 
45
45
  ### Document Creation Agents
46
46
  6. **requirement-analyzer**: Requirement analysis and work scale determination (WebSearch enabled, latest technical information research)
@@ -116,7 +116,7 @@ I repeat this cycle for each task to ensure quality.
116
116
 
117
117
  | Scale | File Count | PRD | ADR | Design Doc | Work Plan |
118
118
  |-------|------------|-----|-----|------------|-----------|
119
- | Small | 1-2 | Update[^1] | Not needed | Not needed | Simplified (inline comments only) |
119
+ | Small | 1-2 | Update[^1] | Not needed | Not needed | Single task file in task-template format under `docs/plans/tasks/` (no separate plan document) |
120
120
  | Medium | 3-5 | Update[^1] | Conditional[^2] | **Required** | **Required** |
121
121
  | Large | 6+ | **Required**[^3] | Conditional[^2] | **Required** | **Required** |
122
122
 
@@ -133,12 +133,12 @@ Subagents respond in JSON format. Key fields for orchestrator decisions:
133
133
  | requirement-analyzer | scale, confidence, adrRequired, crossLayerScope, scopeDependencies, questions | Select flow by scale; check adrRequired for ADR step |
134
134
  | codebase-analyzer | analysisScope.categoriesDetected, dataModel.detected, qualityAssurance (mechanisms[], domainConstraints[]), focusAreas[], existingElements count, limitations | Pass focusAreas to technical-designer as context |
135
135
  | code-verifier | status (consistent/mostly_consistent/needs_review/inconsistent), consistencyScore, discrepancies[], reverseCoverage (dataOperationsInCode, testBoundariesSectionPresent). Pre-implementation: verifies Design Doc claims against existing codebase. Post-implementation: verifies implementation consistency against Design Doc (pass `code_paths` scoped to changed files) | Flag discrepancies for document-reviewer |
136
- | task-executor | status (escalation_needed/completed), escalation_type (design_compliance_violation/similar_function_found/similar_component_found/investigation_target_not_found/out_of_scope_file/dependency_version_uncertain), testsAdded, requiresTestReview | On escalation_needed: handle by escalation_type |
137
- | quality-fixer | Input: `task_file` (path to current task file — always pass this in orchestrated flows). Status: approved/stub_detected/blocked. `stub_detected` → route back to task-executor with `incompleteImplementations[]` details for completion, then re-run quality-fixer. `blocked` → see quality-fixer blocked handling below | On stub_detected: re-invoke task-executor. On blocked: see handling below |
136
+ | task-executor | Input: `task_file` (required in orchestrated flows); optional Fix Mode signals `requiredFixes` or `incompleteImplementations` — when either is non-empty, skip `task_already_completed` and extend allowed list with each item's `file_path` / `location` (parse `location` as `file[:line]`). Output: status (escalation_needed/completed), filesModified[], testsAdded, requiresTestReview, escalation_type ∈ {task_file_not_found, task_already_completed, target_files_missing, design_compliance_violation, similar_function_found, similar_component_found, investigation_target_not_found, out_of_scope_file, dependency_version_uncertain}. | On escalation_needed: handle by escalation_type |
137
+ | quality-fixer | Input: `task_file` (path to current task file — always pass this in orchestrated flows), `filesModified` (extract from the upstream implementation step's response — passes the task's write set as the primary scope for stub-detection; falls back to `git diff HEAD` when omitted). Status: approved/stub_detected/blocked. `stub_detected` → route back to the implementation step with `incompleteImplementations[]` details for completion, then re-run quality-fixer. `blocked` → see quality-fixer blocked handling below | On stub_detected: re-invoke the implementation step. On blocked: see handling below |
138
138
  | document-reviewer | approvalReady (true/false) | Proceed to next step on true; request fixes on false |
139
139
  | design-sync | sync_status (NO_CONFLICTS/CONFLICTS_FOUND) | On CONFLICTS_FOUND: present conflicts to user before proceeding |
140
- | integration-test-reviewer | status (approved/needs_revision/blocked), requiredFixes | On needs_revision: pass requiredFixes back to task-executor |
141
- | security-reviewer | status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes | On needs_revision: pass requiredFixes back to task-executor |
140
+ | integration-test-reviewer | status (approved/needs_revision/blocked), requiredFixes | On needs_revision: re-invoke the routed executor in Fix Mode with the same task_file and requiredFixes[] |
141
+ | security-reviewer | status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes | On needs_revision: create a consolidated fix task file with affected files in Target Files, then invoke executor in Fix Mode with that task_file and requiredFixes[] (see build/implement recipes) |
142
142
  | acceptance-test-generator | status, generatedFiles (integration: path\|null, e2e: path\|null), budgetUsage, e2eAbsenceReason (null when E2E emitted, otherwise: no_multi_step_journey\|below_threshold_user_confirmed) | Verify files exist, pass to work-planner with absence reason |
143
143
 
144
144
  ### quality-fixer Blocked Handling
@@ -147,7 +147,7 @@ When quality-fixer returns `status: "blocked"`, discriminate by `reason`:
147
147
  - `"Cannot determine due to unclear specification"` → read `blockingIssues[]` for specification details
148
148
  - `"Execution prerequisites not met"` → read `missingPrerequisites[]` with `resolutionSteps` and present to user as actionable next steps
149
149
 
150
- ## My Basic Flow for Work Planning
150
+ ## My Basic Flow: Planning and Implementation
151
151
 
152
152
  When receiving new features or change requests, I first request requirement analysis from requirement-analyzer.
153
153
  According to scale determination:
@@ -186,8 +186,10 @@ According to scale determination:
186
186
 
187
187
  ### Small Scale (1-2 Files) - 2 Steps
188
188
 
189
- 1. work-planner → Simplified work plan creation **[Stop: Batch approval]**
190
- 2. Direct implementation → Completion report
189
+ 1. work-planner → Simplified work plan creation. At this scale, work-planner emits a single task-template-format task file directly under `docs/plans/tasks/` instead of a separate work plan + decomposition; that path is what task-executor receives as `task_file`. **[Stop: Batch approval]**
190
+ 2. task-executor quality-fixer commit (per task) → Completion report
191
+
192
+ Note: At Small scale the implementation step still runs through task-executor with the standard 4-step cycle (`task-executor → escalation judgment → quality-fixer → commit`). Direct orchestrator edits are not used.
191
193
 
192
194
  ## Cross-Layer Orchestration
193
195
 
@@ -200,17 +202,19 @@ Replace the standard Design Doc creation step with per-layer creation:
200
202
  | Step | Agent | Purpose |
201
203
  |------|-------|---------|
202
204
  | 8 | codebase-analyzer ×2 | Codebase analysis per layer (pass req-analyzer output, filtered to layer) |
203
- | 9a | technical-designer | Backend Design Doc (with backend codebase-analyzer context) |
204
- | 9b | technical-designer-frontend | Frontend Design Doc (with frontend codebase-analyzer context + backend Integration Points) |
205
- | 10 | code-verifier ×2 | Verify each Design Doc against existing code |
206
- | 11 | document-reviewer ×2 | Review each Design Doc (with code-verifier results as code_verification) |
207
- | 12 | design-sync | Cross-layer consistency verification **[Stop]** |
205
+ | 9 | technical-designer | Backend Design Doc (with backend codebase-analyzer context) |
206
+ | 10 | code-verifier | Verify Backend Design Doc against existing code (its result JSON becomes `prior_layer_verification` for step 12) |
207
+ | 11 | document-reviewer | Review Backend Design Doc (pass step-10 result as `code_verification` and backend codebase-analyzer JSON as `codebase_analysis`). **[Stop on critical issues]** — structural defects here block step 12. |
208
+ | 12 | technical-designer-frontend | Frontend Design Doc (with frontend codebase-analyzer context + reviewed Backend Design Doc + `prior_layer_verification` from step 10 + UI Spec) |
209
+ | 13 | code-verifier | Verify Frontend Design Doc against existing code |
210
+ | 14 | document-reviewer | Review Frontend Design Doc (pass step-13 result as `code_verification` and frontend codebase-analyzer JSON as `codebase_analysis`). **[Stop on critical issues]** — structural defects here block step 15. |
211
+ | 15 | design-sync | Cross-layer consistency verification **[Stop]** |
208
212
 
209
- Steps marked with ×2 invoke the agent once per layer. These invocations are independent and can run in parallel when the orchestrator supports concurrent Agent tool calls.
213
+ The `codebase-analyzer ×2` invocations can run in parallel. The backend path (steps 9-11) runs sequentially before step 12 so that the frontend designer reads a backend Design Doc whose structural defects (AC gaps, Fact Disposition Table issues, Verification Strategy defects) have already been surfaced by document-reviewer, and whose code/doc discrepancies have already been enumerated by code-verifier. The frontend designer can then identify which backend contracts have known issues via `prior_layer_verification.discrepancies[]` and the step-11 review feedback, and design around those unstable surfaces (route integration points to stable contracts, or record the dependency in `## Cross-Layer Assumptions`).
210
214
 
211
215
  **Layer Context in Design Doc Creation**:
212
216
  - **Backend**: "Create a backend Design Doc from PRD at [path]. Codebase analysis: [JSON from codebase-analyzer for backend layer]. Focus on: API contracts, data layer, business logic, service architecture."
213
- - **Frontend**: "Create a frontend Design Doc from PRD at [path]. Codebase analysis: [JSON from codebase-analyzer for frontend layer]. Reference backend Design Doc at [path] for API contracts and Integration Points. Focus on: component hierarchy, state management, UI interactions, data fetching."
217
+ - **Frontend**: "Create a frontend Design Doc from PRD at [path]. Codebase analysis: [JSON from codebase-analyzer for frontend layer]. Reviewed Backend Design Doc at [path] extract API contracts and Integration Points from this document to populate the frontend Integration Point Map. Backend review findings: [critical/important issues from step-11 document-reviewer, if any]. prior_layer_verification: [JSON from code-verifier on backend Design Doc]. Identify unstable backend contracts via `prior_layer_verification.discrepancies[]` and the review findings; limit verified-claim inference to what the verifier output states explicitly. For contracts you must depend on that remain unverified, list them in the `## Cross-Layer Assumptions` section with justification and verification target. Reference UI Spec at [path] for component structure. Focus on: component hierarchy, state management, UI interactions, data fetching."
214
218
 
215
219
  **design-sync**: Use frontend Design Doc as source. design-sync auto-discovers other Design Docs in `docs/design/` for comparison.
216
220
 
@@ -241,7 +245,7 @@ During autonomous execution, route agents by task filename pattern:
241
245
  ### Step 2 Execution Details
242
246
  - `status: escalation_needed` or `status: blocked` -> Escalate to user
243
247
  - `requiresTestReview` is `true` -> Execute **integration-test-reviewer**
244
- - If verdict is `needs_revision` -> Return to task-executor with `requiredFixes`
248
+ - If verdict is `needs_revision` -> Re-invoke the routed executor (task-executor or task-executor-frontend per Layer-Aware Agent Routing) in **Fix Mode** with the same `task_file` and the `requiredFixes[]` array
245
249
  - If verdict is `approved` -> Proceed to quality-fixer
246
250
 
247
251
  ### Conditions for Stopping Autonomous Execution
@@ -269,6 +273,10 @@ Every subagent prompt must include:
269
273
 
270
274
  Construct the prompt from the agent's Input Parameters section and the deliverables available at that point in the flow.
271
275
 
276
+ Two additional rules:
277
+ - Subagents see only the Agent prompt and files they read. Include required paths, prior JSON, parameters, and scope constraints explicitly.
278
+ - Replace every `[placeholder]` in examples below with concrete values before invoking the Agent tool.
279
+
272
280
  ### Call Example (codebase-analyzer)
273
281
  - subagent_type: "codebase-analyzer"
274
282
  - description: "Codebase analysis"
@@ -292,12 +300,18 @@ Construct the prompt from the agent's Input Parameters section and the deliverab
292
300
  #### codebase-analyzer → technical-designer
293
301
 
294
302
  **Pass to codebase-analyzer**: requirement-analyzer JSON output, PRD path (if exists), original user requirements
295
- **Pass to technical-designer**: codebase-analyzer JSON output as additional context in the Design Doc creation prompt. The designer uses `focusAreas`, `dataModel`, `dataTransformationPipelines`, and `qualityAssurance` to inform the Existing Codebase Analysis, Verification Strategy, and Quality Assurance Mechanisms sections.
303
+ **Pass to technical-designer**: codebase-analyzer JSON output as additional context in the Design Doc creation prompt. Required downstream uses:
304
+ - `focusAreas` → canonical disposition-target list for the Fact Disposition Table (one row per focusArea, carrying through `fact_id` and `evidence` verbatim)
305
+ - `dataModel`, `dataTransformationPipelines`, `qualityAssurance` → Existing Codebase Analysis, Verification Strategy, and Quality Assurance Mechanisms sections
296
306
 
297
307
  #### code-verifier → document-reviewer (Design Doc review)
298
308
 
299
- **Pass to code-verifier**: Design Doc path (doc_type: design-doc). `code_paths` is intentionally omitted — the verifier independently discovers code scope from the document.
300
- **Pass to document-reviewer**: code-verifier JSON output as `code_verification` parameter.
309
+ **Pass to code-verifier**: Design Doc path (doc_type: design-doc). Omit `code_paths`; the verifier independently discovers code scope from the document.
310
+ **Pass to document-reviewer**: code-verifier JSON output as `code_verification` parameter, **and** the same codebase-analyzer JSON previously given to the designer as `codebase_analysis`. The reviewer uses `codebase_analysis.focusAreas` to verify Fact Disposition Table coverage.
311
+
312
+ #### code-verifier + document-reviewer → next-layer technical-designer (cross-layer flow only)
313
+
314
+ **Pass to next-layer technical-designer**: reviewed prior-layer Design Doc path plus `prior_layer_verification` (the JSON from the prior-layer code-verifier). See Cross-Layer Orchestration section for sequencing. Use `prior_layer_verification.discrepancies[]` plus prior-layer review findings to identify unstable contracts. Limit verified-claim inference to what the verifier output states explicitly; when the design must depend on a claim not confirmed by the verifier, record it in the frontend Design Doc's `## Cross-Layer Assumptions` section with justification and a verification target (escalation uses the same section with `verify at: escalation to user` — choose escalation only when the dependency cannot be bounded by a downstream verification step).
301
315
 
302
316
  #### technical-designer → work-planner
303
317
 
@@ -21,6 +21,7 @@ skills:
21
21
  - "Comment Writing Rules"
22
22
  - "Error Handling Fundamentals"
23
23
  - "Rule of Three - Criteria for Code Duplication"
24
+ - "Reference Representativeness"
24
25
  - "Common Failure Patterns and Avoidance Methods"
25
26
  - "Debugging Techniques"
26
27
  - "Type Safety Fundamentals"
@@ -119,7 +120,6 @@ skills:
119
120
  - "AI Automation Rules"
120
121
  - "Diagram Requirements"
121
122
  - "Common ADR Relationships"
122
- - "Phase Division Criteria"
123
123
  - "Templates"
124
124
 
125
125
  implementation-approach:
@@ -155,6 +155,7 @@ skills:
155
155
  - "Test Types and Limits"
156
156
  - "Behavior-First Principle"
157
157
  - "Skeleton Specification"
158
+ - "Multi-Step User Journey Definition"
158
159
  - "Implementation Rules"
159
160
  - "Review Criteria"
160
161
 
@@ -173,7 +174,7 @@ skills:
173
174
  - "Constraints Between Subagents"
174
175
  - "Scale Determination and Document Requirements"
175
176
  - "Structured Response Specifications"
176
- - "My Basic Flow for Work Planning"
177
+ - "My Basic Flow: Planning and Implementation"
177
178
  - "Cross-Layer Orchestration"
178
179
  - "Autonomous Execution Mode"
179
180
  - "My Main Roles as Orchestrator"
@@ -172,7 +172,7 @@ The appropriate approach depends on project environment and CI/CD capabilities.
172
172
  - AI-generated data access code has heightened schema hallucination risk
173
173
  - Generated queries may use correct syntax but reference nonexistent schema elements
174
174
  - Mock-based tests pass regardless of schema accuracy
175
- - Mitigation: Design Docs should include explicit schema references; code-verifier reverse coverage verifies data operations against documented schemas
175
+ - Mitigation: Design Docs should include explicit schema references so that documented schemas can be cross-checked against data access code during review
176
176
 
177
177
  ## Basic Vitest Example
178
178
 
@@ -14,7 +14,7 @@ description: PRD、ADR、Design Doc、UI Spec、作業計画書の作成を支
14
14
  | ADR条件該当(下記参照) | ADR → Design Doc → 作業計画書 | 即座に開始 |
15
15
  | 6ファイル以上 | ADR → Design Doc → 作業計画書(必須) | 即座に開始 |
16
16
  | 3-5ファイル | Design Doc → 作業計画書(推奨) | 即座に開始 |
17
- | 1-2ファイル | なし | 直接実装 |
17
+ | 1-2ファイル | なし | 作業計画書なしの実装サイクル |
18
18
 
19
19
  ## ADR作成条件(いずれか該当で必須)
20
20
 
@@ -87,7 +87,7 @@ description: PRD、ADR、Design Doc、UI Spec、作業計画書の作成を支
87
87
  - ビジュアル受入条件(AC)(ゴールデンステート、レイアウト制約)
88
88
  - アクセシビリティ要件(キーボード、スクリーンリーダー、コントラスト)
89
89
 
90
- **スコープ**: 画面構造、遷移、コンポーネント分解、インタラクション設計、ビジュアル受入条件のみ。技術実装とAPIコントラクトはDesign Doc、テスト実装はacceptance-test-generatorスケルトン、スケジュールは作業計画書に記載。
90
+ **スコープ**: 画面構造、遷移、コンポーネント分解、インタラクション設計、ビジュアル受入条件のみ。技術実装とAPIコントラクトはDesign Doc、テスト実装はテストスケルトン生成出力、スケジュールは作業計画書に記載。
91
91
 
92
92
  **必須構造要素**:
93
93
  - 状態×表示マトリクスとインタラクション表を含むコンポーネントが1つ以上
@@ -151,7 +151,7 @@ description: PRD、ADR、Design Doc、UI Spec、作業計画書の作成を支
151
151
  - **フェーズ構成**(Design Docの技術的依存関係を基に作成)
152
152
  - タスク分解と依存関係(最大2階層まで)
153
153
  - スケジュールと期間見積もり
154
- - **テストスケルトンファイルパスを配置**(統合テスト・E2E)
154
+ - **本作業計画用に生成されたテストスケルトンファイルパスを配置**(統合テスト・E2E)
155
155
  - **検証戦略の要約**(Design Docから抽出)
156
156
  - **最終フェーズに品質保証を含む**(必須)
157
157
  - 進捗記録(チェックボックス形式)