create-ai-project 1.20.2 → 1.20.4
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 +3 -2
- package/.claude/agents-en/code-reviewer.md +133 -25
- package/.claude/agents-en/codebase-analyzer.md +35 -9
- package/.claude/agents-en/design-sync.md +5 -6
- package/.claude/agents-en/document-reviewer.md +2 -0
- package/.claude/agents-en/integration-test-reviewer.md +2 -2
- package/.claude/agents-en/prd-creator.md +2 -4
- package/.claude/agents-en/quality-fixer-frontend.md +1 -1
- package/.claude/agents-en/quality-fixer.md +1 -1
- package/.claude/agents-en/requirement-analyzer.md +7 -7
- package/.claude/agents-en/scope-discoverer.md +2 -2
- package/.claude/agents-en/solver.md +1 -2
- package/.claude/agents-en/task-decomposer.md +2 -2
- package/.claude/agents-en/task-executor-frontend.md +1 -1
- package/.claude/agents-en/task-executor.md +1 -1
- package/.claude/agents-en/technical-designer-frontend.md +5 -5
- package/.claude/agents-en/technical-designer.md +7 -4
- package/.claude/agents-en/ui-spec-designer.md +1 -1
- package/.claude/agents-en/work-planner.md +1 -1
- package/.claude/agents-ja/acceptance-test-generator.md +3 -2
- package/.claude/agents-ja/code-reviewer.md +133 -25
- package/.claude/agents-ja/codebase-analyzer.md +35 -9
- package/.claude/agents-ja/design-sync.md +5 -5
- package/.claude/agents-ja/document-reviewer.md +2 -0
- package/.claude/agents-ja/integration-test-reviewer.md +2 -2
- package/.claude/agents-ja/prd-creator.md +2 -4
- package/.claude/agents-ja/quality-fixer-frontend.md +1 -1
- package/.claude/agents-ja/quality-fixer.md +1 -1
- package/.claude/agents-ja/requirement-analyzer.md +7 -7
- package/.claude/agents-ja/scope-discoverer.md +2 -2
- package/.claude/agents-ja/solver.md +1 -2
- package/.claude/agents-ja/task-decomposer.md +2 -2
- package/.claude/agents-ja/task-executor-frontend.md +1 -1
- package/.claude/agents-ja/task-executor.md +1 -1
- package/.claude/agents-ja/technical-designer-frontend.md +5 -5
- package/.claude/agents-ja/technical-designer.md +7 -4
- package/.claude/agents-ja/ui-spec-designer.md +1 -1
- package/.claude/agents-ja/work-planner.md +1 -1
- package/.claude/commands-en/build.md +17 -8
- package/.claude/commands-en/front-build.md +25 -41
- package/.claude/commands-en/front-design.md +49 -17
- package/.claude/commands-en/front-plan.md +17 -10
- package/.claude/commands-en/front-review.md +37 -33
- package/.claude/commands-en/review.md +10 -5
- package/.claude/commands-ja/build.md +17 -8
- package/.claude/commands-ja/front-build.md +25 -41
- package/.claude/commands-ja/front-design.md +48 -18
- package/.claude/commands-ja/front-plan.md +22 -15
- package/.claude/commands-ja/front-review.md +37 -33
- package/.claude/commands-ja/review.md +10 -5
- package/.claude/skills-en/coding-standards/references/security-checks.md +4 -2
- package/.claude/skills-en/documentation-criteria/SKILL.md +8 -28
- package/.claude/skills-en/documentation-criteria/references/adr-template.md +5 -1
- package/.claude/skills-en/documentation-criteria/references/design-template.md +18 -8
- package/.claude/skills-en/documentation-criteria/references/plan-template.md +11 -6
- package/.claude/skills-en/documentation-criteria/references/prd-template.md +32 -10
- package/.claude/skills-en/documentation-criteria/references/task-template.md +2 -2
- package/.claude/skills-en/subagents-orchestration-guide/SKILL.md +21 -38
- package/.claude/skills-en/task-analyzer/references/skills-index.yaml +0 -2
- package/.claude/skills-ja/coding-standards/references/security-checks.md +4 -2
- package/.claude/skills-ja/documentation-criteria/SKILL.md +8 -29
- package/.claude/skills-ja/documentation-criteria/references/adr-template.md +5 -1
- package/.claude/skills-ja/documentation-criteria/references/design-template.md +18 -2
- package/.claude/skills-ja/documentation-criteria/references/plan-template.md +11 -6
- package/.claude/skills-ja/documentation-criteria/references/prd-template.md +32 -10
- package/.claude/skills-ja/documentation-criteria/references/task-template.md +2 -2
- package/.claude/skills-ja/subagents-orchestration-guide/SKILL.md +21 -36
- package/.claude/skills-ja/task-analyzer/references/skills-index.yaml +0 -2
- package/CHANGELOG.md +57 -0
- package/README.ja.md +51 -30
- package/README.md +58 -34
- package/docs/guides/en/skills-editing-guide.md +10 -0
- package/docs/guides/ja/skills-editing-guide.md +12 -2
- package/package.json +1 -1
|
@@ -222,11 +222,16 @@ Invariants:
|
|
|
222
222
|
|
|
223
223
|
### Error Handling
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
| Error Category | Example | Detection | Recovery Strategy | User Impact |
|
|
226
|
+
|---------------|---------|-----------|-------------------|-------------|
|
|
227
|
+
| [Validation / External / Infrastructure / Business logic] | [Specific error] | [How detected] | [Retry / Fallback / Propagate / Log-and-continue] | [User-facing message or silent handling] |
|
|
226
228
|
|
|
227
229
|
### Logging and Monitoring
|
|
228
230
|
|
|
229
|
-
[
|
|
231
|
+
- **Log events**: [Key events to log: state transitions, external calls, error occurrences, performance thresholds]
|
|
232
|
+
- **Log levels**: [Which events at DEBUG/INFO/WARN/ERROR]
|
|
233
|
+
- **Sensitive data**: [Fields to mask or exclude — coordinate with Security Considerations]
|
|
234
|
+
- **Monitoring**: [Metrics to track, alert thresholds, dashboard requirements]
|
|
230
235
|
|
|
231
236
|
## Implementation Plan
|
|
232
237
|
|
|
@@ -246,12 +251,6 @@ Invariants:
|
|
|
246
251
|
- Technical Reason: [Technical necessity to implement after A]
|
|
247
252
|
- Prerequisites: [Required pre-implementations]
|
|
248
253
|
|
|
249
|
-
### Integration Points
|
|
250
|
-
|
|
251
|
-
**Integration Point 1: [Name]**
|
|
252
|
-
- Components: [Component A] -> [Component B]
|
|
253
|
-
- Contract: [Interface/API contract between components]
|
|
254
|
-
|
|
255
254
|
### Migration Strategy
|
|
256
255
|
|
|
257
256
|
[Technical migration approach, ensuring backward compatibility]
|
|
@@ -306,6 +305,17 @@ What is verified first, and how, to confirm the approach is correct before scali
|
|
|
306
305
|
- **Success criteria**: [Observable outcome — e.g., "CSV download produces identical output to legacy", "API returns 200 with expected schema"]
|
|
307
306
|
- **Failure response**: [What to do if early verification fails — e.g., "reassess approach before proceeding", "escalate to user"]
|
|
308
307
|
|
|
308
|
+
### Output Comparison (When Replacing or Modifying Existing Behavior)
|
|
309
|
+
|
|
310
|
+
How will behavioral equivalence be verified between existing and new implementation?
|
|
311
|
+
|
|
312
|
+
- **Comparison input**: [Identical input used for both implementations — e.g., "same DB snapshot", "same API request payload"]
|
|
313
|
+
- **Expected output fields**: [Specific fields/columns to compare — e.g., "all output columns", "response body fields: id, status, amount"]
|
|
314
|
+
- **Diff method**: [How to compare — e.g., "file-level diff", "JSON field-by-field comparison", "row count + spot check"]
|
|
315
|
+
- **Transformation pipeline coverage**: [Each step from codebase analysis `dataTransformationPipelines` and what the comparison covers]
|
|
316
|
+
|
|
317
|
+
Mark as N/A with brief rationale when the design introduces entirely new behavior with no existing equivalent.
|
|
318
|
+
|
|
309
319
|
## Alternative Solutions
|
|
310
320
|
|
|
311
321
|
### Alternative 1
|
|
@@ -47,7 +47,8 @@ Related Issue/PR: #XXX (if any)
|
|
|
47
47
|
|
|
48
48
|
Select ONE phase structure based on implementation approach from Design Doc.
|
|
49
49
|
See documentation-criteria skill for detailed Phase Division Criteria.
|
|
50
|
-
|
|
50
|
+
All quality checks follow Quality Check Workflow from coding-standards skill.
|
|
51
|
+
**Delete the unused Option entirely from the final plan.** For hybrid approach, use Option C.
|
|
51
52
|
|
|
52
53
|
### Option A: Vertical Slice Phase Structure
|
|
53
54
|
|
|
@@ -60,7 +61,7 @@ Use when implementation approach is Vertical Slice. Each phase = one value unit
|
|
|
60
61
|
##### Tasks
|
|
61
62
|
- [ ] Task 1: Implementation
|
|
62
63
|
- [ ] Task 2: Verification per Verification Strategy
|
|
63
|
-
- [ ] Quality check
|
|
64
|
+
- [ ] Quality check (staged)
|
|
64
65
|
|
|
65
66
|
##### Phase Completion Criteria
|
|
66
67
|
- [ ] Early verification point passed
|
|
@@ -89,7 +90,7 @@ Use when implementation approach is Horizontal Slice. Phases follow Foundation
|
|
|
89
90
|
##### Tasks
|
|
90
91
|
- [ ] Task 1: Specific work content
|
|
91
92
|
- [ ] Task 2: Specific work content
|
|
92
|
-
- [ ] Quality check
|
|
93
|
+
- [ ] Quality check (staged)
|
|
93
94
|
- [ ] Unit tests: All related tests pass
|
|
94
95
|
|
|
95
96
|
##### Phase Completion Criteria
|
|
@@ -102,7 +103,7 @@ Use when implementation approach is Horizontal Slice. Phases follow Foundation
|
|
|
102
103
|
##### Tasks
|
|
103
104
|
- [ ] Task 1: Specific work content
|
|
104
105
|
- [ ] Task 2: Specific work content
|
|
105
|
-
- [ ] Quality check
|
|
106
|
+
- [ ] Quality check (staged)
|
|
106
107
|
- [ ] Integration tests: Verify overall feature functionality
|
|
107
108
|
|
|
108
109
|
##### Phase Completion Criteria
|
|
@@ -115,13 +116,17 @@ Use when implementation approach is Horizontal Slice. Phases follow Foundation
|
|
|
115
116
|
##### Tasks
|
|
116
117
|
- [ ] Task 1: Specific work content
|
|
117
118
|
- [ ] Task 2: Specific work content
|
|
118
|
-
- [ ] Quality check
|
|
119
|
+
- [ ] Quality check (staged)
|
|
119
120
|
- [ ] Integration tests: Verify component coordination
|
|
120
121
|
|
|
121
122
|
##### Phase Completion Criteria
|
|
122
123
|
- [ ] [Functional completion criteria]
|
|
123
124
|
- [ ] [Quality completion criteria]
|
|
124
125
|
|
|
126
|
+
### Option C: Hybrid Phase Structure
|
|
127
|
+
|
|
128
|
+
Use when implementation approach is Hybrid. Combine vertical and horizontal phases as defined in Design Doc implementation approach. Structure phases per Design Doc specification, ensuring each phase has Tasks, Verification, and Phase Completion Criteria sections matching the format above.
|
|
129
|
+
|
|
125
130
|
### Final Phase: Quality Assurance (Required) (Estimated commits: 1)
|
|
126
131
|
|
|
127
132
|
This phase is required for ALL implementation approaches.
|
|
@@ -137,7 +142,7 @@ This phase is required for ALL implementation approaches.
|
|
|
137
142
|
- [ ] Document updates
|
|
138
143
|
|
|
139
144
|
### Quality Assurance
|
|
140
|
-
- [ ]
|
|
145
|
+
- [ ] Quality check (staged)
|
|
141
146
|
|
|
142
147
|
## Risks and Countermeasures
|
|
143
148
|
| Risk | Countermeasure |
|
|
@@ -25,23 +25,45 @@ So that [expected value/benefit]
|
|
|
25
25
|
2. [Specific usage scenario 2]
|
|
26
26
|
3. [Specific usage scenario 3]
|
|
27
27
|
|
|
28
|
+
### User Journey Diagram
|
|
29
|
+
```mermaid
|
|
30
|
+
journey
|
|
31
|
+
title [Feature Name] User Journey
|
|
32
|
+
section [Phase 1]
|
|
33
|
+
[Step]: [satisfaction score]: [actor]
|
|
34
|
+
```
|
|
35
|
+
[Map the end-to-end user experience from trigger event to goal completion]
|
|
36
|
+
|
|
37
|
+
### Scope Boundary Diagram
|
|
38
|
+
```mermaid
|
|
39
|
+
C4Context
|
|
40
|
+
Boundary(scope, "In Scope") {
|
|
41
|
+
[Components in scope]
|
|
42
|
+
}
|
|
43
|
+
Boundary(out, "Out of Scope") {
|
|
44
|
+
[Components out of scope]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
[Clarify what is and is not included in this feature]
|
|
48
|
+
|
|
28
49
|
## Functional Requirements
|
|
29
50
|
|
|
30
|
-
### Must Have (MVP)
|
|
51
|
+
### Must Have (P1 - MVP)
|
|
31
52
|
- [ ] Requirement 1: [Detailed description]
|
|
32
53
|
- AC: [Acceptance criteria - Given/When/Then format or measurable standard]
|
|
33
54
|
- [ ] Requirement 2: [Detailed description]
|
|
34
55
|
- AC: [Acceptance criteria]
|
|
35
|
-
|
|
56
|
+
|
|
57
|
+
### Should Have (P2)
|
|
58
|
+
- [ ] Requirement 1: [Detailed description]
|
|
36
59
|
- AC: [Acceptance criteria]
|
|
37
60
|
|
|
38
|
-
###
|
|
61
|
+
### Could Have (P3)
|
|
39
62
|
- [ ] Requirement 1: [Detailed description]
|
|
40
|
-
- [ ] Requirement 2: [Detailed description]
|
|
41
63
|
|
|
42
|
-
###
|
|
43
|
-
- Item 1: [Description and reason]
|
|
44
|
-
- Item 2: [Description and reason]
|
|
64
|
+
### Won't Have (this release)
|
|
65
|
+
- Item 1: [Description and reason for exclusion]
|
|
66
|
+
- Item 2: [Description and reason for exclusion]
|
|
45
67
|
|
|
46
68
|
## Non-Functional Requirements
|
|
47
69
|
|
|
@@ -69,9 +91,9 @@ So that [expected value/benefit]
|
|
|
69
91
|
## Success Criteria
|
|
70
92
|
|
|
71
93
|
### Quantitative Metrics
|
|
72
|
-
1. [
|
|
73
|
-
2. [
|
|
74
|
-
3. [
|
|
94
|
+
1. [Metric name]: [numeric target] measured by [method] within [timeframe]
|
|
95
|
+
2. [Metric name]: [numeric target] measured by [method] within [timeframe]
|
|
96
|
+
3. [Metric name]: [numeric target] measured by [method] within [timeframe]
|
|
75
97
|
|
|
76
98
|
### Qualitative Metrics
|
|
77
99
|
1. [User experience metric 1]
|
|
@@ -38,7 +38,7 @@ Files to read before starting implementation (file path, with optional search hi
|
|
|
38
38
|
- **Verification method**: [What to verify and how — e.g., "compare new implementation output against existing implementation at src/legacy/order_calc", "run endpoint against test database and verify response matches contract"]
|
|
39
39
|
- **Success criteria**: [Observable outcome that proves correctness — e.g., "output matches existing implementation for all input combinations", "API returns 200 with expected schema"]
|
|
40
40
|
- **Failure response**: [What to do if verification fails — e.g., "reassess approach before proceeding", "escalate to user"]
|
|
41
|
-
- **Verification level**: [L1/L2/L3
|
|
41
|
+
- **Verification level**: [L1: Functional operation as end-user feature / L2: New tests added and passing / L3: Code builds without errors]
|
|
42
42
|
|
|
43
43
|
## Completion Criteria
|
|
44
44
|
- [ ] All added tests pass
|
|
@@ -47,4 +47,4 @@ Files to read before starting implementation (file path, with optional search hi
|
|
|
47
47
|
|
|
48
48
|
## Notes
|
|
49
49
|
- Impact scope: [Areas where changes may propagate]
|
|
50
|
-
-
|
|
50
|
+
- Scope boundary: [Files to preserve unchanged — path and reason]
|
|
@@ -20,18 +20,9 @@ This document provides practical behavioral guidelines for me (Claude) to effici
|
|
|
20
20
|
- **Analysis/Design**: Delegate to the appropriate specialist subagent
|
|
21
21
|
- **First action**: Pass user requirements to requirement-analyzer before any other step
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
### First Action Rule
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
```mermaid
|
|
28
|
-
graph TD
|
|
29
|
-
Start[Receive New Task] --> RA[Analyze requirements with requirement-analyzer]
|
|
30
|
-
RA --> Scale[Scale assessment]
|
|
31
|
-
Scale --> Flow[Execute flow based on scale]
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**During flow execution, determine next subagent according to scale determination table**
|
|
25
|
+
When receiving a new task, pass user requirements directly to requirement-analyzer. Determine the workflow based on its scale assessment result.
|
|
35
26
|
|
|
36
27
|
### Requirement Change Detection During Flow
|
|
37
28
|
|
|
@@ -59,7 +50,7 @@ graph TD
|
|
|
59
50
|
10. **technical-designer**: ADR/Design Doc creation (latest technology research, Property annotation assignment)
|
|
60
51
|
11. **work-planner**: Work plan creation from Design Doc and test skeletons
|
|
61
52
|
12. **document-reviewer**: Single document quality, completeness, and rule compliance check
|
|
62
|
-
13. **code-verifier**: Verify Design Doc claims against existing codebase
|
|
53
|
+
13. **code-verifier**: Verify document-code consistency. Pre-implementation: Design Doc claims against existing codebase. Post-implementation: implementation against Design Doc
|
|
63
54
|
14. **design-sync**: Design Doc consistency verification (detects explicit conflicts only)
|
|
64
55
|
15. **acceptance-test-generator**: Generate separate integration and E2E test skeletons from Design Doc ACs and optional UI Spec
|
|
65
56
|
|
|
@@ -141,7 +132,7 @@ Subagents respond in JSON format. Key fields for orchestrator decisions:
|
|
|
141
132
|
|-------|-----------|----------------|
|
|
142
133
|
| requirement-analyzer | scale, confidence, adrRequired, crossLayerScope, scopeDependencies, questions | Select flow by scale; check adrRequired for ADR step |
|
|
143
134
|
| codebase-analyzer | analysisScope.categoriesDetected, dataModel.detected, focusAreas[], existingElements count, limitations | Pass focusAreas to technical-designer as context |
|
|
144
|
-
| code-verifier | consistencyScore, discrepancies[], reverseCoverage (dataOperationsInCode, testBoundariesSectionPresent) | Flag discrepancies for document-reviewer |
|
|
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 |
|
|
145
136
|
| task-executor | status (escalation_needed/completed), escalation_type, testsAdded, requiresTestReview | On escalation_needed: handle by escalation_type (design_compliance_violation, similar_function_found, similar_component_found, investigation_target_not_found, out_of_scope_file) |
|
|
146
137
|
| quality-fixer | status (approved/blocked), reason, blockingIssues[], missingPrerequisites[] | On blocked: see quality-fixer blocked handling below |
|
|
147
138
|
| document-reviewer | approvalReady (true/false) | Proceed to next step on true; request fixes on false |
|
|
@@ -182,9 +173,9 @@ According to scale determination:
|
|
|
182
173
|
### Medium Scale (3-5 Files) - 9 Steps (backend) / 11 Steps (frontend/fullstack)
|
|
183
174
|
|
|
184
175
|
1. requirement-analyzer → Requirement analysis **[Stop]**
|
|
185
|
-
2.
|
|
186
|
-
3. **(frontend/fullstack only)**
|
|
187
|
-
4.
|
|
176
|
+
2. **(frontend/fullstack only)** Ask user for prototype code → ui-spec-designer → UI Spec creation (UI Spec informs component structure for technical design)
|
|
177
|
+
3. **(frontend/fullstack only)** document-reviewer → UI Spec review **[Stop: UI Spec Approval]**
|
|
178
|
+
4. codebase-analyzer → Codebase analysis (pass requirement-analyzer output)
|
|
188
179
|
5. technical-designer → Design Doc creation (pass codebase-analyzer output as additional context; cross-layer: per layer, see Cross-Layer Orchestration)
|
|
189
180
|
6. code-verifier → Verify Design Doc against existing code (doc_type: design-doc)
|
|
190
181
|
7. document-reviewer → Design Doc review (pass code-verifier results as code_verification; cross-layer: per Design Doc)
|
|
@@ -301,7 +292,7 @@ Construct the prompt from the agent's Input Parameters section and the deliverab
|
|
|
301
292
|
#### codebase-analyzer → technical-designer
|
|
302
293
|
|
|
303
294
|
**Pass to codebase-analyzer**: requirement-analyzer JSON output, PRD path (if exists), original user requirements
|
|
304
|
-
**Pass to technical-designer**: codebase-analyzer JSON output as additional context in the Design Doc creation prompt. The designer uses `focusAreas` and `
|
|
295
|
+
**Pass to technical-designer**: codebase-analyzer JSON output as additional context in the Design Doc creation prompt. The designer uses `focusAreas`, `dataModel`, and `dataTransformationPipelines` to inform the Existing Codebase Analysis and Verification Strategy sections.
|
|
305
296
|
|
|
306
297
|
#### code-verifier → document-reviewer (Design Doc review)
|
|
307
298
|
|
|
@@ -327,9 +318,7 @@ Construct the prompt from the agent's Input Parameters section and the deliverab
|
|
|
327
318
|
- E2E test file: [path] (execute only in final phase)
|
|
328
319
|
|
|
329
320
|
**On error**: Escalate to user if files are not generated
|
|
330
|
-
3. **
|
|
331
|
-
4. **Autonomous Execution Mode Management**: Start/stop autonomous execution after approval, escalation decisions
|
|
332
|
-
5. **ADR Status Management**: Update ADR status after user decision (Accepted/Rejected)
|
|
321
|
+
3. **ADR Status Management**: Update ADR status after user decision (Accepted/Rejected)
|
|
333
322
|
|
|
334
323
|
## Important Constraints
|
|
335
324
|
|
|
@@ -339,22 +328,16 @@ Construct the prompt from the agent's Input Parameters section and the deliverab
|
|
|
339
328
|
- **Flow confirmation**: After getting approval, ALWAYS check next step with work planning flow (large/medium/small scale)
|
|
340
329
|
- **Consistency verification**: When subagent outputs conflict, apply Decision precedence (see Delegation Boundary section)
|
|
341
330
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
-
|
|
354
|
-
- **After UI Spec creation -> document-reviewer execution** (frontend/fullstack): Confirm UI specification completeness and consistency
|
|
355
|
-
- **After ADR creation -> document-reviewer execution**: Confirm technical direction and consistency (present multiple options with comparison table)
|
|
356
|
-
- On user approval: Main AI (me) updates Status to Accepted
|
|
357
|
-
- On user rejection: Main AI (me) updates Status to Rejected
|
|
358
|
-
- **After Design Doc creation -> document-reviewer execution**: Confirm design content and consistency
|
|
359
|
-
- **After work plan creation**: Batch approval for entire implementation phase (confirm with plan summary)
|
|
331
|
+
### Progress Tracking
|
|
332
|
+
|
|
333
|
+
Register overall phases using TaskCreate. Update each phase with TaskUpdate as it completes.
|
|
334
|
+
|
|
335
|
+
### Post-Implementation Verification Pass/Fail Criteria
|
|
336
|
+
|
|
337
|
+
| Verifier | Pass | Fail | Blocked |
|
|
338
|
+
|----------|------|------|---------|
|
|
339
|
+
| code-verifier | `status` is `consistent` or `mostly_consistent` | `status` is `needs_review` or `inconsistent` | — |
|
|
340
|
+
| security-reviewer | `status` is `approved` or `approved_with_notes` | `status` is `needs_revision` | `status` is `blocked` → Escalate to user |
|
|
341
|
+
|
|
342
|
+
**Re-run rule**: After fix cycle, re-run only verifiers that returned **fail**. Verifiers that passed on the previous run are not re-run. Maximum 2 fix cycles — if still failing after 2 cycles, escalate to user with remaining findings.
|
|
360
343
|
|
|
@@ -168,7 +168,6 @@ skills:
|
|
|
168
168
|
- "Agent Coordination Patterns"
|
|
169
169
|
sections:
|
|
170
170
|
- "Core Principle: I Am an Orchestrator"
|
|
171
|
-
- "Decision Flow When Receiving Tasks"
|
|
172
171
|
- "Subagents I Can Utilize"
|
|
173
172
|
- "My Orchestration Principles"
|
|
174
173
|
- "Constraints Between Subagents"
|
|
@@ -179,7 +178,6 @@ skills:
|
|
|
179
178
|
- "Autonomous Execution Mode"
|
|
180
179
|
- "My Main Roles as Orchestrator"
|
|
181
180
|
- "Important Constraints"
|
|
182
|
-
- "Required Dialogue Points with Humans"
|
|
183
181
|
|
|
184
182
|
skill-optimization:
|
|
185
183
|
skill: "skill-optimization"
|
|
@@ -49,12 +49,14 @@ Sources: OWASP Top 10:2025, DryRun Agentic Coding Security Report (2026-03)
|
|
|
49
49
|
- 認証ミドルウェアなしで定義されたエンドポイントやルートハンドラ
|
|
50
50
|
- 認可検証なしのリソースアクセス操作(読み取り、更新、削除)
|
|
51
51
|
- 昇格された権限なしでアクセス可能な管理操作や破壊的操作
|
|
52
|
-
-
|
|
52
|
+
- AI生成コードでは認証ミドルウェアと認可チェックの欠落が頻発する — 全ルートハンドラとリソースアクセス操作をレビュー時に明示的に検証対象とする
|
|
53
|
+
- 検出方法: 認証ミドルウェアを持たないルート/エンドポイントハンドラ定義を検索し、呼び出しチェーン内で認可チェックなしのリソース操作(読み取り、更新、削除)を検索
|
|
53
54
|
|
|
54
55
|
### 例外条件の不適切な処理(OWASP A10:2025)
|
|
55
56
|
- レスポンスに内部システム詳細(スタックトレース、データベースエラー、ファイルパス)を露出するエラーハンドラ
|
|
56
|
-
-
|
|
57
|
+
- 例外発生時にアクセスを許可、認証をスキップ、または認可をバイパスするエラーハンドラ(フェイルオープン動作)
|
|
57
58
|
- セキュリティ上重要な操作(認証、認可、暗号操作)でのエラーハンドリング欠如
|
|
59
|
+
- 検出方法: レスポンスにスタックトレース、データベースエラーメッセージ、ファイルパスを返すcatch/エラーハンドラブロックを検索。セキュリティ状態を再検証せずにnext()を呼び出すまたは成功を返すcatchブロックを検索
|
|
58
60
|
|
|
59
61
|
### ソフトウェアサプライチェーンパターン(OWASP A03:2025)
|
|
60
62
|
- バージョン固定なしでインポートされた依存関係
|
|
@@ -50,18 +50,14 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
50
50
|
|
|
51
51
|
**含むもの**:
|
|
52
52
|
- ビジネス要件とユーザー価値
|
|
53
|
-
- 成功指標とKPI
|
|
53
|
+
- 成功指標とKPI(各指標に数値目標、測定方法、期間を明記)
|
|
54
54
|
- ユーザーストーリーとユースケース
|
|
55
55
|
- MoSCoW法による優先順位(Must/Should/Could/Won't)
|
|
56
56
|
- MVPとFutureフェーズの分離
|
|
57
57
|
- ユーザージャーニー図(必須)
|
|
58
58
|
- スコープ境界図(必須)
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
- 技術実装詳細(→Design Doc)
|
|
62
|
-
- 技術選定理由(→ADR)
|
|
63
|
-
- **実装フェーズ**(→作業計画書)
|
|
64
|
-
- **タスク分解**(→作業計画書)
|
|
60
|
+
**スコープ**: ビジネス要件、ユーザー価値、成功指標、ユーザーストーリー、優先順位のみ。技術実装詳細はDesign Doc、技術選定理由はADR、フェーズとタスク分解は作業計画書に記載。
|
|
65
61
|
|
|
66
62
|
### ADR(Architecture Decision Record)
|
|
67
63
|
|
|
@@ -74,11 +70,7 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
74
70
|
- アーキテクチャへの影響
|
|
75
71
|
- 実装への原則的な指針(例:「依存性注入を使用」)
|
|
76
72
|
|
|
77
|
-
|
|
78
|
-
- 実装スケジュール、期間(→作業計画書)
|
|
79
|
-
- 実装手順の詳細(→Design Doc)
|
|
80
|
-
- 具体的なコード例(→Design Doc)
|
|
81
|
-
- 担当者の割り当て(→作業計画書)
|
|
73
|
+
**スコープ**: 決定事項、根拠、選択肢比較、アーキテクチャへの影響、原則的な指針のみ。実装手順とコード例はDesign Doc、スケジュールと担当割り当ては作業計画書に記載。
|
|
82
74
|
|
|
83
75
|
### UI Spec
|
|
84
76
|
|
|
@@ -94,11 +86,7 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
94
86
|
- ビジュアル受入条件(AC)(ゴールデンステート、レイアウト制約)
|
|
95
87
|
- アクセシビリティ要件(キーボード、スクリーンリーダー、コントラスト)
|
|
96
88
|
|
|
97
|
-
|
|
98
|
-
- 技術実装詳細(→ Design Doc)
|
|
99
|
-
- APIコントラクトとデータレイヤー設計(→ Design Doc)
|
|
100
|
-
- テスト実装(→ acceptance-test-generatorのスケルトン)
|
|
101
|
-
- 実装スケジュール(→ 作業計画書)
|
|
89
|
+
**スコープ**: 画面構造、遷移、コンポーネント分解、インタラクション設計、ビジュアル受入条件のみ。技術実装とAPIコントラクトはDesign Doc、テスト実装はacceptance-test-generatorスケルトン、スケジュールは作業計画書に記載。
|
|
102
90
|
|
|
103
91
|
**必須構造要素**:
|
|
104
92
|
- 状態×表示マトリクスとインタラクション表を含むコンポーネントが1つ以上
|
|
@@ -123,7 +111,7 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
123
111
|
- **技術的依存関係と実装制約**(実装の必要順序)
|
|
124
112
|
- インターフェース定義と型定義
|
|
125
113
|
- データフローとコンポーネント設計
|
|
126
|
-
- **受入条件(EARS
|
|
114
|
+
- **受入条件(EARS形式 — design-template.md参照。各条件に検証可能な条件と合否閾値を明記)**
|
|
127
115
|
- 変更影響マップ(直接影響/間接影響/波及なしを明記)
|
|
128
116
|
- 統合点の完全な列挙
|
|
129
117
|
- データ契約の明確化
|
|
@@ -152,10 +140,7 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
152
140
|
互換性確保: [方法]
|
|
153
141
|
```
|
|
154
142
|
|
|
155
|
-
|
|
156
|
-
- なぜその技術を選んだか(→ADR参照)
|
|
157
|
-
- いつ実装するか、期間(→作業計画書)
|
|
158
|
-
- 誰が実装するか(→作業計画書)
|
|
143
|
+
**スコープ**: 技術実装方法、インターフェース、データフロー、受入条件、検証戦略のみ。技術選定理由はADR、スケジュールと担当は作業計画書に記載。
|
|
159
144
|
|
|
160
145
|
### 作業計画書
|
|
161
146
|
|
|
@@ -170,29 +155,23 @@ description: PRD、ADR、Design Doc、作業計画書の作成を支援。技術
|
|
|
170
155
|
- **最終フェーズに品質保証を含む**(必須)
|
|
171
156
|
- 進捗記録(チェックボックス形式)
|
|
172
157
|
|
|
173
|
-
|
|
174
|
-
- 技術的な根拠(→ADR)
|
|
175
|
-
- 設計の詳細(→Design Doc)
|
|
176
|
-
- 技術的依存関係の決定(→Design Doc)
|
|
158
|
+
**スコープ**: タスク分解、依存関係、スケジュール、検証戦略の要約、進捗追跡のみ。技術的な根拠はADR、設計詳細はDesign Docに記載。
|
|
177
159
|
|
|
178
160
|
**フェーズ分割基準**(Design Docの実装アプローチに応じて適用):
|
|
179
161
|
|
|
180
162
|
**垂直スライス選択時**:
|
|
181
163
|
- 各フェーズ = 1つの価値単位(機能、コンポーネント、移行対象)
|
|
182
164
|
- 各フェーズに検証戦略に基づく実装+検証を含む
|
|
183
|
-
- 最終フェーズ: 品質保証(横断的検証、全テストパス)
|
|
184
165
|
|
|
185
166
|
**水平スライス選択時**:
|
|
186
167
|
1. **Phase 1: 基盤実装** - 型定義、インターフェース、テスト準備
|
|
187
168
|
2. **Phase 2: コア機能実装** - ビジネスロジック、ユニットテスト
|
|
188
169
|
3. **Phase 3: 統合実装** - 外部接続、プレゼンテーション層
|
|
189
|
-
4. **最終Phase: 品質保証(必須)** - 受入条件達成、全テストパス、品質チェック
|
|
190
170
|
|
|
191
171
|
**ハイブリッド選択時**:
|
|
192
172
|
- Design Docの実装アプローチに基づき垂直と水平を組み合わせる
|
|
193
|
-
- 最終フェーズ: 品質保証(必須)
|
|
194
173
|
|
|
195
|
-
**全アプローチ共通**:
|
|
174
|
+
**全アプローチ共通**: 最終フェーズは常に品質保証(受入条件達成、全テストパス、品質チェック)。各フェーズの検証手法はDesign Docの検証戦略に従う。
|
|
196
175
|
|
|
197
176
|
**タスク完了定義の3要素**:
|
|
198
177
|
1. **実装完了**: コードが動作する
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## ステータス
|
|
4
4
|
|
|
5
|
-
[Proposed | Accepted | Deprecated | Superseded]
|
|
5
|
+
[Proposed | Accepted | Deprecated | Superseded | Rejected]
|
|
6
6
|
|
|
7
7
|
## 経緯
|
|
8
8
|
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
|
|
55
55
|
- [良くも悪くもない変化をリストアップ]
|
|
56
56
|
|
|
57
|
+
## アーキテクチャへの影響
|
|
58
|
+
|
|
59
|
+
[この決定が既存アーキテクチャにどう影響するか: (1) 変更されるコンポーネント、(2) 新たに導入される依存関係、(3) 追加または撤廃されるアーキテクチャ制約]
|
|
60
|
+
|
|
57
61
|
## 実装指針
|
|
58
62
|
|
|
59
63
|
[原則的な方向性のみ。実装手順はDesign Docへ]
|
|
@@ -222,11 +222,16 @@ unknowns:
|
|
|
222
222
|
|
|
223
223
|
### エラーハンドリング
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
| エラーカテゴリ | 例 | 検出方法 | 復旧戦略 | ユーザーへの影響 |
|
|
226
|
+
|-------------|-----|---------|---------|---------------|
|
|
227
|
+
| [検証 / 外部 / インフラ / ビジネスロジック] | [具体的なエラー] | [検出方法] | [リトライ / フォールバック / 伝播 / ログ後続行] | [ユーザー向けメッセージまたはサイレント処理] |
|
|
226
228
|
|
|
227
229
|
### ロギングとモニタリング
|
|
228
230
|
|
|
229
|
-
[
|
|
231
|
+
- **ログイベント**: [記録すべきイベント: 状態遷移、外部呼び出し、エラー発生、パフォーマンス閾値]
|
|
232
|
+
- **ログレベル**: [DEBUG/INFO/WARN/ERRORの振り分け]
|
|
233
|
+
- **機密データ**: [マスクまたは除外するフィールド — セキュリティ考慮事項と連携]
|
|
234
|
+
- **モニタリング**: [追跡する指標、アラート閾値、ダッシュボード要件]
|
|
230
235
|
|
|
231
236
|
## 実装計画
|
|
232
237
|
|
|
@@ -306,6 +311,17 @@ unknowns:
|
|
|
306
311
|
- **成功基準**: [観察可能な成果 — 例: 「CSVダウンロードが既存と同一の出力を生成」「APIが期待スキーマで200を返す」]
|
|
307
312
|
- **失敗時の対応**: [早期検証が失敗した場合の対処 — 例: 「続行前にアプローチを再評価」「ユーザーにエスカレーション」]
|
|
308
313
|
|
|
314
|
+
### 出力比較(既存の振る舞いを置換または変更する場合)
|
|
315
|
+
|
|
316
|
+
既存実装と新実装の振る舞いの同等性をどう検証するか?
|
|
317
|
+
|
|
318
|
+
- **比較入力**: [両実装に対して使用する同一入力 — 例: 「同一DBスナップショット」「同一APIリクエストペイロード」]
|
|
319
|
+
- **期待される出力フィールド**: [比較対象の具体的なフィールド/カラム — 例: 「全出力カラム」「レスポンスボディのフィールド: id, status, amount」]
|
|
320
|
+
- **差分比較方法**: [比較手法 — 例: 「ファイルレベルのdiff」「JSONフィールド単位の比較」「行数 + スポットチェック」]
|
|
321
|
+
- **変換パイプラインカバレッジ**: [コードベース分析の`dataTransformationPipelines`の各ステップと、比較がカバーする範囲]
|
|
322
|
+
|
|
323
|
+
既存の同等物がなく完全に新規の振る舞いを導入する場合は、簡潔な理由とともにN/Aと記載。
|
|
324
|
+
|
|
309
325
|
## 代替案
|
|
310
326
|
|
|
311
327
|
### 代替案1
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
|
|
48
48
|
Design Docの実装アプローチに基づいてフェーズ構成をひとつ選択する。
|
|
49
49
|
詳細はdocumentation-criteriaスキルのフェーズ分割基準を参照。
|
|
50
|
-
|
|
50
|
+
全品質チェックはcoding-standardsスキルの品質チェックワークフローに従う。
|
|
51
|
+
**未使用のOptionは最終計画書から削除すること。** ハイブリッドの場合はOption Cを使用する。
|
|
51
52
|
|
|
52
53
|
### Option A: 垂直スライスのフェーズ構成
|
|
53
54
|
|
|
@@ -60,7 +61,7 @@ Design Docの実装アプローチに基づいてフェーズ構成をひとつ
|
|
|
60
61
|
##### タスク
|
|
61
62
|
- [ ] タスク1: 実装
|
|
62
63
|
- [ ] タスク2: 検証戦略に基づく検証
|
|
63
|
-
- [ ]
|
|
64
|
+
- [ ] 品質チェック(段階的)
|
|
64
65
|
|
|
65
66
|
##### フェーズ完了条件
|
|
66
67
|
- [ ] 早期検証ポイント通過
|
|
@@ -89,7 +90,7 @@ Design Docの実装アプローチに基づいてフェーズ構成をひとつ
|
|
|
89
90
|
##### タスク
|
|
90
91
|
- [ ] タスク1: 具体的な作業内容
|
|
91
92
|
- [ ] タスク2: 具体的な作業内容
|
|
92
|
-
- [ ]
|
|
93
|
+
- [ ] 品質チェック(段階的)
|
|
93
94
|
- [ ] 単体テスト: 関連する全テストがパス
|
|
94
95
|
|
|
95
96
|
##### フェーズ完了条件
|
|
@@ -102,7 +103,7 @@ Design Docの実装アプローチに基づいてフェーズ構成をひとつ
|
|
|
102
103
|
##### タスク
|
|
103
104
|
- [ ] タスク1: 具体的な作業内容
|
|
104
105
|
- [ ] タスク2: 具体的な作業内容
|
|
105
|
-
- [ ]
|
|
106
|
+
- [ ] 品質チェック(段階的)
|
|
106
107
|
- [ ] 統合テスト: 機能全体の動作確認
|
|
107
108
|
|
|
108
109
|
##### フェーズ完了条件
|
|
@@ -115,13 +116,17 @@ Design Docの実装アプローチに基づいてフェーズ構成をひとつ
|
|
|
115
116
|
##### タスク
|
|
116
117
|
- [ ] タスク1: 具体的な作業内容
|
|
117
118
|
- [ ] タスク2: 具体的な作業内容
|
|
118
|
-
- [ ]
|
|
119
|
+
- [ ] 品質チェック(段階的)
|
|
119
120
|
- [ ] 統合テスト: コンポーネント連携の検証
|
|
120
121
|
|
|
121
122
|
##### フェーズ完了条件
|
|
122
123
|
- [ ] [機能完了条件]
|
|
123
124
|
- [ ] [品質完了条件]
|
|
124
125
|
|
|
126
|
+
### Option C: ハイブリッドのフェーズ構成
|
|
127
|
+
|
|
128
|
+
実装アプローチがハイブリッドの場合に使用。Design Docの実装アプローチに基づき垂直と水平を組み合わせる。各フェーズにタスク、検証、フェーズ完了条件のセクションを上記フォーマットに合わせて記載。
|
|
129
|
+
|
|
125
130
|
### 最終Phase: 品質保証(必須)(想定コミット数: 1)
|
|
126
131
|
|
|
127
132
|
このフェーズは全実装アプローチで必須。
|
|
@@ -137,7 +142,7 @@ Design Docの実装アプローチに基づいてフェーズ構成をひとつ
|
|
|
137
142
|
- [ ] ドキュメント更新
|
|
138
143
|
|
|
139
144
|
### 品質保証
|
|
140
|
-
- [ ]
|
|
145
|
+
- [ ] 品質チェック(段階的)
|
|
141
146
|
|
|
142
147
|
## リスクと対策
|
|
143
148
|
| リスク | 対策 |
|
|
@@ -25,23 +25,45 @@
|
|
|
25
25
|
2. [具体的な利用シナリオ2]
|
|
26
26
|
3. [具体的な利用シナリオ3]
|
|
27
27
|
|
|
28
|
+
### ユーザージャーニー図
|
|
29
|
+
```mermaid
|
|
30
|
+
journey
|
|
31
|
+
title [機能名] ユーザージャーニー
|
|
32
|
+
section [フェーズ1]
|
|
33
|
+
[ステップ]: [満足度スコア]: [アクター]
|
|
34
|
+
```
|
|
35
|
+
[トリガーイベントから目標達成までのエンドツーエンドのユーザー体験をマッピング]
|
|
36
|
+
|
|
37
|
+
### スコープ境界図
|
|
38
|
+
```mermaid
|
|
39
|
+
C4Context
|
|
40
|
+
Boundary(scope, "スコープ内") {
|
|
41
|
+
[スコープ内のコンポーネント]
|
|
42
|
+
}
|
|
43
|
+
Boundary(out, "スコープ外") {
|
|
44
|
+
[スコープ外のコンポーネント]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
[この機能に含まれるものと含まれないものを明確化]
|
|
48
|
+
|
|
28
49
|
## 機能要件
|
|
29
50
|
|
|
30
|
-
### Must Have
|
|
51
|
+
### Must Have (P1 - MVP)
|
|
31
52
|
- [ ] 要件1: [詳細説明]
|
|
32
53
|
- AC: [受入条件 - Given/When/Then形式または測定可能な基準]
|
|
33
54
|
- [ ] 要件2: [詳細説明]
|
|
34
55
|
- AC: [受入条件]
|
|
35
|
-
|
|
56
|
+
|
|
57
|
+
### Should Have (P2)
|
|
58
|
+
- [ ] 要件1: [詳細説明]
|
|
36
59
|
- AC: [受入条件]
|
|
37
60
|
|
|
38
|
-
###
|
|
61
|
+
### Could Have (P3)
|
|
39
62
|
- [ ] 要件1: [詳細説明]
|
|
40
|
-
- [ ] 要件2: [詳細説明]
|
|
41
63
|
|
|
42
|
-
###
|
|
43
|
-
- 項目1: [
|
|
44
|
-
- 項目2: [
|
|
64
|
+
### Won't Have(今回のリリース対象外)
|
|
65
|
+
- 項目1: [説明と除外理由]
|
|
66
|
+
- 項目2: [説明と除外理由]
|
|
45
67
|
|
|
46
68
|
## 非機能要件
|
|
47
69
|
|
|
@@ -69,9 +91,9 @@
|
|
|
69
91
|
## 成功基準
|
|
70
92
|
|
|
71
93
|
### 定量的指標
|
|
72
|
-
1. [
|
|
73
|
-
2. [
|
|
74
|
-
3. [
|
|
94
|
+
1. [指標名]: [数値目標] を [測定方法] で [期間] 以内に達成
|
|
95
|
+
2. [指標名]: [数値目標] を [測定方法] で [期間] 以内に達成
|
|
96
|
+
3. [指標名]: [数値目標] を [測定方法] で [期間] 以内に達成
|
|
75
97
|
|
|
76
98
|
### 定性的指標
|
|
77
99
|
1. [ユーザー体験の指標1]
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
- **検証手法**: [何をどう検証するか — 例: 「新実装の出力をsrc/legacy/order_calcの既存実装と比較」「エンドポイントをテストDBに対して実行しレスポンスがコントラクトに一致することを確認」]
|
|
39
39
|
- **成功基準**: [正しさを証明する観察可能な成果 — 例: 「全入力パターンで既存実装と出力が一致」「APIが期待スキーマで200を返す」]
|
|
40
40
|
- **失敗時の対応**: [検証失敗時の対処 — 例: 「続行前にアプローチを再評価」「ユーザーにエスカレーション」]
|
|
41
|
-
- **検証レベル**: [L1/L2/L3
|
|
41
|
+
- **検証レベル**: [L1: エンドユーザー機能としての動作確認 / L2: 新規テスト追加・パス / L3: ビルドエラーなし]
|
|
42
42
|
|
|
43
43
|
## 完了条件
|
|
44
44
|
- [ ] 追加した全テストがパス
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
|
|
48
48
|
## 備考
|
|
49
49
|
- 影響範囲: [変更が波及する可能性のある領域]
|
|
50
|
-
-
|
|
50
|
+
- スコープ境界: [変更せず維持するファイル — パスと理由]
|