create-ai-project 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents-en/code-reviewer.md +11 -1
- package/.claude/agents-en/code-verifier.md +5 -1
- package/.claude/agents-en/document-reviewer.md +4 -2
- package/.claude/agents-en/integration-test-reviewer.md +10 -0
- package/.claude/agents-en/investigator.md +6 -2
- package/.claude/agents-en/quality-fixer-frontend.md +15 -5
- package/.claude/agents-en/quality-fixer.md +15 -5
- package/.claude/agents-en/requirement-analyzer.md +5 -1
- package/.claude/agents-en/rule-advisor.md +9 -0
- package/.claude/agents-en/scope-discoverer.md +34 -4
- package/.claude/agents-en/security-reviewer.md +4 -0
- package/.claude/agents-en/solver.md +6 -2
- package/.claude/agents-en/task-executor-frontend.md +9 -0
- package/.claude/agents-en/task-executor.md +9 -0
- package/.claude/agents-en/verifier.md +6 -1
- package/.claude/agents-ja/acceptance-test-generator.md +6 -0
- package/.claude/agents-ja/code-reviewer.md +17 -1
- package/.claude/agents-ja/code-verifier.md +5 -1
- package/.claude/agents-ja/design-sync.md +5 -0
- package/.claude/agents-ja/document-reviewer.md +4 -2
- package/.claude/agents-ja/integration-test-reviewer.md +14 -0
- package/.claude/agents-ja/investigator.md +6 -2
- package/.claude/agents-ja/quality-fixer-frontend.md +15 -5
- package/.claude/agents-ja/quality-fixer.md +15 -5
- package/.claude/agents-ja/requirement-analyzer.md +9 -1
- package/.claude/agents-ja/rule-advisor.md +9 -0
- package/.claude/agents-ja/scope-discoverer.md +33 -3
- package/.claude/agents-ja/security-reviewer.md +4 -0
- package/.claude/agents-ja/solver.md +6 -2
- package/.claude/agents-ja/task-executor-frontend.md +9 -0
- package/.claude/agents-ja/task-executor.md +9 -0
- package/.claude/agents-ja/verifier.md +6 -1
- package/.claude/commands-en/reverse-engineer.md +13 -9
- package/.claude/commands-en/update-doc.md +10 -5
- package/.claude/commands-ja/reverse-engineer.md +13 -9
- package/.claude/commands-ja/update-doc.md +10 -5
- package/CHANGELOG.md +28 -0
- package/package.json +1 -1
|
@@ -75,11 +75,14 @@ Verify against the Design Doc architecture:
|
|
|
75
75
|
- No unnecessary duplicate implementations (Pattern 5 from coding-standards skill)
|
|
76
76
|
- Existing codebase analysis section includes similar functionality investigation results
|
|
77
77
|
|
|
78
|
-
### 5. Calculate Compliance
|
|
78
|
+
### 5. Calculate Compliance
|
|
79
79
|
- Compliance rate = (fulfilled items + 0.5 × partially fulfilled items) / total AC items × 100
|
|
80
80
|
- Compile all AC statuses, quality issues with specific locations
|
|
81
81
|
- Determine verdict based on compliance rate
|
|
82
82
|
|
|
83
|
+
### 6. Return JSON Result
|
|
84
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
85
|
+
|
|
83
86
|
## Output Format
|
|
84
87
|
|
|
85
88
|
```json
|
|
@@ -133,6 +136,13 @@ Verify against the Design Doc architecture:
|
|
|
133
136
|
- Acknowledge good implementations
|
|
134
137
|
- Present improvements as actionable items
|
|
135
138
|
|
|
139
|
+
## Completion Criteria
|
|
140
|
+
|
|
141
|
+
- [ ] All acceptance criteria individually evaluated
|
|
142
|
+
- [ ] Compliance rate calculated
|
|
143
|
+
- [ ] Verdict determined
|
|
144
|
+
- [ ] Final response is the JSON output
|
|
145
|
+
|
|
136
146
|
## Escalation Criteria
|
|
137
147
|
|
|
138
148
|
Recommend higher-level review when:
|
|
@@ -119,6 +119,10 @@ For each claim with collected evidence:
|
|
|
119
119
|
2. **Implementation Coverage**: What percentage of specs are implemented?
|
|
120
120
|
3. List undocumented features and unimplemented specs
|
|
121
121
|
|
|
122
|
+
### Step 6: Return JSON Result
|
|
123
|
+
|
|
124
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
125
|
+
|
|
122
126
|
## Output Format
|
|
123
127
|
|
|
124
128
|
**JSON format is mandatory.**
|
|
@@ -184,7 +188,7 @@ consistencyScore = (matchCount / verifiableClaimCount) * 100
|
|
|
184
188
|
- [ ] Identified undocumented features in code
|
|
185
189
|
- [ ] Identified unimplemented specifications
|
|
186
190
|
- [ ] Calculated consistency score
|
|
187
|
-
- [ ]
|
|
191
|
+
- [ ] Final response is the JSON output
|
|
188
192
|
|
|
189
193
|
## Output Self-Check
|
|
190
194
|
|
|
@@ -112,13 +112,15 @@ Checklist:
|
|
|
112
112
|
- [ ] If prior_context_count > 0: Each item has resolution status
|
|
113
113
|
- [ ] If prior_context_count > 0: `prior_context_check` object prepared
|
|
114
114
|
- [ ] Output is valid JSON
|
|
115
|
+
- [ ] Final response is the JSON output
|
|
115
116
|
|
|
116
117
|
Complete all items before proceeding to output.
|
|
117
118
|
|
|
118
|
-
### Step 6:
|
|
119
|
-
-
|
|
119
|
+
### Step 6: Return JSON Result
|
|
120
|
+
- Use the JSON schema according to review mode (comprehensive or perspective-specific)
|
|
120
121
|
- Clearly classify problem importance
|
|
121
122
|
- Include `prior_context_check` object if prior_context_count > 0
|
|
123
|
+
- Return the JSON result as the final response. See Output Format for the schema.
|
|
122
124
|
|
|
123
125
|
## Output Format
|
|
124
126
|
|
|
@@ -74,6 +74,9 @@ Verify the following for each test case:
|
|
|
74
74
|
| Internal Components | Use actual | Unnecessary mocking |
|
|
75
75
|
| Log Output Verification | Use vi.fn() | Mock without verification |
|
|
76
76
|
|
|
77
|
+
### 4. Return JSON Result
|
|
78
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
79
|
+
|
|
77
80
|
## Output Format
|
|
78
81
|
|
|
79
82
|
### Structured Response
|
|
@@ -194,3 +197,10 @@ When needs_revision decision, output fix instructions usable in subsequent proce
|
|
|
194
197
|
- IF `@dependency: full-system` → mock usage is FAILURE
|
|
195
198
|
- Verify execution timing: AFTER all components are implemented
|
|
196
199
|
- Verify critical user journey coverage is COMPLETE
|
|
200
|
+
|
|
201
|
+
## Completion Criteria
|
|
202
|
+
|
|
203
|
+
- [ ] All skeleton comments verified against implementation
|
|
204
|
+
- [ ] Implementation quality evaluated
|
|
205
|
+
- [ ] Mock boundaries verified (integration tests)
|
|
206
|
+
- [ ] Final response is the JSON output
|
|
@@ -71,12 +71,15 @@ Information source priority:
|
|
|
71
71
|
- Stopping at "~ is not configured" → without tracing why it's not configured
|
|
72
72
|
- Stopping at technical element names → without tracing why that state occurred
|
|
73
73
|
|
|
74
|
-
### Step 4: Impact Scope Identification
|
|
74
|
+
### Step 4: Impact Scope Identification
|
|
75
75
|
|
|
76
76
|
- Search for locations implemented with the same pattern (impactScope)
|
|
77
77
|
- Determine recurrenceRisk: low (isolated) / medium (2 or fewer locations) / high (3+ locations or design_gap)
|
|
78
78
|
- Disclose unexplored areas and investigation limitations
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
### Step 5: Return JSON Result
|
|
81
|
+
|
|
82
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
80
83
|
|
|
81
84
|
## Evidence Strength Classification
|
|
82
85
|
|
|
@@ -154,6 +157,7 @@ Information source priority:
|
|
|
154
157
|
- [ ] Enumerated 2+ hypotheses with causal tracking, evidence collection, and causeCategory determination for each
|
|
155
158
|
- [ ] Determined impactScope and recurrenceRisk
|
|
156
159
|
- [ ] Documented unexplored areas and investigation limitations
|
|
160
|
+
- [ ] Final response is the JSON output
|
|
157
161
|
|
|
158
162
|
## Output Self-Check
|
|
159
163
|
|
|
@@ -39,7 +39,13 @@ Use the appropriate run command based on the `packageManager` field in package.j
|
|
|
39
39
|
2. Error found → Execute fix immediately
|
|
40
40
|
3. After fix → Re-execute relevant phase
|
|
41
41
|
4. Repeat until all phases complete
|
|
42
|
-
5.
|
|
42
|
+
5. All pass → proceed to Step 5
|
|
43
|
+
6. Cannot determine spec → proceed to Step 5 with `blocked` status
|
|
44
|
+
|
|
45
|
+
**Step 5: Return JSON Result**
|
|
46
|
+
Return one of the following as the final response (see Output Format for schemas):
|
|
47
|
+
- `status: "approved"` — all quality checks pass
|
|
48
|
+
- `status: "blocked"` — specification unclear, business judgment required
|
|
43
49
|
|
|
44
50
|
### Phase Details
|
|
45
51
|
|
|
@@ -198,11 +204,9 @@ Execute `test` script (run all tests with Vitest)
|
|
|
198
204
|
}
|
|
199
205
|
```
|
|
200
206
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Summarize quality check results in an understandable way for users
|
|
207
|
+
## Intermediate Progress Report
|
|
204
208
|
|
|
205
|
-
|
|
209
|
+
During execution, report progress between tool calls using this format:
|
|
206
210
|
|
|
207
211
|
```markdown
|
|
208
212
|
📋 Phase [Number]: [Phase Name]
|
|
@@ -220,6 +224,12 @@ Issues requiring fixes:
|
|
|
220
224
|
✅ Phase [Number] Complete! Proceeding to next phase.
|
|
221
225
|
```
|
|
222
226
|
|
|
227
|
+
This is intermediate output only. The final response must be the JSON result (Step 5).
|
|
228
|
+
|
|
229
|
+
## Completion Criteria
|
|
230
|
+
|
|
231
|
+
- [ ] Final response is a single JSON with status `approved` or `blocked`
|
|
232
|
+
|
|
223
233
|
## Important Principles
|
|
224
234
|
|
|
225
235
|
✅ **Recommended**: Follow these principles to maintain high-quality React code:
|
|
@@ -39,7 +39,13 @@ Use the appropriate run command based on the `packageManager` field in package.j
|
|
|
39
39
|
2. Error found → Execute fix immediately
|
|
40
40
|
3. After fix → Re-execute relevant phase
|
|
41
41
|
4. Repeat until all phases complete
|
|
42
|
-
5.
|
|
42
|
+
5. All pass → proceed to Step 5
|
|
43
|
+
6. Cannot determine spec → proceed to Step 5 with `blocked` status
|
|
44
|
+
|
|
45
|
+
**Step 5: Return JSON Result**
|
|
46
|
+
Return one of the following as the final response (see Output Format for schemas):
|
|
47
|
+
- `status: "approved"` — all quality checks pass
|
|
48
|
+
- `status: "blocked"` — specification unclear, business judgment required
|
|
43
49
|
|
|
44
50
|
### Phase Details
|
|
45
51
|
|
|
@@ -159,11 +165,9 @@ Refer to the "Quality Check Requirements" section in technical-spec skill for de
|
|
|
159
165
|
}
|
|
160
166
|
```
|
|
161
167
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Summarize quality check results in an understandable way for users
|
|
168
|
+
## Intermediate Progress Report
|
|
165
169
|
|
|
166
|
-
|
|
170
|
+
During execution, report progress between tool calls using this format:
|
|
167
171
|
|
|
168
172
|
```markdown
|
|
169
173
|
📋 Phase [Number]: [Phase Name]
|
|
@@ -181,6 +185,12 @@ Issues requiring fixes:
|
|
|
181
185
|
✅ Phase [Number] Complete! Proceeding to next phase.
|
|
182
186
|
```
|
|
183
187
|
|
|
188
|
+
This is intermediate output only. The final response must be the JSON result (Step 5).
|
|
189
|
+
|
|
190
|
+
## Completion Criteria
|
|
191
|
+
|
|
192
|
+
- [ ] Final response is a single JSON with status `approved` or `blocked`
|
|
193
|
+
|
|
184
194
|
## Important Principles
|
|
185
195
|
|
|
186
196
|
✅ **Recommended**: Follow principles defined in skills to maintain high-quality code:
|
|
@@ -43,6 +43,9 @@ Identify constraints, risks, and dependencies. Use WebSearch to verify current t
|
|
|
43
43
|
### 6. Formulate Questions
|
|
44
44
|
Identify any ambiguities that affect scale determination (scopeDependencies) or require user confirmation before proceeding.
|
|
45
45
|
|
|
46
|
+
### 7. Return JSON Result
|
|
47
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
48
|
+
|
|
46
49
|
## Work Scale Determination Criteria
|
|
47
50
|
|
|
48
51
|
Scale determination and required document details follow documentation-criteria skill.
|
|
@@ -148,4 +151,5 @@ This agent executes each analysis independently and does not maintain previous s
|
|
|
148
151
|
- [ ] Have I properly estimated the impact scope?
|
|
149
152
|
- [ ] Have I correctly determined ADR necessity?
|
|
150
153
|
- [ ] Have I not overlooked technical risks?
|
|
151
|
-
- [ ] Have I listed scopeDependencies for uncertain scale?
|
|
154
|
+
- [ ] Have I listed scopeDependencies for uncertain scale?
|
|
155
|
+
- [ ] Final response is the JSON output
|
|
@@ -49,6 +49,9 @@ From each skill:
|
|
|
49
49
|
- Prioritize concrete procedures over abstract principles
|
|
50
50
|
- Include checklists and actionable items
|
|
51
51
|
|
|
52
|
+
### 4. Return JSON Result
|
|
53
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
54
|
+
|
|
52
55
|
## Output Format
|
|
53
56
|
|
|
54
57
|
Return structured JSON:
|
|
@@ -108,6 +111,12 @@ Return structured JSON:
|
|
|
108
111
|
- If skill file cannot be loaded: Suggest alternative skills
|
|
109
112
|
- If task content unclear: Include clarifying questions
|
|
110
113
|
|
|
114
|
+
## Completion Criteria
|
|
115
|
+
|
|
116
|
+
- [ ] Task analysis completed with type, scale, and tags
|
|
117
|
+
- [ ] Relevant skills loaded and sections extracted
|
|
118
|
+
- [ ] Final response is the JSON output
|
|
119
|
+
|
|
111
120
|
## Metacognitive Question Design
|
|
112
121
|
|
|
113
122
|
Generate 3-5 questions according to task nature:
|
|
@@ -38,8 +38,8 @@ Operates in an independent context without CLAUDE.md principles, executing auton
|
|
|
38
38
|
|
|
39
39
|
## Output Scope
|
|
40
40
|
|
|
41
|
-
This agent outputs **scope discovery results and
|
|
42
|
-
Document generation is out of scope for this agent.
|
|
41
|
+
This agent outputs **scope discovery results, evidence, and PRD unit grouping**.
|
|
42
|
+
Document generation (PRD content, Design Doc content) is out of scope for this agent.
|
|
43
43
|
|
|
44
44
|
## Core Responsibilities
|
|
45
45
|
|
|
@@ -104,8 +104,9 @@ Explore the codebase from both user-value and technical perspectives simultaneou
|
|
|
104
104
|
- Identify interface contracts
|
|
105
105
|
|
|
106
106
|
4. **Synthesis into Functional Units**
|
|
107
|
-
-
|
|
107
|
+
- Combine user-value groups and technical boundaries into functional units
|
|
108
108
|
- Each unit should represent a coherent feature with identifiable technical scope
|
|
109
|
+
- For each unit, identify its `valueProfile`: who uses it, what goal it serves, and what high-level capability it belongs to
|
|
109
110
|
- Apply Granularity Criteria (see below)
|
|
110
111
|
|
|
111
112
|
5. **Boundary Validation**
|
|
@@ -117,6 +118,15 @@ Explore the codebase from both user-value and technical perspectives simultaneou
|
|
|
117
118
|
- Stop discovery when 3 consecutive source types from the Discovery Sources table yield no new units
|
|
118
119
|
- Mark discovery as saturated in output
|
|
119
120
|
|
|
121
|
+
7. **PRD Unit Grouping** (execute only after steps 1-6 are fully complete)
|
|
122
|
+
- Using the finalized `discoveredUnits` and their `valueProfile` metadata, group units into PRD-appropriate units
|
|
123
|
+
- Grouping logic: units with the same `valueCategory` AND the same `userGoal` AND the same `targetPersona` belong to one PRD unit. If any of the three differs, the units become separate PRD units
|
|
124
|
+
- Every discovered unit must appear in exactly one PRD unit's `sourceUnits`
|
|
125
|
+
- Output as `prdUnits` alongside `discoveredUnits` (see Output Format)
|
|
126
|
+
|
|
127
|
+
8. **Return JSON Result**
|
|
128
|
+
- Return the JSON result as the final response. See Output Format for the schema.
|
|
129
|
+
|
|
120
130
|
## Granularity Criteria
|
|
121
131
|
|
|
122
132
|
Each discovered unit represents a Vertical Slice (see implementation-approach skill) — a coherent functional unit that spans all relevant layers.
|
|
@@ -129,11 +139,13 @@ Each discovered unit should satisfy:
|
|
|
129
139
|
- Multiple independent user journeys within one unit
|
|
130
140
|
- Multiple distinct data domains with no shared state
|
|
131
141
|
|
|
132
|
-
**
|
|
142
|
+
**Cohesion signals** (units that may belong together):
|
|
133
143
|
- Units share >50% of related files
|
|
134
144
|
- One unit cannot function without the other
|
|
135
145
|
- Combined scope is still under 10 files
|
|
136
146
|
|
|
147
|
+
Note: These signals are informational only during steps 1-6. Keep all discovered units separate and capture accurate value metadata (see `valueProfile` in Output Format). PRD-level grouping is performed in step 7 after discovery is complete.
|
|
148
|
+
|
|
137
149
|
## Confidence Assessment
|
|
138
150
|
|
|
139
151
|
| Level | Triangulation Strength | Criteria |
|
|
@@ -165,6 +177,11 @@ Each discovered unit should satisfy:
|
|
|
165
177
|
"entryPoints": ["/path1", "/path2"],
|
|
166
178
|
"relatedFiles": ["src/feature/*"],
|
|
167
179
|
"dependencies": ["UNIT-002"],
|
|
180
|
+
"valueProfile": {
|
|
181
|
+
"targetPersona": "Who this feature serves (e.g., 'end user', 'admin', 'developer')",
|
|
182
|
+
"userGoal": "What the user is trying to accomplish with this feature",
|
|
183
|
+
"valueCategory": "High-level capability this belongs to (e.g., 'Authentication', 'Content Management', 'Reporting')"
|
|
184
|
+
},
|
|
168
185
|
"technicalProfile": {
|
|
169
186
|
"primaryModules": ["src/<feature>/module-a.ts", "src/<feature>/module-b.ts"],
|
|
170
187
|
"publicInterfaces": ["ServiceA.operation()", "ModuleB.handle()"],
|
|
@@ -187,6 +204,16 @@ Each discovered unit should satisfy:
|
|
|
187
204
|
"suggestedAction": "What to do"
|
|
188
205
|
}
|
|
189
206
|
],
|
|
207
|
+
"prdUnits": [
|
|
208
|
+
{
|
|
209
|
+
"id": "PRD-001",
|
|
210
|
+
"name": "PRD unit name (user-value level)",
|
|
211
|
+
"description": "What this capability delivers to the user",
|
|
212
|
+
"sourceUnits": ["UNIT-001", "UNIT-003"],
|
|
213
|
+
"combinedRelatedFiles": ["src/feature-a/*", "src/feature-b/*"],
|
|
214
|
+
"combinedEntryPoints": ["/path1", "/path2", "/path3"]
|
|
215
|
+
}
|
|
216
|
+
],
|
|
190
217
|
"limitations": ["What could not be discovered and why"]
|
|
191
218
|
}
|
|
192
219
|
```
|
|
@@ -207,11 +234,14 @@ Includes additional fields:
|
|
|
207
234
|
- [ ] Mapped public interfaces
|
|
208
235
|
- [ ] Analyzed dependency graph
|
|
209
236
|
- [ ] Applied granularity criteria (split/merge as needed)
|
|
237
|
+
- [ ] Identified value profile (persona, goal, category) for each unit
|
|
210
238
|
- [ ] Mapped discovered units to evidence sources
|
|
211
239
|
- [ ] Assessed triangulation strength for each unit
|
|
212
240
|
- [ ] Documented relationships between units
|
|
213
241
|
- [ ] Reached saturation or documented why not
|
|
214
242
|
- [ ] Listed uncertain areas and limitations
|
|
243
|
+
- [ ] Grouped discovered units into PRD units (step 7, after all discovery steps complete)
|
|
244
|
+
- [ ] Final response is the JSON output
|
|
215
245
|
|
|
216
246
|
## Constraints
|
|
217
247
|
|
|
@@ -83,6 +83,9 @@ Each finding must include a `rationale` field whose content depends on the categ
|
|
|
83
83
|
| **hardening** | Why the current state is acceptable, and what improvement would add |
|
|
84
84
|
| **policy** | Why this is not a technical vulnerability (what mitigates the technical risk) |
|
|
85
85
|
|
|
86
|
+
### 6. Return JSON Result
|
|
87
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
88
|
+
|
|
86
89
|
## Output Format
|
|
87
90
|
|
|
88
91
|
```json
|
|
@@ -137,3 +140,4 @@ Each finding must include a `rationale` field whose content depends on the categ
|
|
|
137
140
|
- [ ] Each finding classified into confirmed_risk / defense_gap / hardening / policy
|
|
138
141
|
- [ ] False positives excluded considering runtime environment and existing mitigations
|
|
139
142
|
- [ ] Committed secrets checked (blocked status if found)
|
|
143
|
+
- [ ] Final response is the JSON output
|
|
@@ -93,12 +93,15 @@ Recommendation strategy based on confidence:
|
|
|
93
93
|
- medium: Staged approach, verify with low-impact fixes before full implementation
|
|
94
94
|
- low: Start with conservative mitigation, prioritize solutions that address multiple possible causes
|
|
95
95
|
|
|
96
|
-
### Step 5: Implementation Steps Creation
|
|
96
|
+
### Step 5: Implementation Steps Creation
|
|
97
97
|
- Each step independently verifiable
|
|
98
98
|
- Explicitly state dependencies between steps
|
|
99
99
|
- Define completion conditions for each step
|
|
100
100
|
- Include rollback procedures
|
|
101
|
-
|
|
101
|
+
|
|
102
|
+
### Step 6: Return JSON Result
|
|
103
|
+
|
|
104
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
102
105
|
|
|
103
106
|
## Output Format
|
|
104
107
|
|
|
@@ -167,6 +170,7 @@ Recommendation strategy based on confidence:
|
|
|
167
170
|
- [ ] Documented residual risks
|
|
168
171
|
- [ ] Verified solutions align with project rules or best practices
|
|
169
172
|
- [ ] Verified input consistency with user report
|
|
173
|
+
- [ ] Final response is the JSON output
|
|
170
174
|
|
|
171
175
|
## Output Self-Check
|
|
172
176
|
|
|
@@ -146,6 +146,11 @@ Select and execute files with pattern `docs/plans/tasks/*-task-*.md` that have u
|
|
|
146
146
|
Task complete when all checkbox items completed and operation verification complete.
|
|
147
147
|
For research tasks, includes creating deliverable files specified in metadata "Provides" section.
|
|
148
148
|
|
|
149
|
+
### 5. Return JSON Result
|
|
150
|
+
Return one of the following as the final response (see Structured Response Specification for schemas):
|
|
151
|
+
- `status: "completed"` — task fully implemented
|
|
152
|
+
- `status: "escalation_needed"` — design deviation or similar component discovered
|
|
153
|
+
|
|
149
154
|
## Research Task Deliverables
|
|
150
155
|
|
|
151
156
|
Research/analysis tasks create deliverable files specified in metadata "Provides".
|
|
@@ -247,6 +252,10 @@ When discovering similar components/hooks during existing code investigation, es
|
|
|
247
252
|
}
|
|
248
253
|
```
|
|
249
254
|
|
|
255
|
+
## Completion Criteria
|
|
256
|
+
|
|
257
|
+
- [ ] Final response is a single JSON with status `completed` or `escalation_needed`
|
|
258
|
+
|
|
250
259
|
## Execution Principles
|
|
251
260
|
|
|
252
261
|
**Execute**:
|
|
@@ -146,6 +146,11 @@ Select and execute files with pattern `docs/plans/tasks/*-task-*.md` that have u
|
|
|
146
146
|
Task complete when all checkbox items completed and operation verification complete.
|
|
147
147
|
For research tasks, includes creating deliverable files specified in metadata "Provides" section.
|
|
148
148
|
|
|
149
|
+
### 5. Return JSON Result
|
|
150
|
+
Return one of the following as the final response (see Structured Response Specification for schemas):
|
|
151
|
+
- `status: "completed"` — task fully implemented
|
|
152
|
+
- `status: "escalation_needed"` — design deviation or similar function discovered
|
|
153
|
+
|
|
149
154
|
## Research Task Deliverables
|
|
150
155
|
|
|
151
156
|
Research/analysis tasks create deliverable files specified in metadata "Provides".
|
|
@@ -247,6 +252,10 @@ When discovering similar functions during existing code investigation, escalate
|
|
|
247
252
|
}
|
|
248
253
|
```
|
|
249
254
|
|
|
255
|
+
## Completion Criteria
|
|
256
|
+
|
|
257
|
+
- [ ] Final response is a single JSON with status `completed` or `escalation_needed`
|
|
258
|
+
|
|
250
259
|
## Execution Principles
|
|
251
260
|
|
|
252
261
|
**Execute**:
|
|
@@ -97,7 +97,11 @@ Classify each hypothesis by the following levels:
|
|
|
97
97
|
- Example: "The implementation is wrong" → Was design_gap considered?
|
|
98
98
|
- If inconsistent, explicitly note "Investigation focus may be misaligned with user report"
|
|
99
99
|
|
|
100
|
-
**Conclusion**: Adopt unrefuted hypotheses as causes. When multiple causes exist, determine their relationship (independent/dependent/exclusive)
|
|
100
|
+
**Conclusion**: Adopt unrefuted hypotheses as causes. When multiple causes exist, determine their relationship (independent/dependent/exclusive)
|
|
101
|
+
|
|
102
|
+
### Step 7: Return JSON Result
|
|
103
|
+
|
|
104
|
+
Return the JSON result as the final response. See Output Format for the schema.
|
|
101
105
|
|
|
102
106
|
## Confidence Determination Criteria
|
|
103
107
|
|
|
@@ -186,6 +190,7 @@ Classify each hypothesis by the following levels:
|
|
|
186
190
|
- [ ] Verified consistency with user report
|
|
187
191
|
- [ ] Determined verification level for each hypothesis
|
|
188
192
|
- [ ] Adopted unrefuted hypotheses as causes and determined relationship when multiple
|
|
193
|
+
- [ ] Final response is the JSON output
|
|
189
194
|
|
|
190
195
|
## Output Self-Check
|
|
191
196
|
|
|
@@ -13,6 +13,12 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
13
13
|
|
|
14
14
|
**タスク登録**: TaskCreateで作業ステップを登録。必ず最初に「スキル制約の確認」、最後に「スキル忠実度の検証」を含める。各完了時にTaskUpdateで更新。
|
|
15
15
|
|
|
16
|
+
### 実装への反映
|
|
17
|
+
- integration-e2e-testingスキルで統合/E2Eテストの原則と仕様を適用(最重要)
|
|
18
|
+
- typescript-testingスキルでテスト設計基準(品質要件、テスト構造、命名規則)を適用
|
|
19
|
+
- documentation-criteriaスキルでドキュメント基準(Design Doc/PRD構造、AC形式)を適用
|
|
20
|
+
- project-contextスキルでプロジェクトコンテキスト(技術スタック、実装方針、制約)を適用
|
|
21
|
+
|
|
16
22
|
### 実装方針への準拠
|
|
17
23
|
- **テストコード生成**: Design Docの実装パターン(関数 vs クラス選択)に厳密準拠必須
|
|
18
24
|
- **型安全性**: typescript-testingスキルのモック作成・型定義ルールを例外なく強制
|
|
@@ -13,6 +13,12 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
13
13
|
|
|
14
14
|
**タスク登録**: TaskCreateで作業ステップを登録。必ず最初に「スキル制約の確認」、最後に「スキル忠実度の検証」を含める。各完了時にTaskUpdateで更新。
|
|
15
15
|
|
|
16
|
+
### 実装への反映
|
|
17
|
+
- coding-standardsスキルで汎用的なコーディング規約、実装前の既存コード調査プロセスを適用
|
|
18
|
+
- technical-specスキルで技術仕様を適用
|
|
19
|
+
- typescript-rulesスキルでTypeScript開発ルールを適用
|
|
20
|
+
- project-contextスキルでプロジェクトコンテキストを適用
|
|
21
|
+
|
|
16
22
|
## 主な責務
|
|
17
23
|
|
|
18
24
|
1. **Design Doc準拠の検証**
|
|
@@ -69,11 +75,14 @@ Design Docのアーキテクチャに対して検証:
|
|
|
69
75
|
- 不必要な重複実装がない(coding-standardsスキルのパターン5)
|
|
70
76
|
- 既存コードベース分析セクションに類似機能調査結果が記載されている
|
|
71
77
|
|
|
72
|
-
### 5.
|
|
78
|
+
### 5. 準拠率の算出
|
|
73
79
|
- 準拠率 = (fulfilled項目 + 0.5 × partially fulfilled項目) / 全AC項目 × 100
|
|
74
80
|
- 全ACのステータス、具体的な場所を含む品質問題をまとめる
|
|
75
81
|
- 準拠率に基づいてverdictを判定
|
|
76
82
|
|
|
83
|
+
### 6. JSON結果の返却
|
|
84
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力形式を参照。
|
|
85
|
+
|
|
77
86
|
## 出力形式
|
|
78
87
|
|
|
79
88
|
```json
|
|
@@ -127,6 +136,13 @@ Design Docのアーキテクチャに対して検証:
|
|
|
127
136
|
- 良い実装は積極的に評価
|
|
128
137
|
- 改善点は具体的かつ実装可能な形で提示
|
|
129
138
|
|
|
139
|
+
## 完了条件
|
|
140
|
+
|
|
141
|
+
- [ ] すべてのACを個別に評価
|
|
142
|
+
- [ ] 準拠率を算出
|
|
143
|
+
- [ ] verdictを判定
|
|
144
|
+
- [ ] 最終レスポンスがJSONであること
|
|
145
|
+
|
|
130
146
|
## エスカレーション基準
|
|
131
147
|
|
|
132
148
|
以下の場合、上位レビューを推奨:
|
|
@@ -119,6 +119,10 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
119
119
|
2. **実装カバレッジ**: 仕様の何%が実装されているか?
|
|
120
120
|
3. 未ドキュメント機能と未実装仕様を列挙
|
|
121
121
|
|
|
122
|
+
### ステップ6: JSON結果の返却
|
|
123
|
+
|
|
124
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
125
|
+
|
|
122
126
|
## 出力フォーマット
|
|
123
127
|
|
|
124
128
|
**JSONフォーマット必須**
|
|
@@ -184,7 +188,7 @@ consistencyScore = (matchCount / verifiableClaimCount) * 100
|
|
|
184
188
|
- [ ] コード内の未ドキュメント機能を特定
|
|
185
189
|
- [ ] 未実装仕様を特定
|
|
186
190
|
- [ ] 整合性スコアを計算
|
|
187
|
-
- [ ]
|
|
191
|
+
- [ ] 最終レスポンスがJSONであること
|
|
188
192
|
|
|
189
193
|
## 出力セルフチェック
|
|
190
194
|
|
|
@@ -13,6 +13,11 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
13
13
|
|
|
14
14
|
**タスク登録**: TaskCreateで作業ステップを登録。必ず最初に「スキル制約の確認」、最後に「スキル忠実度の検証」を含める。各完了時にTaskUpdateで更新。
|
|
15
15
|
|
|
16
|
+
### 実装への反映
|
|
17
|
+
- documentation-criteriaスキルでドキュメント基準(Design Docの構造と必須要素を理解するため)を適用
|
|
18
|
+
- project-contextスキルでプロジェクトコンテキスト(用語と概念を理解するため)を適用
|
|
19
|
+
- typescript-rulesスキルで型定義の整合性チェックを適用
|
|
20
|
+
|
|
16
21
|
## 検出基準(唯一の判定ルール)
|
|
17
22
|
|
|
18
23
|
**検出対象**: 基準ファイルに明示的記載がある項目で、他ファイルと値が異なる場合
|
|
@@ -112,13 +112,15 @@ DesignDocの場合、追加で以下を確認:
|
|
|
112
112
|
- [ ] prior_context_count > 0の場合: 各項目に解決ステータスあり
|
|
113
113
|
- [ ] prior_context_count > 0の場合: `prior_context_check`オブジェクト準備済み
|
|
114
114
|
- [ ] 出力が有効なJSON
|
|
115
|
+
- [ ] 最終レスポンスがJSONであること
|
|
115
116
|
|
|
116
117
|
全項目を完了してから出力へ進む。
|
|
117
118
|
|
|
118
|
-
### ステップ6:
|
|
119
|
-
-
|
|
119
|
+
### ステップ6: JSON結果の返却
|
|
120
|
+
- レビューモード(総合的または観点別)に応じたJSONスキーマを使用
|
|
120
121
|
- 問題の重要度を明確に分類
|
|
121
122
|
- prior_context_count > 0の場合は`prior_context_check`オブジェクトを含める
|
|
123
|
+
- 最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
122
124
|
|
|
123
125
|
## 出力フォーマット
|
|
124
126
|
|
|
@@ -13,6 +13,10 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
13
13
|
|
|
14
14
|
**タスク登録**: TaskCreateで作業ステップを登録。必ず最初に「スキル制約の確認」、最後に「スキル忠実度の検証」を含める。各完了時にTaskUpdateで更新。
|
|
15
15
|
|
|
16
|
+
### 実装への反映
|
|
17
|
+
- integration-e2e-testingスキルで統合/E2Eテストのレビュー基準を適用(最重要)
|
|
18
|
+
- typescript-testingスキルでテスト品質基準、AAA構造、モック規約を適用
|
|
19
|
+
|
|
16
20
|
## 必要情報
|
|
17
21
|
|
|
18
22
|
- **testFile**: レビュー対象のテストファイルパス(必須)
|
|
@@ -70,6 +74,9 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
70
74
|
| 内部コンポーネント | 実物使用 | 不要なモック化 |
|
|
71
75
|
| ログ出力検証 | vi.fn()使用 | 検証なしのモック |
|
|
72
76
|
|
|
77
|
+
### 4. JSON結果の返却
|
|
78
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
79
|
+
|
|
73
80
|
## 出力フォーマット
|
|
74
81
|
|
|
75
82
|
### 構造化レスポンス
|
|
@@ -190,3 +197,10 @@ needs_revision判定時、後続処理で使用できる修正指示を出力:
|
|
|
190
197
|
- `@dependency: full-system`の場合、モック使用は不合格
|
|
191
198
|
- 全コンポーネント実装完了後に実行されているか確認
|
|
192
199
|
- クリティカルユーザージャーニーの網羅性を検証
|
|
200
|
+
|
|
201
|
+
## 完了条件
|
|
202
|
+
|
|
203
|
+
- [ ] すべてのスケルトンコメントを実装と照合
|
|
204
|
+
- [ ] 実装品質を評価
|
|
205
|
+
- [ ] Mock境界を検証(統合テスト)
|
|
206
|
+
- [ ] 最終レスポンスがJSONであること
|
|
@@ -71,12 +71,15 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
71
71
|
- 「〜が設定されていない」で止まっている → なぜ設定されていないか未追跡
|
|
72
72
|
- 技術要素名で止まっている → なぜその状態になったか未追跡
|
|
73
73
|
|
|
74
|
-
### ステップ4:
|
|
74
|
+
### ステップ4: 影響範囲の特定
|
|
75
75
|
|
|
76
76
|
- 同じパターンで実装されている箇所を検索(impactScope)
|
|
77
77
|
- recurrenceRiskを判定: low(単発)/ medium(2箇所以下)/ high(3箇所以上 or design_gap)
|
|
78
78
|
- 未探索領域と調査の限界を明示
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
### ステップ5: JSON結果の返却
|
|
81
|
+
|
|
82
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
80
83
|
|
|
81
84
|
## 証拠の強度分類
|
|
82
85
|
|
|
@@ -154,6 +157,7 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
154
157
|
- [ ] 2つ以上の仮説を列挙し、各仮説について因果追跡・証拠収集・causeCategory判定を行った
|
|
155
158
|
- [ ] impactScope、recurrenceRiskを判定した
|
|
156
159
|
- [ ] 未探索領域と調査の限界を記載した
|
|
160
|
+
- [ ] 最終レスポンスがJSONであること
|
|
157
161
|
|
|
158
162
|
## 出力セルフチェック
|
|
159
163
|
|
|
@@ -39,7 +39,13 @@ package.jsonの`packageManager`フィールドに応じた実行コマンドを
|
|
|
39
39
|
2. エラー発見 → 即座に修正実行
|
|
40
40
|
3. 修正後 → 該当フェーズ再実行
|
|
41
41
|
4. 全フェーズ完了まで繰り返し
|
|
42
|
-
5.
|
|
42
|
+
5. 全パス → ステップ5へ
|
|
43
|
+
6. 仕様が判断できない → `blocked`ステータスでステップ5へ
|
|
44
|
+
|
|
45
|
+
**ステップ5: JSON結果の返却**
|
|
46
|
+
最終レスポンスとして以下のいずれかを返却する(スキーマは出力フォーマットを参照):
|
|
47
|
+
- `status: "approved"` — すべての品質チェックがパス
|
|
48
|
+
- `status: "blocked"` — 仕様が不明確、UX/ビジネス判断が必要
|
|
43
49
|
|
|
44
50
|
### Phase 詳細
|
|
45
51
|
|
|
@@ -199,11 +205,9 @@ blockedにする前に、以下の順序で仕様を確認:
|
|
|
199
205
|
}
|
|
200
206
|
```
|
|
201
207
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
ユーザーが理解できる形で品質チェック結果をまとめる
|
|
208
|
+
## 中間進捗レポート
|
|
205
209
|
|
|
206
|
-
|
|
210
|
+
実行中、ツール呼び出しの間に以下のフォーマットで進捗を報告する:
|
|
207
211
|
|
|
208
212
|
```markdown
|
|
209
213
|
📋 Phase [番号]: [フェーズ名]
|
|
@@ -221,6 +225,12 @@ blockedにする前に、以下の順序で仕様を確認:
|
|
|
221
225
|
✅ Phase [番号] 完了!次のフェーズへ進みます。
|
|
222
226
|
```
|
|
223
227
|
|
|
228
|
+
これは中間出力であり、最終レスポンスはJSON(ステップ5参照)で出力する。
|
|
229
|
+
|
|
230
|
+
## 完了条件
|
|
231
|
+
|
|
232
|
+
- [ ] 最終レスポンスが`approved`または`blocked`ステータスの単一JSON
|
|
233
|
+
|
|
224
234
|
## 重要な原則
|
|
225
235
|
|
|
226
236
|
✅ **推奨**: 高品質なReactコードを維持するため、以下の原則に従ってください:
|
|
@@ -39,7 +39,13 @@ package.jsonの`packageManager`フィールドに応じた実行コマンドを
|
|
|
39
39
|
2. エラー発見 → 即座に修正実行
|
|
40
40
|
3. 修正後 → 該当フェーズ再実行
|
|
41
41
|
4. 全フェーズ完了まで繰り返し
|
|
42
|
-
5.
|
|
42
|
+
5. 全パス → ステップ5へ
|
|
43
|
+
6. 仕様が判断できない → `blocked`ステータスでステップ5へ
|
|
44
|
+
|
|
45
|
+
**ステップ5: JSON結果の返却**
|
|
46
|
+
最終レスポンスとして以下のいずれかを返却する(スキーマは出力フォーマットを参照):
|
|
47
|
+
- `status: "approved"` — すべての品質チェックがパス
|
|
48
|
+
- `status: "blocked"` — 仕様が不明確、ビジネス判断が必要
|
|
43
49
|
|
|
44
50
|
### Phase 詳細
|
|
45
51
|
|
|
@@ -160,11 +166,9 @@ blockedにする前に、以下の順序で仕様を確認:
|
|
|
160
166
|
}
|
|
161
167
|
```
|
|
162
168
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
品質チェック結果をユーザーに分かりやすく要約して報告する
|
|
169
|
+
## 中間進捗レポート
|
|
166
170
|
|
|
167
|
-
|
|
171
|
+
実行中、ツール呼び出しの間に以下のフォーマットで進捗を報告する:
|
|
168
172
|
|
|
169
173
|
```markdown
|
|
170
174
|
📋 Phase [番号]: [フェーズ名]
|
|
@@ -182,6 +186,12 @@ blockedにする前に、以下の順序で仕様を確認:
|
|
|
182
186
|
✅ Phase [番号] 完了!次のフェーズへ進みます。
|
|
183
187
|
```
|
|
184
188
|
|
|
189
|
+
これは中間出力であり、最終レスポンスはJSON(ステップ5参照)で出力する。
|
|
190
|
+
|
|
191
|
+
## 完了条件
|
|
192
|
+
|
|
193
|
+
- [ ] 最終レスポンスが`approved`または`blocked`ステータスの単一JSON
|
|
194
|
+
|
|
185
195
|
## 重要な原則
|
|
186
196
|
|
|
187
197
|
✅ **推奨**: ルールファイルで定義された原則に従うことで、高品質なコードを維持:
|
|
@@ -15,6 +15,10 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
15
15
|
|
|
16
16
|
**現在日時の取得**: 作業開始前に実行環境から実際の現在日時を取得する(学習データのカットオフ日に依存しない)。
|
|
17
17
|
|
|
18
|
+
### 実装への反映
|
|
19
|
+
- project-contextスキルでプロジェクトコンテキストを適用
|
|
20
|
+
- documentation-criteriaスキルでドキュメント作成基準(規模判定とADR条件)を適用
|
|
21
|
+
|
|
18
22
|
## 検証プロセス
|
|
19
23
|
|
|
20
24
|
### 1. 目的の抽出
|
|
@@ -39,6 +43,9 @@ Step 2のファイル数に基づいて分類(小規模: 1-2、中規模: 3-5
|
|
|
39
43
|
### 6. 質問の策定
|
|
40
44
|
規模判定に影響する曖昧さ(scopeDependencies)や、先に進む前にユーザー確認が必要な項目を特定。
|
|
41
45
|
|
|
46
|
+
### 7. JSON結果の返却
|
|
47
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力形式を参照。
|
|
48
|
+
|
|
42
49
|
## 作業規模の判定基準
|
|
43
50
|
|
|
44
51
|
規模判定と必要ドキュメントの詳細はdocumentation-criteriaスキルに準拠。
|
|
@@ -144,4 +151,5 @@ ADR作成条件の詳細はdocumentation-criteriaスキルに準拠。
|
|
|
144
151
|
- [ ] 影響範囲を適切に推定できているか
|
|
145
152
|
- [ ] ADR必要性を正しく判定できているか
|
|
146
153
|
- [ ] 技術的リスクを見落としていないか
|
|
147
|
-
- [ ] 不確実な規模についてscopeDependenciesをリストしたか
|
|
154
|
+
- [ ] 不確実な規模についてscopeDependenciesをリストしたか
|
|
155
|
+
- [ ] 最終レスポンスがJSONであること
|
|
@@ -49,6 +49,9 @@ task-analyzerスキル(frontmatterで自動読み込み)が提供するも
|
|
|
49
49
|
- 抽象原則より具体的手順を優先
|
|
50
50
|
- チェックリストとアクション可能な項目を含める
|
|
51
51
|
|
|
52
|
+
### 4. JSON結果の返却
|
|
53
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
54
|
+
|
|
52
55
|
## 出力フォーマット
|
|
53
56
|
|
|
54
57
|
構造化JSONを返却:
|
|
@@ -108,6 +111,12 @@ task-analyzerスキル(frontmatterで自動読み込み)が提供するも
|
|
|
108
111
|
- スキルファイルが読み込めない場合:代替スキルを提案
|
|
109
112
|
- タスク内容が不明確な場合:clarifying questionsを含める
|
|
110
113
|
|
|
114
|
+
## 完了条件
|
|
115
|
+
|
|
116
|
+
- [ ] タスク分析が完了(type、scale、tags)
|
|
117
|
+
- [ ] 関連スキルをロードしセクションを抽出
|
|
118
|
+
- [ ] 最終レスポンスがJSONであること
|
|
119
|
+
|
|
111
120
|
## メタ認知質問の設計
|
|
112
121
|
|
|
113
122
|
タスクの性質に応じた質問を3-5個生成:
|
|
@@ -38,8 +38,8 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
38
38
|
|
|
39
39
|
## 出力スコープ
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
このエージェントは**スコープ発見結果、evidence、およびPRDユニットグルーピング**を出力する。
|
|
42
|
+
ドキュメント生成(PRDコンテンツ、Design Docコンテンツ)はこのエージェントのスコープ外。
|
|
43
43
|
|
|
44
44
|
## 主な責務
|
|
45
45
|
|
|
@@ -106,6 +106,7 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
106
106
|
4. **機能ユニットへの統合**
|
|
107
107
|
- ユーザー価値グループと技術的境界を機能ユニットに統合
|
|
108
108
|
- 各ユニットは一貫した機能と特定可能な技術スコープを持つこと
|
|
109
|
+
- 各ユニットについて`valueProfile`を特定する: 誰が使うか、どのゴールを達成するか、どの上位機能に属するか
|
|
109
110
|
- 粒度基準(後述)を適用
|
|
110
111
|
|
|
111
112
|
5. **境界検証**
|
|
@@ -117,6 +118,15 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
117
118
|
- 発見ソーステーブルの連続3種のソースタイプを探索しても新規ユニットが発見されない場合に発見を停止
|
|
118
119
|
- 出力で発見が飽和したことをマーク
|
|
119
120
|
|
|
121
|
+
7. **PRDユニットグルーピング**(ステップ1-6がすべて完了した後に実行)
|
|
122
|
+
- 確定した`discoveredUnits`とその`valueProfile`メタデータを使用し、PRD単位に適したグルーピングを行う
|
|
123
|
+
- グルーピングロジック: `valueCategory`、`userGoal`、`targetPersona`の3つがすべて同じユニットを1つのPRDユニットにまとめる。いずれかが異なれば別のPRDユニットとする
|
|
124
|
+
- すべてのdiscoveredUnitがいずれか1つのPRDユニットの`sourceUnits`に含まれること
|
|
125
|
+
- `discoveredUnits`と並べて`prdUnits`として出力する(出力フォーマット参照)
|
|
126
|
+
|
|
127
|
+
8. **JSON結果の返却**
|
|
128
|
+
- 最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
129
|
+
|
|
120
130
|
## 粒度基準
|
|
121
131
|
|
|
122
132
|
発見された各ユニットは垂直スライス(implementation-approachスキル参照)で表現する — 関連する全レイヤーにまたがる一貫した機能単位。
|
|
@@ -129,11 +139,13 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
129
139
|
- 1つのユニット内に複数の独立したユーザージャーニーが存在
|
|
130
140
|
- 共有状態のない複数の異なるデータドメイン
|
|
131
141
|
|
|
132
|
-
|
|
142
|
+
**結合シグナル**(まとまるべきユニットの兆候):
|
|
133
143
|
- ユニット間で関連ファイルの50%以上を共有
|
|
134
144
|
- 一方のユニットが他方なしでは機能しない
|
|
135
145
|
- 統合しても10ファイル以内
|
|
136
146
|
|
|
147
|
+
注: これらのシグナルはステップ1-6においては参考情報にとどめる。discoveredUnitsはすべて分離したまま保持し、正確なvalueメタデータを記録すること(出力フォーマットの`valueProfile`参照)。PRDレベルのグルーピングはステップ1-6完了後にステップ7で実施する。
|
|
148
|
+
|
|
137
149
|
## 信頼度評価
|
|
138
150
|
|
|
139
151
|
| レベル | triangulation強度 | 基準 |
|
|
@@ -165,6 +177,11 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
165
177
|
"entryPoints": ["/path1", "/path2"],
|
|
166
178
|
"relatedFiles": ["src/feature/*"],
|
|
167
179
|
"dependencies": ["UNIT-002"],
|
|
180
|
+
"valueProfile": {
|
|
181
|
+
"targetPersona": "この機能が誰向けか(例: 'エンドユーザー', '管理者', '開発者')",
|
|
182
|
+
"userGoal": "この機能でユーザーが達成したいこと",
|
|
183
|
+
"valueCategory": "属する上位機能(例: '認証', 'コンテンツ管理', 'レポーティング')"
|
|
184
|
+
},
|
|
168
185
|
"technicalProfile": {
|
|
169
186
|
"primaryModules": ["src/<feature>/module-a.ts", "src/<feature>/module-b.ts"],
|
|
170
187
|
"publicInterfaces": ["ServiceA.operation()", "ModuleB.handle()"],
|
|
@@ -187,6 +204,16 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
187
204
|
"suggestedAction": "推奨アクション"
|
|
188
205
|
}
|
|
189
206
|
],
|
|
207
|
+
"prdUnits": [
|
|
208
|
+
{
|
|
209
|
+
"id": "PRD-001",
|
|
210
|
+
"name": "PRDユニット名(ユーザー価値レベル)",
|
|
211
|
+
"description": "この機能がユーザーに提供する価値",
|
|
212
|
+
"sourceUnits": ["UNIT-001", "UNIT-003"],
|
|
213
|
+
"combinedRelatedFiles": ["src/feature-a/*", "src/feature-b/*"],
|
|
214
|
+
"combinedEntryPoints": ["/path1", "/path2", "/path3"]
|
|
215
|
+
}
|
|
216
|
+
],
|
|
190
217
|
"limitations": ["発見できなかった内容とその理由"]
|
|
191
218
|
}
|
|
192
219
|
```
|
|
@@ -207,11 +234,14 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
207
234
|
- [ ] publicインターフェースをマッピング
|
|
208
235
|
- [ ] 依存グラフを分析
|
|
209
236
|
- [ ] 粒度基準を適用(必要に応じて分割/統合)
|
|
237
|
+
- [ ] 各ユニットのvalueProfile(persona、goal、category)を特定
|
|
210
238
|
- [ ] 発見されたユニットをevidenceソースにマッピング
|
|
211
239
|
- [ ] 各ユニットのtriangulation強度を評価
|
|
212
240
|
- [ ] ユニット間の関係性を文書化
|
|
213
241
|
- [ ] 飽和に到達、または到達しなかった理由を文書化
|
|
214
242
|
- [ ] 不確実な領域と制限事項を列挙
|
|
243
|
+
- [ ] discoveredUnitsをPRDユニットにグルーピング(ステップ7、全発見ステップ完了後)
|
|
244
|
+
- [ ] 最終レスポンスがJSONであること
|
|
215
245
|
|
|
216
246
|
## 制約
|
|
217
247
|
|
|
@@ -83,6 +83,9 @@ coding-standardsのSecurity Principlesの各原則に対して実装を検証:
|
|
|
83
83
|
| **hardening** | 現状が許容可能な理由と、改善がもたらす効果 |
|
|
84
84
|
| **policy** | 技術的な脆弱性ではない理由(技術的リスクを緩和している要素) |
|
|
85
85
|
|
|
86
|
+
### 6. JSON結果の返却
|
|
87
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力形式を参照。
|
|
88
|
+
|
|
86
89
|
## 出力形式
|
|
87
90
|
|
|
88
91
|
```json
|
|
@@ -137,3 +140,4 @@ coding-standardsのSecurity Principlesの各原則に対して実装を検証:
|
|
|
137
140
|
- [ ] 各検出結果をconfirmed_risk / defense_gap / hardening / policyに分類したか
|
|
138
141
|
- [ ] 実行環境と既存の緩和策を考慮し偽陽性を除外したか
|
|
139
142
|
- [ ] コミット済みシークレットのチェックを実施したか(検出時はblockedステータス)
|
|
143
|
+
- [ ] 最終レスポンスがJSONであること
|
|
@@ -93,12 +93,15 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
93
93
|
- medium: 段階的アプローチ、影響の小さい対策で検証後に本格対策
|
|
94
94
|
- low: 保守的な緩和策から開始、複数の原因に対応できる解決策を優先
|
|
95
95
|
|
|
96
|
-
### ステップ5:
|
|
96
|
+
### ステップ5: 実装ステップの作成
|
|
97
97
|
- 各ステップは独立して検証可能
|
|
98
98
|
- ステップ間の依存関係を明示
|
|
99
99
|
- 各ステップの完了条件を定義
|
|
100
100
|
- ロールバック手順を含める
|
|
101
|
-
|
|
101
|
+
|
|
102
|
+
### ステップ6: JSON結果の返却
|
|
103
|
+
|
|
104
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
102
105
|
|
|
103
106
|
## 出力フォーマット
|
|
104
107
|
|
|
@@ -167,6 +170,7 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
167
170
|
- [ ] 残存リスク(residualRisks)を記載した
|
|
168
171
|
- [ ] 解決策がプロジェクトルールまたはベストプラクティスに沿っているか検証した
|
|
169
172
|
- [ ] 入力がユーザー報告と整合しているか確認した
|
|
173
|
+
- [ ] 最終レスポンスがJSONであること
|
|
170
174
|
|
|
171
175
|
## 出力セルフチェック
|
|
172
176
|
|
|
@@ -146,6 +146,11 @@ package.jsonの`packageManager`フィールドに応じた実行コマンドを
|
|
|
146
146
|
全チェックボックス項目完了かつ動作確認完了でタスク完了。
|
|
147
147
|
調査タスクの場合、メタデータ「Provides」セクション記載の成果物ファイル作成を含む。
|
|
148
148
|
|
|
149
|
+
### 5. JSON結果の返却
|
|
150
|
+
最終レスポンスとして以下のいずれかを返却する(スキーマは構造化レスポンス仕様を参照):
|
|
151
|
+
- `status: "completed"` — タスクの実装が完了
|
|
152
|
+
- `status: "escalation_needed"` — 設計逸脱または類似コンポーネントを発見
|
|
153
|
+
|
|
149
154
|
## 調査タスクの成果物
|
|
150
155
|
|
|
151
156
|
調査・分析タスクはメタデータ「Provides」で指定された成果物ファイルを作成。
|
|
@@ -247,6 +252,10 @@ Design Doc通りに実装できない場合、以下のJSON形式でエスカレ
|
|
|
247
252
|
}
|
|
248
253
|
```
|
|
249
254
|
|
|
255
|
+
## 完了条件
|
|
256
|
+
|
|
257
|
+
- [ ] 最終レスポンスが`completed`または`escalation_needed`ステータスの単一JSON
|
|
258
|
+
|
|
250
259
|
## 実行原則
|
|
251
260
|
|
|
252
261
|
**実行する**:
|
|
@@ -143,6 +143,11 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
143
143
|
すべてのチェックボックス項目が完了し、動作確認も完了した時点でタスク完了。
|
|
144
144
|
調査タスクの場合は、メタ情報「提供」セクションに記載された成果物ファイルの作成も含む。
|
|
145
145
|
|
|
146
|
+
### 5. JSON結果の返却
|
|
147
|
+
最終レスポンスとして以下のいずれかを返却する(スキーマは構造化レスポンス仕様を参照):
|
|
148
|
+
- `status: "completed"` — タスクの実装が完了
|
|
149
|
+
- `status: "escalation_needed"` — 設計逸脱または類似機能を発見
|
|
150
|
+
|
|
146
151
|
## 調査タスクの成果物
|
|
147
152
|
|
|
148
153
|
調査・分析タスクではメタ情報の「提供」に記載された成果物ファイルを作成。
|
|
@@ -244,6 +249,10 @@ Design Doc通りに実装できない場合は以下のJSON形式でエスカレ
|
|
|
244
249
|
}
|
|
245
250
|
```
|
|
246
251
|
|
|
252
|
+
## 完了条件
|
|
253
|
+
|
|
254
|
+
- [ ] 最終レスポンスが`completed`または`escalation_needed`ステータスの単一JSON
|
|
255
|
+
|
|
247
256
|
## 実行原則
|
|
248
257
|
|
|
249
258
|
**実行**:
|
|
@@ -97,7 +97,11 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
97
97
|
- 例:「実装がおかしい」→ design_gapを検討したか
|
|
98
98
|
- 整合しない場合、「調査の焦点がユーザー報告とずれている可能性」を明示
|
|
99
99
|
|
|
100
|
-
**結論**: 反証されなかった仮説を原因として採用し、複数の原因が存在する場合はその関係性(independent/dependent/exclusive
|
|
100
|
+
**結論**: 反証されなかった仮説を原因として採用し、複数の原因が存在する場合はその関係性(independent/dependent/exclusive)を判定
|
|
101
|
+
|
|
102
|
+
### ステップ7: JSON結果の返却
|
|
103
|
+
|
|
104
|
+
最終レスポンスとしてJSONを返却する。スキーマは出力フォーマットを参照。
|
|
101
105
|
|
|
102
106
|
## 信頼度の判定基準
|
|
103
107
|
|
|
@@ -186,6 +190,7 @@ CLAUDE.mdの原則を適用しない独立したコンテキストを持ち、
|
|
|
186
190
|
- [ ] ユーザー報告との整合性を検証した
|
|
187
191
|
- [ ] 各仮説の検証レベルを判定した
|
|
188
192
|
- [ ] 反証されなかった仮説を原因として採用し、複数の場合は関係性を判定した
|
|
193
|
+
- [ ] 最終レスポンスがJSONであること
|
|
189
194
|
|
|
190
195
|
## 出力セルフチェック
|
|
191
196
|
|
|
@@ -39,7 +39,7 @@ Use AskUserQuestion to confirm:
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
Phase 1: PRD Generation
|
|
42
|
-
Step 1: Scope Discovery (unified, single pass)
|
|
42
|
+
Step 1: Scope Discovery (unified, single pass → group into PRD units → human review)
|
|
43
43
|
Step 2-5: Per-unit loop (Generation → Verification → Review → Revision)
|
|
44
44
|
|
|
45
45
|
Phase 2: Design Doc Generation (if requested)
|
|
@@ -72,12 +72,14 @@ prompt: |
|
|
|
72
72
|
**Quality Gate**:
|
|
73
73
|
- At least one unit discovered → proceed
|
|
74
74
|
- No units discovered → ask user for hints
|
|
75
|
+
- `$STEP_1_OUTPUT.prdUnits` exists
|
|
76
|
+
- All `sourceUnits` across `prdUnits` (flattened, deduplicated) match the set of `discoveredUnits` IDs — no unit missing, no unit duplicated
|
|
75
77
|
|
|
76
|
-
**Human Review Point** (if enabled): Present
|
|
78
|
+
**Human Review Point** (if enabled): Present `$STEP_1_OUTPUT.prdUnits` with their source unit mapping. The user confirms, adjusts grouping, or excludes units from scope. This is the most important review point — incorrect grouping cascades into all downstream documents.
|
|
77
79
|
|
|
78
80
|
### Step 2-5: Per-Unit Processing
|
|
79
81
|
|
|
80
|
-
**FOR** each unit in `$STEP_1_OUTPUT.
|
|
82
|
+
**FOR** each unit in `$STEP_1_OUTPUT.prdUnits` **(sequential, one unit at a time):**
|
|
81
83
|
|
|
82
84
|
#### Step 2: PRD Generation
|
|
83
85
|
|
|
@@ -90,10 +92,10 @@ prompt: |
|
|
|
90
92
|
Operation Mode: reverse-engineer
|
|
91
93
|
External Scope Provided: true
|
|
92
94
|
|
|
93
|
-
Feature: $
|
|
94
|
-
Description: $
|
|
95
|
-
Related Files: $
|
|
96
|
-
Entry Points: $
|
|
95
|
+
Feature: $PRD_UNIT_NAME (from $STEP_1_OUTPUT)
|
|
96
|
+
Description: $PRD_UNIT_DESCRIPTION
|
|
97
|
+
Related Files: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
98
|
+
Entry Points: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
97
99
|
|
|
98
100
|
Skip independent scope discovery. Use provided scope data.
|
|
99
101
|
Create final version PRD based on code investigation within specified scope.
|
|
@@ -113,7 +115,7 @@ prompt: |
|
|
|
113
115
|
|
|
114
116
|
doc_type: prd
|
|
115
117
|
document_path: $STEP_2_OUTPUT
|
|
116
|
-
code_paths: $
|
|
118
|
+
code_paths: $PRD_UNIT_COMBINED_RELATED_FILES (from $STEP_1_OUTPUT)
|
|
117
119
|
verbose: false
|
|
118
120
|
```
|
|
119
121
|
|
|
@@ -195,7 +197,9 @@ prompt: |
|
|
|
195
197
|
|
|
196
198
|
### Step 6: Design Doc Scope Mapping
|
|
197
199
|
|
|
198
|
-
Use `$STEP_1_OUTPUT` (
|
|
200
|
+
**No additional discovery required.** Use `$STEP_1_OUTPUT.discoveredUnits` (implementation-granularity units) for technical profiles. Use `$STEP_1_OUTPUT.prdUnits[].sourceUnits` to trace which discovered units belong to each PRD unit.
|
|
201
|
+
|
|
202
|
+
When fullstack=Yes, determine per unit whether backend / frontend / both Design Docs are needed based on path patterns in the unit's `relatedFiles` and `technicalProfile.primaryModules` (refer to project structure defined in technical-spec skill).
|
|
199
203
|
|
|
200
204
|
Map `$STEP_1_OUTPUT` units to Design Doc generation targets, carrying forward:
|
|
201
205
|
- `technicalProfile.primaryModules` → Primary Files
|
|
@@ -24,7 +24,7 @@ description: Update existing design documents (Design Doc / PRD / ADR) with revi
|
|
|
24
24
|
```
|
|
25
25
|
Target document → [Stop: Confirm changes]
|
|
26
26
|
↓
|
|
27
|
-
technical-designer / prd-creator (update mode)
|
|
27
|
+
technical-designer / technical-designer-frontend / prd-creator (update mode)
|
|
28
28
|
↓
|
|
29
29
|
document-reviewer → [Stop: Review approval]
|
|
30
30
|
↓ (Design Doc only)
|
|
@@ -66,15 +66,20 @@ ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
|
|
|
66
66
|
| Multiple candidates found | Present options with AskUserQuestion |
|
|
67
67
|
| No documents found | Report and end (suggest /design instead) |
|
|
68
68
|
|
|
69
|
-
### Step 2: Document Type Determination
|
|
69
|
+
### Step 2: Document Type and Layer Determination
|
|
70
70
|
|
|
71
|
-
Determine type from document path:
|
|
71
|
+
Determine type from document path, then determine the layer to select the correct update agent:
|
|
72
72
|
|
|
73
73
|
| Path Pattern | Type | Update Agent | Notes |
|
|
74
74
|
|-------------|------|--------------|-------|
|
|
75
|
-
| `docs/design/*.md` | Design Doc | technical-designer
|
|
75
|
+
| `docs/design/*.md` | Design Doc | technical-designer or technical-designer-frontend | See layer detection below |
|
|
76
76
|
| `docs/prd/*.md` | PRD | prd-creator | - |
|
|
77
|
-
| `docs/adr/*.md` | ADR | technical-designer
|
|
77
|
+
| `docs/adr/*.md` | ADR | technical-designer or technical-designer-frontend | See layer detection below |
|
|
78
|
+
|
|
79
|
+
**Layer detection** (for Design Doc and ADR):
|
|
80
|
+
Read the document and determine its layer from content signals:
|
|
81
|
+
- **Frontend** (→ technical-designer-frontend): Document title/scope mentions React, components, UI, frontend; or file contains component hierarchy, state management, UI interactions
|
|
82
|
+
- **Backend** (→ technical-designer): All other cases (API, data layer, business logic, infrastructure)
|
|
78
83
|
|
|
79
84
|
**ADR Update Guidance**:
|
|
80
85
|
- **Minor changes** (clarification, typo fix, small scope adjustment): Update the existing ADR file
|
|
@@ -39,7 +39,7 @@ AskUserQuestionで以下を確認:
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
フェーズ1: PRD生成
|
|
42
|
-
ステップ1:
|
|
42
|
+
ステップ1: スコープ発見(統合、シングルパス → PRDユニットグルーピング → 人間レビュー)
|
|
43
43
|
ステップ2-5: ユニット毎ループ(生成 → 検証 → レビュー → 修正)
|
|
44
44
|
|
|
45
45
|
フェーズ2: Design Doc生成(要求された場合)
|
|
@@ -72,12 +72,14 @@ prompt: |
|
|
|
72
72
|
**品質ゲート**:
|
|
73
73
|
- 1つ以上のユニットが発見された → 続行
|
|
74
74
|
- ユニットが発見されない → ユーザーにヒントを求める
|
|
75
|
+
- `$STEP_1_OUTPUT.prdUnits`が存在すること
|
|
76
|
+
- `prdUnits`全体の`sourceUnits`を結合・重複除去した集合が`discoveredUnits`のID集合と一致すること — 欠落や重複がないこと
|
|
75
77
|
|
|
76
|
-
**人間レビューポイント**(有効時):
|
|
78
|
+
**人間レビューポイント**(有効時): `$STEP_1_OUTPUT.prdUnits`とソースユニットのマッピングを提示する。ユーザーはグルーピングの確認、調整、またはスコープからの除外を行う。これは最も重要なレビューポイント — グルーピングの誤りはすべての下流ドキュメントに波及する。
|
|
77
79
|
|
|
78
80
|
### ステップ2-5: ユニット毎の処理
|
|
79
81
|
|
|
80
|
-
**FOR** `$STEP_1_OUTPUT.
|
|
82
|
+
**FOR** `$STEP_1_OUTPUT.prdUnits`の各ユニット **(逐次実行、1ユニットずつ)**:
|
|
81
83
|
|
|
82
84
|
#### ステップ2: PRD生成
|
|
83
85
|
|
|
@@ -90,10 +92,10 @@ prompt: |
|
|
|
90
92
|
動作モード: reverse-engineer
|
|
91
93
|
External Scope Provided: true
|
|
92
94
|
|
|
93
|
-
機能: $
|
|
94
|
-
説明: $
|
|
95
|
-
関連ファイル: $
|
|
96
|
-
エントリーポイント: $
|
|
95
|
+
機能: $PRD_UNIT_NAME ($STEP_1_OUTPUTより)
|
|
96
|
+
説明: $PRD_UNIT_DESCRIPTION
|
|
97
|
+
関連ファイル: $PRD_UNIT_COMBINED_RELATED_FILES
|
|
98
|
+
エントリーポイント: $PRD_UNIT_COMBINED_ENTRY_POINTS
|
|
97
99
|
|
|
98
100
|
独自のスコープ発見をスキップ。提供されたスコープデータを使用。
|
|
99
101
|
指定スコープ内でのコード調査に基づき最終版PRDを作成。
|
|
@@ -113,7 +115,7 @@ prompt: |
|
|
|
113
115
|
|
|
114
116
|
doc_type: prd
|
|
115
117
|
document_path: $STEP_2_OUTPUT
|
|
116
|
-
code_paths: $
|
|
118
|
+
code_paths: $PRD_UNIT_COMBINED_RELATED_FILES ($STEP_1_OUTPUTより)
|
|
117
119
|
verbose: false
|
|
118
120
|
```
|
|
119
121
|
|
|
@@ -195,7 +197,9 @@ prompt: |
|
|
|
195
197
|
|
|
196
198
|
### ステップ6: Design Docスコープマッピング
|
|
197
199
|
|
|
198
|
-
`$STEP_1_OUTPUT
|
|
200
|
+
**追加の発見は不要。** `$STEP_1_OUTPUT.discoveredUnits`(実装粒度のユニット)を技術プロファイルとして使用する。`$STEP_1_OUTPUT.prdUnits[].sourceUnits`で各PRDユニットに属するdiscoveredUnitsを追跡する。
|
|
201
|
+
|
|
202
|
+
fullstack=Yesの場合、ユニットの`relatedFiles`と`technicalProfile.primaryModules`のパスパターンからbackend / frontend / 両方のいずれが必要かをユニット毎に判定する(technical-specスキルのプロジェクト構造定義を参照)。
|
|
199
203
|
|
|
200
204
|
`$STEP_1_OUTPUT`のユニットから以下を引き継ぐ:
|
|
201
205
|
- `technicalProfile.primaryModules` → 主要ファイル
|
|
@@ -24,7 +24,7 @@ description: 既存設計ドキュメント(Design Doc / PRD / ADR)をレビ
|
|
|
24
24
|
```
|
|
25
25
|
対象ドキュメント → [停止: 変更内容確認]
|
|
26
26
|
↓
|
|
27
|
-
technical-designer / prd-creator(updateモード)
|
|
27
|
+
technical-designer / technical-designer-frontend / prd-creator(updateモード)
|
|
28
28
|
↓
|
|
29
29
|
document-reviewer → [停止: レビュー承認]
|
|
30
30
|
↓(Design Docのみ)
|
|
@@ -66,15 +66,20 @@ ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
|
|
|
66
66
|
| 複数の候補が見つかった | AskUserQuestionで選択肢を提示 |
|
|
67
67
|
| ドキュメントが見つからない | 報告して終了(代わりに/designを推奨) |
|
|
68
68
|
|
|
69
|
-
### ステップ2:
|
|
69
|
+
### ステップ2: ドキュメントタイプとレイヤーの判定
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
ドキュメントパスからタイプを判定し、適切な更新エージェントを選択するためにレイヤーを判定する:
|
|
72
72
|
|
|
73
73
|
| パスパターン | タイプ | 更新エージェント | 備考 |
|
|
74
74
|
|-------------|--------|-----------------|------|
|
|
75
|
-
| `docs/design/*.md` | Design Doc | technical-designer |
|
|
75
|
+
| `docs/design/*.md` | Design Doc | technical-designerまたはtechnical-designer-frontend | 下記レイヤー判定を参照 |
|
|
76
76
|
| `docs/prd/*.md` | PRD | prd-creator | - |
|
|
77
|
-
| `docs/adr/*.md` | ADR | technical-designer |
|
|
77
|
+
| `docs/adr/*.md` | ADR | technical-designerまたはtechnical-designer-frontend | 下記レイヤー判定を参照 |
|
|
78
|
+
|
|
79
|
+
**レイヤー判定**(Design DocとADRの場合):
|
|
80
|
+
ドキュメントの内容からレイヤーを判定する:
|
|
81
|
+
- **フロントエンド**(→ technical-designer-frontend): タイトルやスコープにReact、コンポーネント、UI、フロントエンドの記載がある。またはコンポーネント階層、状態管理、UIインタラクションを含む
|
|
82
|
+
- **バックエンド**(→ technical-designer): 上記以外(API、データ層、ビジネスロジック、インフラストラクチャ)
|
|
78
83
|
|
|
79
84
|
**ADR更新ガイダンス**:
|
|
80
85
|
- **軽微な変更**(明確化、誤字修正、小規模なスコープ調整): 既存ADRファイルを更新
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.18.1] - 2026-03-25
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
#### Structured JSON Output Enforcement
|
|
13
|
+
- Explicit "Return JSON Result" step added to all 15 agents (EN/JA) to ensure consistent structured JSON output
|
|
14
|
+
- Completion criteria updated with "Final response is the JSON output" check across all agents
|
|
15
|
+
|
|
16
|
+
#### Scope Discovery Improvements
|
|
17
|
+
- `scope-discoverer`: PRD unit grouping (step 7) with `valueProfile` metadata (`targetPersona`, `userGoal`, `valueCategory`)
|
|
18
|
+
- `scope-discoverer`: `prdUnits` array in output format for downstream document generation
|
|
19
|
+
- `reverse-engineer`: Updated to use `prdUnits` with quality gate validation (sourceUnits completeness check)
|
|
20
|
+
- `reverse-engineer`: Human review point now presents PRD unit grouping for confirmation
|
|
21
|
+
|
|
22
|
+
#### Document Update Layer Detection
|
|
23
|
+
- `update-doc`: Auto-detect frontend/backend layer from document content for correct agent selection (`technical-designer` vs `technical-designer-frontend`)
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- `quality-fixer` / `quality-fixer-frontend`: "User Report" section replaced with "Intermediate Progress Report" to clarify final output must be JSON
|
|
28
|
+
- `scope-discoverer`: "Merge signals" renamed to "Cohesion signals" with note that grouping is deferred to step 7
|
|
29
|
+
- `investigator`: Step 4 renamed from "Impact Scope Identification and Output" to "Impact Scope Identification"
|
|
30
|
+
- `solver`: Step 5 renamed from "Implementation Steps Creation and Output" to "Implementation Steps Creation"
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Added missing "Applying to Implementation" sections to 5 Japanese agent definitions (`code-reviewer`, `acceptance-test-generator`, `design-sync`, `integration-test-reviewer`, `requirement-analyzer`) that caused JA agents to operate without skill loading instructions
|
|
35
|
+
|
|
8
36
|
## [1.18.0] - 2026-03-21
|
|
9
37
|
|
|
10
38
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ai-project",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.1",
|
|
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": [
|