create-ai-project 1.14.11 → 1.14.13

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.
@@ -1,5 +1,4 @@
1
1
  ---
2
- name: add-integration-tests
3
2
  description: Add integration/E2E tests to existing backend codebase using Design Doc
4
3
  ---
5
4
 
@@ -7,110 +6,123 @@ description: Add integration/E2E tests to existing backend codebase using Design
7
6
 
8
7
  **Scope**: Backend only (acceptance-test-generator supports backend only)
9
8
 
10
- **Role**: Orchestrator
9
+ ## Orchestrator Definition
10
+
11
+ **Core Identity**: "I am not a worker. I am an orchestrator."
12
+
13
+ **First Action**: Register Steps 0-8 to TodoWrite before any execution.
14
+
15
+ **Why Delegate**: Orchestrator's context is shared across all steps. Direct implementation consumes context needed for review and quality check phases. Task files create context boundaries. Subagents work in isolated context.
11
16
 
12
17
  **Execution Method**:
13
- - Skeleton generation -> delegate to acceptance-test-generator
14
- - Task file creation -> orchestrator creates directly
15
- - Test implementation -> delegate to task-executor
16
- - Test review -> delegate to integration-test-reviewer
17
- - Quality checks -> delegate to quality-fixer
18
+ - Skeleton generation delegate to acceptance-test-generator
19
+ - Task file creation orchestrator creates directly (minimal context usage)
20
+ - Test implementation delegate to task-executor
21
+ - Test review delegate to integration-test-reviewer
22
+ - Quality checks delegate to quality-fixer
18
23
 
19
24
  Design Doc path: $ARGUMENTS
20
25
 
21
- **TodoWrite**: Register steps and update as each completes.
22
-
23
26
  ## Prerequisites
24
27
  - Design Doc must exist (created manually or via reverse-engineer)
25
28
  - Existing implementation to test
26
29
 
27
30
  ## Execution Flow
28
31
 
29
- ### 1. Validate Design Doc (Orchestrator)
32
+ ### Step 0: Execute Skill
33
+
34
+ Execute Skill: documentation-criteria (for task file template in Step 3)
35
+
36
+ ### Step 1: Validate Design Doc
37
+
30
38
  ```bash
31
39
  # Verify Design Doc exists
32
40
  ls $ARGUMENTS || ls docs/design/*.md | grep -v template | tail -1
33
41
  ```
34
42
 
35
- ### 2. Skeleton Generation
43
+ ### Step 2: Skeleton Generation
36
44
 
37
- **Task tool invocation**:
38
- ```
39
- subagent_type: acceptance-test-generator
40
- prompt: |
41
- Generate test skeletons from Design Doc.
45
+ Invoke acceptance-test-generator using Task tool:
46
+ - `subagent_type`: "acceptance-test-generator"
47
+ - `description`: "Generate test skeletons"
48
+ - `prompt`: "Generate test skeletons from Design Doc at [path from Step 1]"
42
49
 
43
- Design Doc: [path from Step 1]
50
+ **Expected output**: `generatedFiles` containing integration and e2e paths
44
51
 
45
- Output:
46
- - Integration test skeletons (*.int.test.ts)
47
- - E2E test skeletons if applicable (*.e2e.test.ts)
48
- ```
52
+ ### Step 3: Create Task File [GATE]
49
53
 
50
- **Expected output**: `generatedFiles` containing integration and e2e paths
54
+ Create task file at: `docs/plans/tasks/integration-tests-YYYYMMDD.md`
51
55
 
52
- ### 3. Create Task File (Orchestrator)
56
+ **Template**:
57
+ ```markdown
58
+ ---
59
+ name: Implement integration tests for [feature name]
60
+ type: test-implementation
61
+ ---
53
62
 
54
- Create task file following task template (see documentation-criteria skill):
55
- - Path: `docs/plans/tasks/integration-tests-YYYYMMDD.md`
56
- - Content: Test implementation tasks based on generated skeletons
57
- - Include skeleton file paths from Step 2 output in Target Files section
63
+ ## Objective
58
64
 
59
- ### 4. Test Implementation
65
+ Implement test cases defined in skeleton files.
60
66
 
61
- **Task tool invocation**:
62
- ```
63
- subagent_type: task-executor
64
- prompt: |
65
- Implement tests following the task file.
67
+ ## Target Files
66
68
 
67
- Task file: docs/plans/tasks/integration-tests-YYYYMMDD.md
69
+ - Skeleton: [path from Step 2 generatedFiles]
70
+ - Design Doc: [path from Step 1]
68
71
 
69
- Requirements:
70
- - Follow TDD principles (Red-Green-Refactor)
71
- - Implement each skeleton test case
72
- - Run tests and verify they pass
73
- ```
72
+ ## Tasks
74
73
 
75
- **Expected output**: `status`, `testsAdded`
74
+ - [ ] Implement each test case in skeleton
75
+ - [ ] Verify all tests pass
76
+ - [ ] Ensure coverage meets requirements
76
77
 
77
- ### 5. Test Review
78
+ ## Acceptance Criteria
78
79
 
79
- **Task tool invocation**:
80
+ - All skeleton test cases implemented
81
+ - All tests passing
82
+ - No quality issues
80
83
  ```
81
- subagent_type: integration-test-reviewer
82
- prompt: |
83
- Review test quality.
84
84
 
85
- Test files: [paths from Step 2 generatedFiles]
86
- Skeleton files: [original skeleton paths]
87
- ```
85
+ **Output**: "Task file created at [path]. Ready for Step 4."
86
+
87
+ ### Step 4: Test Implementation
88
+
89
+ Invoke task-executor using Task tool:
90
+ - `subagent_type`: "task-executor"
91
+ - `description`: "Implement integration tests"
92
+ - `prompt`: "Task file: docs/plans/tasks/integration-tests-YYYYMMDD.md. Implement tests following the task file."
93
+
94
+ **Expected output**: `status`, `testsAdded`
95
+
96
+ ### Step 5: Test Review
97
+
98
+ Invoke integration-test-reviewer using Task tool:
99
+ - `subagent_type`: "integration-test-reviewer"
100
+ - `description`: "Review test quality"
101
+ - `prompt`: "Review test quality. Test files: [paths from Step 4 testsAdded]. Skeleton files: [paths from Step 2 generatedFiles]"
88
102
 
89
103
  **Expected output**: `status` (approved/needs_revision), `requiredFixes`
90
104
 
91
- **Flow control**:
92
- - `status: needs_revision` -> Return to Step 4 with `requiredFixes`
93
- - `status: approved` -> Proceed to Step 6
105
+ ### Step 6: Apply Review Fixes
94
106
 
95
- ### 6. Quality Check
107
+ Check Step 5 result:
108
+ - `status: approved` → Mark complete, proceed to Step 7
109
+ - `status: needs_revision` → Invoke task-executor with requiredFixes, then return to Step 5
96
110
 
97
- **Task tool invocation**:
98
- ```
99
- subagent_type: quality-fixer
100
- prompt: |
101
- Final quality assurance for test files.
111
+ Invoke task-executor using Task tool:
112
+ - `subagent_type`: "task-executor"
113
+ - `description`: "Fix review findings"
114
+ - `prompt`: "Fix the following issues in test files: [requiredFixes from Step 5]"
102
115
 
103
- Scope: Test files added in this workflow
116
+ ### Step 7: Quality Check
104
117
 
105
- Requirements:
106
- - Run all tests
107
- - Verify coverage meets requirements
108
- - Fix any quality issues
109
- ```
118
+ Invoke quality-fixer using Task tool:
119
+ - `subagent_type`: "quality-fixer"
120
+ - `description`: "Final quality assurance"
121
+ - `prompt`: "Final quality assurance for test files added in this workflow. Run all tests and verify coverage."
110
122
 
111
123
  **Expected output**: `approved` (true/false)
112
124
 
113
- ### 7. Commit (Orchestrator)
125
+ ### Step 8: Commit
114
126
 
115
127
  On `approved: true` from quality-fixer:
116
128
  - Commit test files with appropriate message using Bash
@@ -19,7 +19,7 @@ Work plan: $ARGUMENTS
19
19
 
20
20
  ### Task Generation Decision Flow
21
21
 
22
- **Think deeply** Analyze task file existence state and determine the appropriate action:
22
+ Analyze task file existence state and determine the appropriate action:
23
23
 
24
24
  | State | Criteria | Next Action |
25
25
  |-------|----------|-------------|
@@ -40,12 +40,11 @@ Generate tasks from the work plan? (y/n):
40
40
  ```
41
41
 
42
42
  ### 2. Task Decomposition (if approved)
43
- ```
44
- @task-decomposer Read work plan and decompose into atomic tasks:
45
- - Input: docs/plans/[plan-name].md
46
- - Output: Individual task files in docs/plans/tasks/
47
- - Granularity: 1 task = 1 commit = independently executable
48
- ```
43
+
44
+ Invoke task-decomposer using Task tool:
45
+ - `subagent_type`: "task-decomposer"
46
+ - `description`: "Decompose work plan into tasks"
47
+ - `prompt`: "Read work plan and decompose into atomic tasks. Input: docs/plans/[plan-name].md. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable"
49
48
 
50
49
  ### 3. Verify Generation
51
50
  ```bash
@@ -29,7 +29,7 @@ Requirements → requirement-analyzer → [Stop: Scale determination]
29
29
 
30
30
  Requirements: $ARGUMENTS
31
31
 
32
- **Think harder** Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
32
+ Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
33
33
  - What problems do you want to solve?
34
34
  - Expected outcomes and success criteria
35
35
  - Relationship with existing systems
@@ -37,11 +37,10 @@ If the following are unclear, **ask with AskUserQuestion** before proceeding:
37
37
 
38
38
  ### 0.3 Problem Essence Understanding
39
39
 
40
- **Invoke rule-advisor via Task tool**:
41
- ```
42
- subagent_type: rule-advisor
43
- prompt: Identify the essence and required rules for this problem: [Problem reported by user]
44
- ```
40
+ Invoke rule-advisor using Task tool:
41
+ - `subagent_type`: "rule-advisor"
42
+ - `description`: "Identify problem essence"
43
+ - `prompt`: "Identify the essence and required rules for this problem: [Problem reported by user]"
45
44
 
46
45
  Confirm from rule-advisor output:
47
46
  - `taskAnalysis.mainFocus`: Primary focus of the problem
@@ -79,13 +78,10 @@ Register the following in TodoWrite and execute:
79
78
 
80
79
  ### Step 1: Investigation (investigator)
81
80
 
82
- **Task tool invocation**:
83
- ```
84
- subagent_type: investigator
85
- prompt: Comprehensively collect information related to the following phenomenon.
86
-
87
- Phenomenon: [Problem reported by user]
88
- ```
81
+ Invoke investigator using Task tool:
82
+ - `subagent_type`: "investigator"
83
+ - `description`: "Collect problem information"
84
+ - `prompt`: "Comprehensively collect information related to the following phenomenon. Phenomenon: [Problem reported by user]"
89
85
 
90
86
  **Expected output**: Evidence matrix, comparison analysis results, causal tracking results, list of unexplored areas, investigation limitations
91
87
 
@@ -115,13 +111,10 @@ Proceed to verifier once quality is satisfied.
115
111
 
116
112
  ### Step 3: Verification (verifier)
117
113
 
118
- **Task tool invocation**:
119
- ```
120
- subagent_type: verifier
121
- prompt: Verify the following investigation results.
122
-
123
- Investigation results: [Investigation JSON output]
124
- ```
114
+ Invoke verifier using Task tool:
115
+ - `subagent_type`: "verifier"
116
+ - `description`: "Verify investigation results"
117
+ - `prompt`: "Verify the following investigation results. Investigation results: [Investigation JSON output]"
125
118
 
126
119
  **Expected output**: Alternative hypotheses (at least 3), Devil's Advocate evaluation, final conclusion, confidence
127
120
 
@@ -132,15 +125,10 @@ Investigation results: [Investigation JSON output]
132
125
 
133
126
  ### Step 4: Solution Derivation (solver)
134
127
 
135
- **Task tool invocation**:
136
- ```
137
- subagent_type: solver
138
- prompt: Derive solutions based on the following verified conclusion.
139
-
140
- Causes: [verifier's conclusion.causes]
141
- Causes relationship: [causesRelationship: independent/dependent/exclusive]
142
- Confidence: [high/medium/low]
143
- ```
128
+ Invoke solver using Task tool:
129
+ - `subagent_type`: "solver"
130
+ - `description`: "Derive solutions"
131
+ - `prompt`: "Derive solutions based on the following verified conclusion. Causes: [verifier's conclusion.causes]. Causes relationship: [causesRelationship: independent/dependent/exclusive]. Confidence: [high/medium/low]"
144
132
 
145
133
  **Expected output**: Multiple solutions (at least 3), tradeoff analysis, recommendation and implementation steps, residual risks
146
134
 
@@ -31,7 +31,7 @@ Work plan: $ARGUMENTS
31
31
 
32
32
  ### Task Generation Decision Flow
33
33
 
34
- **Think deeply**: Analyze task file existence state and determine the appropriate action:
34
+ Analyze task file existence state and determine the appropriate action:
35
35
 
36
36
  | State | Criteria | Next Action |
37
37
  |-------|----------|-------------|
@@ -52,12 +52,11 @@ Generate tasks from the work plan? (y/n):
52
52
  ```
53
53
 
54
54
  ### 2. Task Decomposition (if approved)
55
- ```
56
- @task-decomposer Read work plan and decompose into atomic tasks:
57
- - Input: docs/plans/[plan-name].md
58
- - Output: Individual task files in docs/plans/tasks/
59
- - Granularity: 1 task = 1 commit = independently executable
60
- ```
55
+
56
+ Invoke task-decomposer using Task tool:
57
+ - `subagent_type`: "task-decomposer"
58
+ - `description`: "Decompose work plan into tasks"
59
+ - `prompt`: "Read work plan and decompose into atomic tasks. Input: docs/plans/[plan-name].md. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable"
61
60
 
62
61
  ### 3. Verify Generation
63
62
  ```bash
@@ -30,7 +30,7 @@ Requirements: $ARGUMENTS
30
30
  ## Execution Flow
31
31
 
32
32
  ### 1. Requirement Analysis Phase
33
- **Think harder**: Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
33
+ Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
34
34
  - What problems do you want to solve?
35
35
  - Expected outcomes and success criteria
36
36
  - Relationship with existing systems
@@ -38,7 +38,7 @@ Invoke **work-planner** using Task tool:
38
38
  - `prompt: "Create work plan from Design Doc at [path]"`
39
39
  - Interact with user to complete plan and obtain approval for plan content
40
40
 
41
- **Think deeply** Create a work plan from the selected design document, clarifying specific implementation steps and risks.
41
+ Create a work plan from the selected design document, clarifying specific implementation steps and risks.
42
42
 
43
43
  **Scope**: Up to work plan creation and obtaining approval for plan content.
44
44
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- name: front-reverse-design
3
2
  description: Generate frontend Design Docs from existing codebase using existing PRD
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- name: front-review
3
2
  description: Design Doc compliance validation with optional auto-fixes
4
3
  ---
5
4
 
@@ -46,7 +46,7 @@ Follow subagents-orchestration-guide skill strictly and create work plan with th
46
46
  - Utilize deliverables from previous process according to subagents-orchestration-guide skill coordination specification
47
47
  - Interact with user to complete plan and obtain approval for plan content
48
48
 
49
- **Think deeply** Create a work plan from the selected design document, clarifying specific implementation steps and risks.
49
+ Create a work plan from the selected design document, clarifying specific implementation steps and risks.
50
50
 
51
51
  **Scope**: Up to work plan creation and obtaining approval for plan content.
52
52
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- name: reverse-engineer
3
2
  description: Generate PRD and Design Docs from existing codebase through discovery, generation, verification, and review workflow
4
3
  ---
5
4
 
@@ -7,7 +7,6 @@ description: Design Doc compliance validation with optional auto-fixes
7
7
  ## Execution Method
8
8
 
9
9
  - Compliance validation → performed by code-reviewer
10
- - Rule analysis → performed by rule-advisor
11
10
  - Fix implementation → performed by task-executor
12
11
  - Quality checks → performed by quality-fixer
13
12
  - Re-validation → performed by code-reviewer
@@ -16,7 +15,7 @@ Orchestrator invokes sub-agents and passes structured JSON between them.
16
15
 
17
16
  Design Doc (uses most recent if omitted): $ARGUMENTS
18
17
 
19
- **Think deeply** Understand the essence of compliance validation and execute:
18
+ Understand the essence of compliance validation and execute the following steps:
20
19
 
21
20
  ## Execution Flow
22
21
 
@@ -55,14 +54,13 @@ Execute fixes? (y/n):
55
54
 
56
55
  If user selects `y`:
57
56
 
58
- ## Pre-fix Metacognition
59
- **Required**: `rule-advisor → TodoWrite → task-executor → quality-fixer`
57
+ #### Fix Execution Steps
58
+ **Required**: `TodoWrite → task-executor → quality-fixer`
60
59
 
61
- 1. **Execute rule-advisor**: Understand fix essence (symptomatic treatment vs root solution)
62
- 2. **Update TodoWrite**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Create task file following task template (see documentation-criteria skill) -> `docs/plans/tasks/review-fixes-YYYYMMDD.md`
63
- 3. **Execute task-executor**: Staged auto-fixes (stops at 5 files)
64
- 4. **Execute quality-fixer**: Confirm quality gate passage
65
- 5. **Re-validate**: Measure improvement with code-reviewer
60
+ 1. **Update TodoWrite**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Create task file following task template (see documentation-criteria skill) -> `docs/plans/tasks/review-fixes-YYYYMMDD.md`
61
+ 2. **Execute task-executor**: Staged auto-fixes (stops at 5 files)
62
+ 3. **Execute quality-fixer**: Confirm quality gate passage
63
+ 4. **Re-validate**: Measure improvement with code-reviewer
66
64
 
67
65
  ### 4. Final Report
68
66
  ```
@@ -85,4 +83,4 @@ Remaining issues:
85
83
  - Architecture-level modifications
86
84
  - Design Doc deficiencies
87
85
 
88
- **Scope**: Design Doc compliance validation and auto-fixes.
86
+ **Scope**: Design Doc compliance validation and auto-fixes.
@@ -0,0 +1,178 @@
1
+ ---
2
+ description: Update existing design documents (Design Doc / PRD / ADR) with review
3
+ ---
4
+
5
+ **Command Context**: This command is dedicated to updating existing design documents.
6
+
7
+ ## Orchestrator Definition
8
+
9
+ **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
10
+
11
+ **First Action**: Register Steps 1-6 to TodoWrite before any execution.
12
+
13
+ **Execution Protocol**:
14
+ 1. **Delegate all work** to sub-agents (NEVER edit documents yourself)
15
+ 2. **Execute update flow**:
16
+ - Identify target → Clarify changes → Update document → Review → Consistency check
17
+ - **Stop at every `[Stop: ...]` marker** → Wait for user approval before proceeding
18
+ 3. **Scope**: Complete when updated document receives approval
19
+
20
+ **CRITICAL**: NEVER skip document-reviewer or stopping points.
21
+
22
+ ## Workflow Overview
23
+
24
+ ```
25
+ Target document → [Stop: Confirm changes]
26
+
27
+ technical-designer / prd-creator (update mode)
28
+
29
+ document-reviewer → [Stop: Review approval]
30
+ ↓ (Design Doc only)
31
+ design-sync → [Stop: Final approval]
32
+ ```
33
+
34
+ ## Scope Boundaries
35
+
36
+ **Included in this command**:
37
+ - Existing document identification and selection
38
+ - Change content clarification with user
39
+ - Document update with appropriate agent (update mode)
40
+ - Document review with document-reviewer
41
+ - Consistency verification with design-sync (Design Doc only)
42
+
43
+ **NOT included**:
44
+ - New requirement analysis (use /design for new documents)
45
+ - Work planning or implementation (use /plan or /task after this command)
46
+
47
+ **Responsibility Boundary**: This command completes with updated document approval.
48
+
49
+ Target document: $ARGUMENTS
50
+
51
+ ## Execution Flow
52
+
53
+ ### Step 1: Target Document Identification
54
+
55
+ ```bash
56
+ # Check existing documents
57
+ ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
58
+ ```
59
+
60
+ **Decision flow**:
61
+
62
+ | Situation | Action |
63
+ |-----------|--------|
64
+ | $ARGUMENTS specifies a path | Use specified document |
65
+ | $ARGUMENTS describes a topic | Search documents matching the topic |
66
+ | Multiple candidates found | Present options with AskUserQuestion |
67
+ | No documents found | Report and end (suggest /design instead) |
68
+
69
+ ### Step 2: Document Type Determination
70
+
71
+ Determine type from document path:
72
+
73
+ | Path Pattern | Type | Update Agent | Notes |
74
+ |-------------|------|--------------|-------|
75
+ | `docs/design/*.md` | Design Doc | technical-designer | - |
76
+ | `docs/prd/*.md` | PRD | prd-creator | - |
77
+ | `docs/adr/*.md` | ADR | technical-designer | Minor changes: update existing file; Major changes: create new ADR file |
78
+
79
+ **ADR Update Guidance**:
80
+ - **Minor changes** (clarification, typo fix, small scope adjustment): Update the existing ADR file
81
+ - **Major changes** (decision reversal, significant scope change): Create a new ADR that supersedes the original
82
+
83
+ ### Step 3: Change Content Clarification [Stop]
84
+
85
+ Use AskUserQuestion to clarify what changes are needed:
86
+ - What sections need updating
87
+ - Reason for the change (bug fix findings, spec change, review feedback, etc.)
88
+ - Expected outcome after the update
89
+
90
+ Confirm understanding of changes with user before proceeding.
91
+
92
+ ### Step 4: Document Update
93
+
94
+ Invoke the update agent determined in Step 2:
95
+ ```
96
+ subagent_type: [Update Agent from Step 2]
97
+ description: "Update [Type from Step 2]"
98
+ prompt: |
99
+ Operation Mode: update
100
+ Existing Document: [path from Step 1]
101
+
102
+ ## Changes Required
103
+ [Changes clarified in Step 3]
104
+
105
+ Update the document to reflect the specified changes.
106
+ Add change history entry.
107
+ ```
108
+
109
+ ### Step 5: Document Review [Stop]
110
+
111
+ Invoke document-reviewer:
112
+ ```
113
+ subagent_type: document-reviewer
114
+ description: "Review updated document"
115
+ prompt: |
116
+ Review the following updated document.
117
+
118
+ doc_type: [Design Doc / PRD / ADR]
119
+ target: [path from Step 1]
120
+ mode: standard
121
+
122
+ Focus on:
123
+ - Consistency of updated sections with rest of document
124
+ - No contradictions introduced by changes
125
+ - Completeness of change history
126
+ ```
127
+
128
+ **On review result**:
129
+ - Approved → Proceed to Step 6
130
+ - Needs revision → Return to Step 4 with reviewer feedback (max 2 iterations)
131
+ - **After 2 rejections** → Flag for human review, present accumulated feedback to user and end
132
+
133
+ Present review result to user for approval.
134
+
135
+ ### Step 6: Consistency Verification (Design Doc only) [Stop]
136
+
137
+ **Skip condition**: Document type is PRD or ADR → Proceed to completion.
138
+
139
+ For Design Doc, invoke design-sync:
140
+ ```
141
+ subagent_type: design-sync
142
+ description: "Verify consistency"
143
+ prompt: |
144
+ Verify consistency of the updated Design Doc with other design documents.
145
+
146
+ Updated document: [path from Step 1]
147
+ ```
148
+
149
+ **On consistency result**:
150
+ - No conflicts → Present result to user for final approval
151
+ - Conflicts detected → Present conflicts to user with AskUserQuestion:
152
+ - A: Return to Step 4 to resolve conflicts in this document
153
+ - B: End command and address conflicts separately
154
+
155
+ ## Error Handling
156
+
157
+ | Error | Action |
158
+ |-------|--------|
159
+ | Target document not found | Report and end (suggest /design instead) |
160
+ | Sub-agent update fails | Log failure, present error to user, retry once |
161
+ | Review rejects after 2 revisions | Stop loop, flag for human intervention |
162
+ | design-sync detects conflicts | Present to user for resolution decision |
163
+
164
+ ## Completion Criteria
165
+
166
+ - [ ] Identified target document
167
+ - [ ] Clarified change content with user
168
+ - [ ] Updated document with appropriate agent (update mode)
169
+ - [ ] Executed document-reviewer and addressed feedback
170
+ - [ ] Executed design-sync for consistency verification (Design Doc only)
171
+ - [ ] Obtained user approval for updated document
172
+
173
+ ## Output Example
174
+ Document update completed.
175
+ - Updated document: docs/design/[document-name].md
176
+ - Approval status: User approved
177
+
178
+ **Important**: This command ends with document approval. Does not propose transition to next phase.