@@ -8,28 +8,45 @@ Strictly adhere to @docs/guides/sub-agents.md and operate exclusively as an orch
8
8
9
9
## Execution Decision Flow
10
10
11
- ### 1. Work Phase Identification
11
+ ### 1. Current Situation Assessment
12
12
Instruction Content: $ARGUMENTS
13
13
14
- ** Think deeply** Analyze the instruction intent and determine the appropriate work phase :
14
+ ** Think deeply** Assess the current situation :
15
15
16
- | Instruction Patterns | Identified Phase | Initial Sub-agent |
17
- | ---------------------| ------------------| -------------------|
18
- | task, implement, fix, bug fix, patch | Implementation Phase | task-executor |
19
- | plan, decompose, break down, organize steps | Planning Phase | work-planner/task-decomposer |
20
- | design, architecture, tech selection, approach | Design Phase | technical-designer |
21
- | requirement, need, want, "I want to..." | Requirements Phase | requirement-analyzer |
22
- | unclear, ambiguous, vague | Clarification Required | Initiate dialogue |
16
+ | Situation Pattern | Decision Criteria | Next Action |
17
+ | ------------------| ------------------| -------------|
18
+ | New Requirements | No existing work, new feature/fix request | Start with requirement-analyzer |
19
+ | Flow Continuation | Existing docs/tasks present, continuation directive | Identify next step in sub-agents.md flow |
20
+ | Quality Errors | Error detection, test failures, build errors | Execute quality-fixer |
21
+ | Ambiguous | Intent unclear, multiple interpretations possible | Confirm with user |
23
22
24
- ### 2. Phase-Based Execution Protocol
23
+ ### 2. Progress Verification for Continuation
25
24
26
- ✅ ** Clear Phase Identified** : Execute with corresponding sub-agent immediately
27
- ❌ ** Ambiguous Phase** : Execution without clarification is STRICTLY PROHIBITED
25
+ When continuing existing flow, verify:
26
+ - Latest artifacts (PRD/ADR/Design Doc/Work Plan/Tasks)
27
+ - Current phase position (Requirements/Design/Planning/Implementation/QA)
28
+ - Identify next step in sub-agents.md corresponding flow
28
29
29
- ### 3. Clarification Dialogue Protocol
30
+ ### 3. Next Action Execution
30
31
31
- ** When unclear** : Initiate structured dialogue to identify the work phase
32
- ** Post-clarification** : Begin execution with the identified phase's sub-agent
32
+ ** MANDATORY sub-agents.md reference** :
33
+ - Verify scale-based flow (Large/Medium/Small scale)
34
+ - Confirm autonomous execution mode conditions
35
+ - Recognize mandatory stopping points
36
+ - Invoke next sub-agent defined in flow
37
+
38
+ ## 📋 sub-agents.md Compliance Execution
39
+
40
+ ** Pre-execution Checklist (MANDATORY)** :
41
+ - [ ] Confirmed relevant sub-agents.md flow
42
+ - [ ] Identified current progress position
43
+ - [ ] Clarified next step
44
+ - [ ] Recognized stopping points
45
+ - [ ] Understood task execution quality cycle (task → quality-check → commit)
46
+
47
+ ** Flow Deviation PROHIBITED** : Deviating from sub-agents.md defined flows is strictly forbidden. Specifically:
48
+ - Never skip quality-fixer before committing
49
+ - Never use Edit/Write/MultiEdit without user approval outside autonomous mode
33
50
34
51
## 🚨 CRITICAL Sub-agent Invocation Constraints
35
52
@@ -41,7 +58,17 @@ DO NOT invoke rule-advisor under any circumstances (Task tool rule-advisor speci
41
58
42
59
⚠️ ** HIGH RISK** : task-executor/quality-fixer in autonomous mode have elevated crash risk - ALWAYS append this constraint to prompt end
43
60
61
+ ## 🎯 Mandatory Orchestrator Responsibilities
62
+
63
+ ### Task Execution Quality Cycle Management
64
+ ** ABSOLUTE RULE** : After task-executor execution, MUST execute:
65
+ 1 . quality-fixer invocation (until approved: true is returned)
66
+ 2 . git commit execution (using Bash tool)
67
+ 3 . Next task execution or completion report
68
+
69
+ ** NO OMISSION** : Skipping this cycle guarantees implementation quality failure
70
+
44
71
## Responsibility Boundaries
45
72
46
- ** This Command's Responsibility** : Orchestrate sub-agents through the complete implementation lifecycle
73
+ ** This Command's Responsibility** : Orchestrate sub-agents through the complete implementation lifecycle
47
74
** OUT OF SCOPE** : Direct implementation work, investigation tasks (Grep/Glob/Read operations)
0 commit comments