create-ai-project 1.20.8 → 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.
- package/.claude/agents-en/acceptance-test-generator.md +5 -1
- package/.claude/agents-en/code-reviewer.md +83 -40
- package/.claude/agents-en/code-verifier.md +84 -40
- package/.claude/agents-en/codebase-analyzer.md +7 -8
- package/.claude/agents-en/design-sync.md +1 -1
- package/.claude/agents-en/document-reviewer.md +5 -6
- package/.claude/agents-en/integration-test-reviewer.md +5 -5
- package/.claude/agents-en/investigator.md +7 -8
- package/.claude/agents-en/prd-creator.md +1 -1
- package/.claude/agents-en/quality-fixer-frontend.md +35 -163
- package/.claude/agents-en/quality-fixer.md +35 -160
- package/.claude/agents-en/requirement-analyzer.md +5 -7
- package/.claude/agents-en/rule-advisor.md +4 -4
- package/.claude/agents-en/scope-discoverer.md +14 -6
- package/.claude/agents-en/security-reviewer.md +38 -15
- package/.claude/agents-en/skill-creator.md +1 -1
- package/.claude/agents-en/skill-reviewer.md +1 -1
- package/.claude/agents-en/solver.md +7 -6
- package/.claude/agents-en/task-decomposer.md +1 -1
- package/.claude/agents-en/task-executor-frontend.md +124 -142
- package/.claude/agents-en/task-executor.md +124 -162
- package/.claude/agents-en/technical-designer-frontend.md +141 -179
- package/.claude/agents-en/technical-designer.md +138 -153
- package/.claude/agents-en/ui-spec-designer.md +1 -1
- package/.claude/agents-en/verifier.md +7 -8
- package/.claude/agents-en/work-planner.md +18 -6
- package/.claude/agents-ja/acceptance-test-generator.md +6 -2
- package/.claude/agents-ja/code-reviewer.md +87 -44
- package/.claude/agents-ja/code-verifier.md +85 -41
- package/.claude/agents-ja/codebase-analyzer.md +7 -8
- package/.claude/agents-ja/design-sync.md +2 -2
- package/.claude/agents-ja/document-reviewer.md +7 -13
- package/.claude/agents-ja/integration-test-reviewer.md +6 -6
- package/.claude/agents-ja/investigator.md +8 -9
- package/.claude/agents-ja/prd-creator.md +2 -2
- package/.claude/agents-ja/quality-fixer-frontend.md +92 -221
- package/.claude/agents-ja/quality-fixer.md +84 -209
- package/.claude/agents-ja/requirement-analyzer.md +6 -8
- package/.claude/agents-ja/rule-advisor.md +5 -5
- package/.claude/agents-ja/scope-discoverer.md +15 -7
- package/.claude/agents-ja/security-reviewer.md +42 -19
- package/.claude/agents-ja/skill-creator.md +1 -1
- package/.claude/agents-ja/skill-reviewer.md +1 -1
- package/.claude/agents-ja/solver.md +8 -7
- package/.claude/agents-ja/task-decomposer.md +26 -26
- package/.claude/agents-ja/task-executor-frontend.md +171 -189
- package/.claude/agents-ja/task-executor.md +135 -170
- package/.claude/agents-ja/technical-designer-frontend.md +214 -252
- package/.claude/agents-ja/technical-designer.md +198 -212
- package/.claude/agents-ja/ui-spec-designer.md +2 -2
- package/.claude/agents-ja/verifier.md +8 -9
- package/.claude/agents-ja/work-planner.md +19 -7
- package/.claude/commands-en/add-integration-tests.md +29 -6
- package/.claude/commands-en/build.md +18 -13
- package/.claude/commands-en/front-build.md +18 -13
- package/.claude/commands-en/front-review.md +12 -1
- package/.claude/commands-en/implement.md +16 -7
- package/.claude/commands-en/review.md +12 -1
- package/.claude/commands-ja/add-integration-tests.md +37 -14
- package/.claude/commands-ja/build.md +29 -24
- package/.claude/commands-ja/front-build.md +29 -24
- package/.claude/commands-ja/front-review.md +12 -1
- package/.claude/commands-ja/implement.md +24 -15
- package/.claude/commands-ja/review.md +12 -1
- package/.claude/skills-en/documentation-criteria/SKILL.md +2 -2
- package/.claude/skills-en/documentation-criteria/references/task-template.md +4 -1
- package/.claude/skills-en/documentation-criteria/references/ui-spec-template.md +1 -1
- package/.claude/skills-en/subagents-orchestration-guide/SKILL.md +15 -9
- package/.claude/skills-en/task-analyzer/references/skills-index.yaml +3 -2
- package/.claude/skills-en/typescript-testing/SKILL.md +1 -1
- package/.claude/skills-ja/documentation-criteria/SKILL.md +3 -3
- package/.claude/skills-ja/documentation-criteria/references/task-template.md +26 -23
- package/.claude/skills-ja/documentation-criteria/references/ui-spec-template.md +1 -1
- package/.claude/skills-ja/subagents-orchestration-guide/SKILL.md +15 -9
- package/.claude/skills-ja/task-analyzer/references/skills-index.yaml +3 -2
- package/.claude/skills-ja/typescript-testing/SKILL.md +1 -1
- package/CHANGELOG.md +44 -0
- package/package.json +1 -1
|
@@ -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
|
|
85
|
-
- `approved` → ステップ4へ
|
|
86
|
-
- `readyForQualityCheck: true` → ステップ4へ
|
|
87
|
-
4. **quality-fixer-frontend
|
|
88
|
-
5. **quality-fixer-frontend
|
|
89
|
-
- `stub_detected` → `incompleteImplementations[]
|
|
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
|
-
**重要**:
|
|
94
|
+
**重要**: 全サブエージェントレスポンスの status フィールドをパースし、4ステップサイクルの対応ブランチを実行。quality-fixer-frontend が `approved` を返すまで次のタスクに進まない。
|
|
95
95
|
|
|
96
|
-
##
|
|
96
|
+
## サブエージェントのスコープ境界
|
|
97
|
+
|
|
98
|
+
本レシピから呼び出すサブエージェントプロンプトの末尾に以下のブロックを必ず付与する:
|
|
97
99
|
|
|
98
|
-
**全サブエージェントプロンプトの末尾に必須追加**:
|
|
99
100
|
```
|
|
100
|
-
|
|
101
|
-
|
|
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.
|
|
121
|
-
-
|
|
122
|
-
- task-executor-frontend
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
77
|
-
- `approved` → ステップ3へ
|
|
78
|
-
- それ以外 → ステップ3へ
|
|
79
|
-
3. **quality-fixer
|
|
80
|
-
- `stub_detected` → `incompleteImplementations[]
|
|
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
|
|
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
|
|
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 |
|
|
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
|
|
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
|
|
@@ -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
|
|
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
|
|
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
|
|
@@ -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 |
|
|
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
|
|
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
|
|
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:
|
|
141
|
-
| security-reviewer | status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes | On needs_revision:
|
|
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
|
|
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.
|
|
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
|
|
|
@@ -243,7 +245,7 @@ During autonomous execution, route agents by task filename pattern:
|
|
|
243
245
|
### Step 2 Execution Details
|
|
244
246
|
- `status: escalation_needed` or `status: blocked` -> Escalate to user
|
|
245
247
|
- `requiresTestReview` is `true` -> Execute **integration-test-reviewer**
|
|
246
|
-
- If verdict is `needs_revision` ->
|
|
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
|
|
247
249
|
- If verdict is `approved` -> Proceed to quality-fixer
|
|
248
250
|
|
|
249
251
|
### Conditions for Stopping Autonomous Execution
|
|
@@ -271,6 +273,10 @@ Every subagent prompt must include:
|
|
|
271
273
|
|
|
272
274
|
Construct the prompt from the agent's Input Parameters section and the deliverables available at that point in the flow.
|
|
273
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
|
+
|
|
274
280
|
### Call Example (codebase-analyzer)
|
|
275
281
|
- subagent_type: "codebase-analyzer"
|
|
276
282
|
- description: "Codebase analysis"
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
-
|
|
154
|
+
- **本作業計画用に生成されたテストスケルトンファイルパスを配置**(統合テスト・E2E)
|
|
155
155
|
- **検証戦略の要約**(Design Docから抽出)
|
|
156
156
|
- **最終フェーズに品質保証を含む**(必須)
|
|
157
157
|
- 進捗記録(チェックボックス形式)
|
|
@@ -1,54 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Task: [タスク名]
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
3
|
+
Metadata:
|
|
4
|
+
- Dependencies: task-01 -> Deliverable: docs/plans/analysis/research-results.md
|
|
5
|
+
- Provides: docs/plans/analysis/api-spec.md(調査・設計タスクの場合)
|
|
6
|
+
- Size: 小規模(1-2ファイル)
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Implementation Content
|
|
9
9
|
[このタスクで達成すること]
|
|
10
10
|
*依存関係の成果物を参照する場合は明記
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Target Files
|
|
13
13
|
- [ ] [実装ファイルパス]
|
|
14
14
|
- [ ] [テストファイルパス]
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Investigation Targets
|
|
17
17
|
実装開始前に読むべきファイル(ファイルパス、任意でサーチヒント付き):
|
|
18
|
-
- [例: src/orders/checkout (processOrder関数) —
|
|
18
|
+
- [例: src/orders/checkout (processOrder関数) — タスクの性質に基づきタスク分解時に決定]
|
|
19
19
|
|
|
20
|
-
##
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
## Investigation Notes
|
|
21
|
+
(実装観察事項を実装開始前にここへ追記する。)
|
|
22
|
+
|
|
23
|
+
## Implementation Steps (TDD: Red-Green-Refactor)
|
|
24
|
+
### 1. Red Phase
|
|
25
|
+
- [ ] 全ての Investigation Targets を読み、主要な所見を記録
|
|
26
|
+
- [ ] Dependencies の成果物を確認(ある場合)
|
|
24
27
|
- [ ] 契約定義を確認・作成
|
|
25
28
|
- [ ] 失敗するテストを書く
|
|
26
29
|
- [ ] テストを実行し失敗を確認
|
|
27
30
|
|
|
28
|
-
### 2. Green
|
|
31
|
+
### 2. Green Phase
|
|
29
32
|
- [ ] テストをパスする最小限の実装を追加
|
|
30
33
|
- [ ] 追加したテストのみ実行しパスを確認
|
|
31
34
|
|
|
32
|
-
### 3. Refactor
|
|
35
|
+
### 3. Refactor Phase
|
|
33
36
|
- [ ] コードを改善(テストはパス状態を維持)
|
|
34
37
|
- [ ] 追加したテストが引き続きパスすることを確認
|
|
35
38
|
|
|
36
|
-
##
|
|
37
|
-
(作業計画書ヘッダーより —
|
|
39
|
+
## Quality Assurance Mechanisms
|
|
40
|
+
(作業計画書ヘッダーより — このタスクの Target Files に該当するメカニズム)
|
|
38
41
|
- [ツール/チェック名] — 検証内容: [何を担保するか] — 設定/出典: [パス] — 種別: `executable_check` | `passive_constraint`
|
|
39
42
|
|
|
40
|
-
##
|
|
41
|
-
|
|
42
|
-
- **検証手法**: [何をどう検証するか — 例: 「新実装の出力をsrc/legacy/order_calcの既存実装と比較」「エンドポイントをテストDBに対して実行しレスポンスがコントラクトに一致することを確認」]
|
|
43
|
+
## Operation Verification Methods
|
|
44
|
+
(作業計画書の Verification Strategy から導出)
|
|
45
|
+
- **検証手法**: [何をどう検証するか — 例: 「新実装の出力を src/legacy/order_calc の既存実装と比較」「エンドポイントをテストDBに対して実行しレスポンスがコントラクトに一致することを確認」]
|
|
43
46
|
- **成功基準**: [正しさを証明する観察可能な成果 — 例: 「全入力パターンで既存実装と出力が一致」「APIが期待スキーマで200を返す」]
|
|
44
47
|
- **失敗時の対応**: [検証失敗時の対処 — 例: 「続行前にアプローチを再評価」「ユーザーにエスカレーション」]
|
|
45
48
|
- **検証レベル**: [L1: エンドユーザー機能としての動作確認 / L2: 新規テスト追加・パス / L3: ビルドエラーなし]
|
|
46
49
|
|
|
47
|
-
##
|
|
50
|
+
## Completion Criteria
|
|
48
51
|
- [ ] 追加した全テストがパス
|
|
49
|
-
- [ ]
|
|
52
|
+
- [ ] Operation Verification Methods に基づく動作確認完了
|
|
50
53
|
- [ ] 成果物作成完了(調査・設計タスクの場合)
|
|
51
54
|
|
|
52
|
-
##
|
|
55
|
+
## Notes
|
|
53
56
|
- 影響範囲: [変更が波及する可能性のある領域]
|
|
54
57
|
- スコープ境界: [変更せず維持するファイル — パスと理由]
|
|
@@ -114,7 +114,7 @@ description: サブエージェントのタスク分担と連携を調整。規
|
|
|
114
114
|
|
|
115
115
|
| 規模 | ファイル数 | PRD | ADR | Design Doc | 作業計画書 |
|
|
116
116
|
|------|-----------|-----|-----|------------|-----------|
|
|
117
|
-
| 小規模 | 1-2 | 更新※1 | 不要 | 不要 |
|
|
117
|
+
| 小規模 | 1-2 | 更新※1 | 不要 | 不要 | task-template 形式の単一タスクファイル(`docs/plans/tasks/` 直下、計画書ファイルは別途作成しない) |
|
|
118
118
|
| 中規模 | 3-5 | 更新※1 | 条件付き※2 | **必須** | **必須** |
|
|
119
119
|
| 大規模 | 6以上 | **必須**※3 | 条件付き※2 | **必須** | **必須** |
|
|
120
120
|
|
|
@@ -131,13 +131,13 @@ description: サブエージェントのタスク分担と連携を調整。規
|
|
|
131
131
|
| requirement-analyzer | scale, confidence, adrRequired, crossLayerScope, scopeDependencies, questions | scaleでフローを選択。adrRequiredでADRステップ要否を判断 |
|
|
132
132
|
| codebase-analyzer | analysisScope.categoriesDetected, dataModel.detected, qualityAssurance (mechanisms[], domainConstraints[]), focusAreas[], existingElements count, limitations | focusAreasをtechnical-designerにコンテキストとして渡す |
|
|
133
133
|
| code-verifier | status (consistent/mostly_consistent/needs_review/inconsistent), consistencyScore, discrepancies[], reverseCoverage (dataOperationsInCode, testBoundariesSectionPresent). 実装前: Design Docの主張を既存コードに対して検証。実装後: 実装のDesign Doc整合性を検証(`code_paths`で変更ファイルにスコープ) | discrepanciesをdocument-reviewerに連携 |
|
|
134
|
-
| task-executor | status (escalation_needed/completed), escalation_type
|
|
135
|
-
| quality-fixer | 入力: `task_file`(現在のタスクファイルパス —
|
|
134
|
+
| task-executor | 入力: `task_file`(オーケストレーションフローでは必須); 任意の Fix Mode シグナル `requiredFixes` または `incompleteImplementations` — いずれかが非空の場合、`task_already_completed` チェックをスキップし、各項目の `file_path` / `location`(`location` は `file[:line]` として解釈)で許可リストを拡張する。出力: 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} | escalation_needed時: escalation_type別に対応 |
|
|
135
|
+
| quality-fixer | 入力: `task_file`(現在のタスクファイルパス — オーケストレーションフローでは常に渡す)、`filesModified`(上流の実装ステップのレスポンスから抽出 — 当該タスクの書き込み集合を未完成実装検出の主要スコープとして渡す。省略時は `git diff HEAD` にフォールバック)。Status: approved/stub_detected/blocked。`stub_detected` → 上流の実装ステップに `incompleteImplementations[]` の詳細を添えて差し戻し、本実装完了後にquality-fixerを再実行。`blocked` → 下記quality-fixer blockedハンドリング参照 | stub_detected: 実装ステップを再実行。blocked: 下記参照 |
|
|
136
136
|
| document-reviewer | approvalReady (true/false) | trueで次ステップへ。falseで修正を依頼 |
|
|
137
137
|
| design-sync | sync_status (NO_CONFLICTS/CONFLICTS_FOUND) | CONFLICTS_FOUND時: 矛盾をユーザーに提示してから進む |
|
|
138
|
-
| integration-test-reviewer | status (approved/needs_revision/blocked), requiredFixes | needs_revision時: requiredFixes
|
|
139
|
-
| security-reviewer | status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes | needs_revision時: requiredFixes
|
|
140
|
-
| acceptance-test-generator | status, generatedFiles
|
|
138
|
+
| integration-test-reviewer | status (approved/needs_revision/blocked), requiredFixes | needs_revision時: 同じ task_file と requiredFixes[] を渡してルーティング先の executor を Fix Mode で再実行 |
|
|
139
|
+
| security-reviewer | status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes | needs_revision時: 影響ファイルをTarget Filesに含めた統合修正タスクファイルを作成し、その task_file と requiredFixes[] を渡してexecutor を Fix Mode で起動(build/implementレシピ参照) |
|
|
140
|
+
| acceptance-test-generator | status, generatedFiles (integration: path\|null, e2e: path\|null), budgetUsage, e2eAbsenceReason (E2E 出力時は null。それ以外は no_multi_step_journey \| below_threshold_user_confirmed) | ファイルの存在を確認し、不在理由(e2eAbsenceReason)を添えて work-planner に渡す |
|
|
141
141
|
|
|
142
142
|
### quality-fixer blockedハンドリング
|
|
143
143
|
|
|
@@ -181,8 +181,10 @@ quality-fixerが `status: "blocked"` を返した場合、`reason`で判別:
|
|
|
181
181
|
|
|
182
182
|
### 小規模(1-2ファイル) - 2ステップ
|
|
183
183
|
|
|
184
|
-
1. work-planner →
|
|
185
|
-
2.
|
|
184
|
+
1. work-planner → 簡易作業計画作成。本スケールでは作業計画書とタスク分解ステップを分けず、`docs/plans/tasks/` 直下に task-template 形式の単一タスクファイルを直接出力する。task-executor にはそのパスを `task_file` として渡す **[停止: 一括承認]**
|
|
185
|
+
2. task-executor → quality-fixer → commit(タスクごと)→ 完了報告
|
|
186
|
+
|
|
187
|
+
注: 小規模スケールでも実装ステップは task-executor を介して標準の4ステップサイクル(`task-executor → エスカレーション判定 → quality-fixer → commit`)で実行する。オーケストレーターによる直接編集は行わない。
|
|
186
188
|
|
|
187
189
|
## レイヤー横断オーケストレーション
|
|
188
190
|
|
|
@@ -238,7 +240,7 @@ requirement-analyzerが複数レイヤー(backend + frontend)にまたがる
|
|
|
238
240
|
### Step 2 実行詳細
|
|
239
241
|
- `status: escalation_needed` または `status: blocked` → ユーザーにエスカレーション
|
|
240
242
|
- `requiresTestReview` が `true` → **integration-test-reviewer** を実行
|
|
241
|
-
- verdict が `needs_revision` →
|
|
243
|
+
- verdict が `needs_revision` → ルーティング先の executor(レイヤー別エージェントルーティング 参照、task-executor または task-executor-frontend)を **Fix Mode** で再実行(同じ `task_file` と `requiredFixes[]` を渡す)
|
|
242
244
|
- verdict が `approved` → quality-fixer へ進む
|
|
243
245
|
|
|
244
246
|
### 自律実行の停止条件
|
|
@@ -267,6 +269,10 @@ requirement-analyzerが複数レイヤー(backend + frontend)にまたがる
|
|
|
267
269
|
|
|
268
270
|
エージェントのInput Parametersセクションと、フロー内のその時点で利用可能な成果物からプロンプトを構成する。
|
|
269
271
|
|
|
272
|
+
追加の2つのルール:
|
|
273
|
+
- サブエージェントは Agent prompt と自身が読み込んだファイルしか参照できない。必須のパス、先行 JSON、パラメータ、スコープ制約をプロンプトに明示的に注入する。
|
|
274
|
+
- 以下の例の `[placeholder]` は Agent ツール呼び出し前にすべて具体値へ置換する。
|
|
275
|
+
|
|
270
276
|
### Call Example (codebase-analyzer)
|
|
271
277
|
- subagent_type: "codebase-analyzer"
|
|
272
278
|
- description: "コードベース分析"
|
|
@@ -23,6 +23,7 @@ skills:
|
|
|
23
23
|
- "コメント記述ルール"
|
|
24
24
|
- "エラーハンドリングの基本原則"
|
|
25
25
|
- "Rule of Three - コード重複の判断基準"
|
|
26
|
+
- "参照の代表性"
|
|
26
27
|
- "よくある失敗パターンと回避方法"
|
|
27
28
|
- "デバッグ手法"
|
|
28
29
|
- "型安全性の基礎"
|
|
@@ -32,7 +33,7 @@ skills:
|
|
|
32
33
|
- "Red-Green-Refactorプロセス(テストファースト開発)"
|
|
33
34
|
- "テスト設計原則"
|
|
34
35
|
- "テストの粒度原則"
|
|
35
|
-
- "Security Principles
|
|
36
|
+
- "Security Principles"
|
|
36
37
|
|
|
37
38
|
typescript-rules:
|
|
38
39
|
skill: "typescript-rules"
|
|
@@ -110,7 +111,6 @@ skills:
|
|
|
110
111
|
- "AI自動化ルール"
|
|
111
112
|
- "図表作成要件"
|
|
112
113
|
- "共通ADRとの関係性"
|
|
113
|
-
- "フェーズ分割基準"
|
|
114
114
|
- "テンプレート"
|
|
115
115
|
|
|
116
116
|
implementation-approach:
|
|
@@ -146,6 +146,7 @@ skills:
|
|
|
146
146
|
- "テスト種別と上限"
|
|
147
147
|
- "振る舞い優先の原則"
|
|
148
148
|
- "スケルトン仕様"
|
|
149
|
+
- "マルチステップユーザージャーニーの定義"
|
|
149
150
|
- "実装ルール"
|
|
150
151
|
- "レビュー基準"
|
|
151
152
|
|
|
@@ -172,7 +172,7 @@ const sdkMock = {
|
|
|
172
172
|
- AI生成のデータアクセスコードはスキーマのhallucinationリスクが高い
|
|
173
173
|
- 生成されたクエリは正しい構文でも、存在しないスキーマ要素を参照する場合がある
|
|
174
174
|
- モックベースのテストはスキーマの正確性に関わらずパスする
|
|
175
|
-
- 緩和策: Design Doc
|
|
175
|
+
- 緩和策: Design Docに明示的なスキーマ参照を含めることで、レビュー時にドキュメント化されたスキーマとデータアクセスコードを照合可能にする
|
|
176
176
|
|
|
177
177
|
## Vitestの基本例
|
|
178
178
|
|