claude-code-workflow 7.2.3 → 7.2.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/team-worker.md +2 -2
- package/.claude/skills/team-arch-opt/SKILL.md +1 -1
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-arch-opt/specs/team-config.json +1 -1
- package/.claude/skills/team-brainstorm/SKILL.md +2 -2
- package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-designer/SKILL.md +2 -2
- package/.claude/skills/team-designer/phases/03-content-generation.md +2 -2
- package/.claude/skills/team-edict/SKILL.md +1 -1
- package/.claude/skills/team-edict/role-specs/xingbu.md +1 -1
- package/.claude/skills/team-edict/roles/coordinator/role.md +4 -4
- package/.claude/skills/team-frontend/SKILL.md +1 -1
- package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-frontend-debug/SKILL.md +1 -1
- package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +11 -11
- package/.claude/skills/team-issue/SKILL.md +2 -2
- package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-iterdev/SKILL.md +1 -1
- package/.claude/skills/team-iterdev/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-lifecycle-v4/SKILL.md +2 -2
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +2 -2
- package/.claude/skills/team-perf-opt/SKILL.md +1 -1
- package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-perf-opt/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-perf-opt/specs/team-config.json +1 -1
- package/.claude/skills/team-planex/SKILL.md +1 -1
- package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-quality-assurance/SKILL.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +3 -3
- package/.claude/skills/team-review/SKILL.md +1 -1
- package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +4 -4
- package/.claude/skills/team-roadmap-dev/SKILL.md +1 -1
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +4 -4
- package/.claude/skills/team-roadmap-dev/specs/pipelines.md +3 -3
- package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
- package/.claude/skills/team-tech-debt/SKILL.md +1 -1
- package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-testing/SKILL.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +7 -7
- package/.claude/skills/team-uidesign/SKILL.md +1 -1
- package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-ultra-analyze/SKILL.md +1 -1
- package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +5 -5
- package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-ux-improve/SKILL.md +1 -1
- package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-ux-improve/roles/coordinator/role.md +2 -2
- package/.claude/skills/team-ux-improve/specs/pipelines.md +1 -1
- package/.claude/skills/team-ux-improve/specs/team-config.json +1 -1
- package/.codex/skills/team-arch-opt/SKILL.md +38 -0
- package/.codex/skills/team-arch-opt/instructions/agent-instruction.md +114 -114
- package/.codex/skills/team-brainstorm/SKILL.md +725 -687
- package/.codex/skills/team-coordinate/SKILL.md +38 -0
- package/.codex/skills/team-designer/SKILL.md +691 -653
- package/.codex/skills/team-designer/schemas/tasks-schema.md +180 -180
- package/.codex/skills/team-edict/SKILL.md +781 -742
- package/.codex/skills/team-edict/agents/aggregator.md +246 -246
- package/.codex/skills/team-edict/agents/qa-verifier.md +274 -274
- package/.codex/skills/team-edict/agents/shangshu-dispatcher.md +247 -247
- package/.codex/skills/team-edict/agents/zhongshu-planner.md +198 -198
- package/.codex/skills/team-edict/instructions/agent-instruction.md +177 -177
- package/.codex/skills/team-executor/SKILL.md +38 -0
- package/.codex/skills/team-frontend/SKILL.md +38 -0
- package/.codex/skills/team-frontend-debug/SKILL.md +38 -0
- package/.codex/skills/team-issue/SKILL.md +740 -702
- package/.codex/skills/team-iterdev/SKILL.md +826 -788
- package/.codex/skills/team-lifecycle/SKILL.md +38 -0
- package/.codex/skills/team-lifecycle/agents/analyst.md +6 -6
- package/.codex/skills/team-lifecycle/agents/discuss-agent.md +1 -1
- package/.codex/skills/team-lifecycle/agents/explore-agent.md +3 -3
- package/.codex/skills/team-lifecycle/agents/writer.md +3 -3
- package/.codex/skills/team-lifecycle/phases/01-requirement-clarification.md +1 -1
- package/.codex/skills/team-lifecycle/phases/02-team-initialization.md +1 -1
- package/.codex/skills/team-lifecycle/phases/03-task-chain-creation.md +1 -1
- package/.codex/skills/team-lifecycle/phases/04-pipeline-coordination.md +1 -1
- package/.codex/skills/team-lifecycle/phases/05-completion-report.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +775 -737
- package/.codex/skills/team-perf-opt/SKILL.md +38 -0
- package/.codex/skills/team-perf-opt/instructions/agent-instruction.md +122 -122
- package/.codex/skills/team-planex/SKILL.md +38 -0
- package/.codex/skills/team-planex-v2/SKILL.md +39 -1
- package/.codex/skills/team-quality-assurance/SKILL.md +38 -0
- package/.codex/skills/team-review/SKILL.md +38 -0
- package/.codex/skills/team-roadmap-dev/SKILL.md +38 -0
- package/.codex/skills/team-tech-debt/SKILL.md +38 -0
- package/.codex/skills/team-testing/SKILL.md +38 -0
- package/.codex/skills/team-uidesign/SKILL.md +38 -0
- package/.codex/skills/team-ultra-analyze/SKILL.md +787 -749
- package/.codex/skills/team-ux-improve/SKILL.md +38 -0
- package/ccw/dist/tools/smart-search.d.ts +23 -0
- package/ccw/dist/tools/smart-search.d.ts.map +1 -1
- package/ccw/dist/tools/smart-search.js +41 -10
- package/ccw/dist/tools/smart-search.js.map +1 -1
- package/codex-lens/src/codexlens/config.py +32 -0
- package/codex-lens/src/codexlens/storage/index_tree.py +101 -33
- package/package.json +1 -1
|
@@ -657,3 +657,41 @@ All agents (csv-wave and interactive) share a single `discoveries.ndjson` file f
|
|
|
657
657
|
8. **Max 3 Fix Cycles**: Review-fix cycle capped at 3 iterations; escalate to user after
|
|
658
658
|
9. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
659
659
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
---
|
|
663
|
+
|
|
664
|
+
## Coordinator Role Constraints (Main Agent)
|
|
665
|
+
|
|
666
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
667
|
+
|
|
668
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
669
|
+
- Spawns agents with task assignments
|
|
670
|
+
- Waits for agent callbacks
|
|
671
|
+
- Merges results and coordinates workflow
|
|
672
|
+
- Manages workflow transitions between phases
|
|
673
|
+
|
|
674
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
675
|
+
- Wait patiently for `wait()` calls to complete
|
|
676
|
+
- NOT skip workflow steps due to perceived delays
|
|
677
|
+
- NOT assume agents have failed just because they're taking time
|
|
678
|
+
- Trust the timeout mechanisms defined in the skill
|
|
679
|
+
|
|
680
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
681
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
682
|
+
- NOT skip the agent or move to next phase prematurely
|
|
683
|
+
- Give agents opportunity to respond before escalating
|
|
684
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
685
|
+
|
|
686
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
687
|
+
- Skip phases or stages defined in the workflow
|
|
688
|
+
- Bypass required approval or review steps
|
|
689
|
+
- Execute dependent tasks before prerequisites complete
|
|
690
|
+
- Assume task completion without explicit agent callback
|
|
691
|
+
- Make up or fabricate agent results
|
|
692
|
+
|
|
693
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
694
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
695
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
696
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
697
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
## TASK ASSIGNMENT
|
|
2
|
-
|
|
3
|
-
### MANDATORY FIRST STEPS
|
|
4
|
-
1. Read shared discoveries: {session_folder}/discoveries.ndjson (if exists, skip if not)
|
|
5
|
-
2. Read project context: .workflow/project-tech.json (if exists)
|
|
6
|
-
3. Read task schema:
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Your Task
|
|
11
|
-
|
|
12
|
-
**Task ID**: {id}
|
|
13
|
-
**Title**: {title}
|
|
14
|
-
**Description**: {description}
|
|
15
|
-
**Role**: {role}
|
|
16
|
-
**Bottleneck Type**: {bottleneck_type}
|
|
17
|
-
**Priority**: {priority}
|
|
18
|
-
**Target Files**: {target_files}
|
|
19
|
-
|
|
20
|
-
### Previous Tasks' Findings (Context)
|
|
21
|
-
{prev_context}
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Execution Protocol
|
|
26
|
-
|
|
27
|
-
1. **Read discoveries**: Load {session_folder}/discoveries.ndjson for shared exploration findings
|
|
28
|
-
2. **Use context**: Apply previous tasks' findings from prev_context above
|
|
29
|
-
3. **Execute by role**:
|
|
30
|
-
|
|
31
|
-
**If role = profiler**:
|
|
32
|
-
- Detect project type by scanning for framework markers:
|
|
33
|
-
- Frontend (React/Vue/Angular): render time, bundle size, FCP/LCP/CLS
|
|
34
|
-
- Backend Node (Express/Fastify/NestJS): CPU hotspots, memory, DB queries
|
|
35
|
-
- Native/JVM Backend (Cargo/Go/Java): CPU, memory, GC tuning
|
|
36
|
-
- CLI Tool: startup time, throughput, memory peak
|
|
37
|
-
- Trace hot code paths and CPU hotspots within target scope
|
|
38
|
-
- Identify memory allocation patterns and potential leaks
|
|
39
|
-
- Measure I/O and network latency where applicable
|
|
40
|
-
- Collect quantified baseline metrics (timing, memory, throughput)
|
|
41
|
-
- Rank top 3-5 bottlenecks by severity (Critical/High/Medium)
|
|
42
|
-
- Record evidence: file paths, line numbers, measured values
|
|
43
|
-
- Write `{session_folder}/artifacts/baseline-metrics.json` (metrics)
|
|
44
|
-
- Write `{session_folder}/artifacts/bottleneck-report.md` (ranked bottlenecks)
|
|
45
|
-
|
|
46
|
-
**If role = strategist**:
|
|
47
|
-
- Read bottleneck report and baseline from {session_folder}/artifacts/
|
|
48
|
-
- For each bottleneck, select optimization strategy by type:
|
|
49
|
-
- CPU: algorithm optimization, memoization, caching, worker threads
|
|
50
|
-
- MEMORY: pool reuse, lazy init, WeakRef, scope cleanup
|
|
51
|
-
- IO: batching, async pipelines, streaming, connection pooling
|
|
52
|
-
- NETWORK: request coalescing, compression, CDN, prefetching
|
|
53
|
-
- RENDERING: virtualization, memoization, CSS containment, code splitting
|
|
54
|
-
- DATABASE: index optimization, query rewriting, caching layer
|
|
55
|
-
- Prioritize by impact/effort: P0 (high impact+low effort) to P3
|
|
56
|
-
- Assign unique OPT-IDs (OPT-001, 002, ...) with non-overlapping file targets
|
|
57
|
-
- Define measurable success criteria (target metric value or improvement %)
|
|
58
|
-
- Write `{session_folder}/artifacts/optimization-plan.md`
|
|
59
|
-
|
|
60
|
-
**If role = optimizer**:
|
|
61
|
-
- Read optimization plan from {session_folder}/artifacts/optimization-plan.md
|
|
62
|
-
- Apply optimizations in priority order (P0 first)
|
|
63
|
-
- Preserve existing behavior -- optimization must not break functionality
|
|
64
|
-
- Make minimal, focused changes per optimization
|
|
65
|
-
- Add comments only where optimization logic is non-obvious
|
|
66
|
-
- Preserve existing code style and conventions
|
|
67
|
-
|
|
68
|
-
**If role = benchmarker**:
|
|
69
|
-
- Read baseline from {session_folder}/artifacts/baseline-metrics.json
|
|
70
|
-
- Read plan from {session_folder}/artifacts/optimization-plan.md
|
|
71
|
-
- Run benchmarks matching detected project type:
|
|
72
|
-
- Frontend: bundle size, render performance
|
|
73
|
-
- Backend: endpoint response times, memory under load, DB query times
|
|
74
|
-
- CLI: execution time, memory peak, throughput
|
|
75
|
-
- Run test suite to verify no regressions
|
|
76
|
-
- Collect post-optimization metrics matching baseline format
|
|
77
|
-
- Calculate improvement percentages per metric
|
|
78
|
-
- Compare against plan success criteria
|
|
79
|
-
- Write `{session_folder}/artifacts/benchmark-results.json`
|
|
80
|
-
- Set verdict: PASS (meets criteria) / WARN (partial) / FAIL (regression or criteria not met)
|
|
81
|
-
|
|
82
|
-
**If role = reviewer**:
|
|
83
|
-
- Read plan from {session_folder}/artifacts/optimization-plan.md
|
|
84
|
-
- Review changed files across 5 dimensions:
|
|
85
|
-
- Correctness: logic errors, race conditions, null safety
|
|
86
|
-
- Side effects: unintended behavior changes, API contract breaks
|
|
87
|
-
- Maintainability: code clarity, complexity increase, naming
|
|
88
|
-
- Regression risk: impact on unrelated code paths
|
|
89
|
-
- Best practices: idiomatic patterns, no optimization anti-patterns
|
|
90
|
-
- Write `{session_folder}/artifacts/review-report.md`
|
|
91
|
-
- Set verdict: APPROVE / REVISE / REJECT
|
|
92
|
-
|
|
93
|
-
4. **Share discoveries**: Append exploration findings to shared board:
|
|
94
|
-
```bash
|
|
95
|
-
echo '{"ts":"<ISO8601>","worker":"{id}","type":"<type>","data":{...}}' >> {session_folder}/discoveries.ndjson
|
|
96
|
-
```
|
|
97
|
-
5. **Report result**: Return JSON via report_agent_job_result
|
|
98
|
-
|
|
99
|
-
### Discovery Types to Share
|
|
100
|
-
- `bottleneck_found`: `{type, location, severity, description}` -- Bottleneck identified
|
|
101
|
-
- `hotspot_found`: `{file, function, cpu_pct, description}` -- CPU hotspot
|
|
102
|
-
- `memory_issue`: `{file, type, size_mb, description}` -- Memory problem
|
|
103
|
-
- `io_issue`: `{operation, latency_ms, description}` -- I/O issue
|
|
104
|
-
- `db_issue`: `{query, latency_ms, description}` -- Database issue
|
|
105
|
-
- `file_modified`: `{file, change, lines_added}` -- File change recorded
|
|
106
|
-
- `metric_measured`: `{metric, value, unit, context}` -- Metric measured
|
|
107
|
-
- `pattern_found`: `{pattern_name, location, description}` -- Pattern identified
|
|
108
|
-
- `artifact_produced`: `{name, path, producer, type}` -- Deliverable created
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
## Output (report_agent_job_result)
|
|
113
|
-
|
|
114
|
-
Return JSON:
|
|
115
|
-
{
|
|
116
|
-
"id": "{id}",
|
|
117
|
-
"status": "completed" | "failed",
|
|
118
|
-
"findings": "Key discoveries and implementation notes (max 500 chars)",
|
|
119
|
-
"verdict": "PASS|WARN|FAIL|APPROVE|REVISE|REJECT or empty",
|
|
120
|
-
"artifacts_produced": "semicolon-separated artifact paths",
|
|
121
|
-
"error": ""
|
|
122
|
-
}
|
|
1
|
+
## TASK ASSIGNMENT
|
|
2
|
+
|
|
3
|
+
### MANDATORY FIRST STEPS
|
|
4
|
+
1. Read shared discoveries: {session_folder}/discoveries.ndjson (if exists, skip if not)
|
|
5
|
+
2. Read project context: .workflow/project-tech.json (if exists)
|
|
6
|
+
3. Read task schema: ~ or <project>/.codex/skills/team-perf-opt/schemas/tasks-schema.md
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Your Task
|
|
11
|
+
|
|
12
|
+
**Task ID**: {id}
|
|
13
|
+
**Title**: {title}
|
|
14
|
+
**Description**: {description}
|
|
15
|
+
**Role**: {role}
|
|
16
|
+
**Bottleneck Type**: {bottleneck_type}
|
|
17
|
+
**Priority**: {priority}
|
|
18
|
+
**Target Files**: {target_files}
|
|
19
|
+
|
|
20
|
+
### Previous Tasks' Findings (Context)
|
|
21
|
+
{prev_context}
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Execution Protocol
|
|
26
|
+
|
|
27
|
+
1. **Read discoveries**: Load {session_folder}/discoveries.ndjson for shared exploration findings
|
|
28
|
+
2. **Use context**: Apply previous tasks' findings from prev_context above
|
|
29
|
+
3. **Execute by role**:
|
|
30
|
+
|
|
31
|
+
**If role = profiler**:
|
|
32
|
+
- Detect project type by scanning for framework markers:
|
|
33
|
+
- Frontend (React/Vue/Angular): render time, bundle size, FCP/LCP/CLS
|
|
34
|
+
- Backend Node (Express/Fastify/NestJS): CPU hotspots, memory, DB queries
|
|
35
|
+
- Native/JVM Backend (Cargo/Go/Java): CPU, memory, GC tuning
|
|
36
|
+
- CLI Tool: startup time, throughput, memory peak
|
|
37
|
+
- Trace hot code paths and CPU hotspots within target scope
|
|
38
|
+
- Identify memory allocation patterns and potential leaks
|
|
39
|
+
- Measure I/O and network latency where applicable
|
|
40
|
+
- Collect quantified baseline metrics (timing, memory, throughput)
|
|
41
|
+
- Rank top 3-5 bottlenecks by severity (Critical/High/Medium)
|
|
42
|
+
- Record evidence: file paths, line numbers, measured values
|
|
43
|
+
- Write `{session_folder}/artifacts/baseline-metrics.json` (metrics)
|
|
44
|
+
- Write `{session_folder}/artifacts/bottleneck-report.md` (ranked bottlenecks)
|
|
45
|
+
|
|
46
|
+
**If role = strategist**:
|
|
47
|
+
- Read bottleneck report and baseline from {session_folder}/artifacts/
|
|
48
|
+
- For each bottleneck, select optimization strategy by type:
|
|
49
|
+
- CPU: algorithm optimization, memoization, caching, worker threads
|
|
50
|
+
- MEMORY: pool reuse, lazy init, WeakRef, scope cleanup
|
|
51
|
+
- IO: batching, async pipelines, streaming, connection pooling
|
|
52
|
+
- NETWORK: request coalescing, compression, CDN, prefetching
|
|
53
|
+
- RENDERING: virtualization, memoization, CSS containment, code splitting
|
|
54
|
+
- DATABASE: index optimization, query rewriting, caching layer
|
|
55
|
+
- Prioritize by impact/effort: P0 (high impact+low effort) to P3
|
|
56
|
+
- Assign unique OPT-IDs (OPT-001, 002, ...) with non-overlapping file targets
|
|
57
|
+
- Define measurable success criteria (target metric value or improvement %)
|
|
58
|
+
- Write `{session_folder}/artifacts/optimization-plan.md`
|
|
59
|
+
|
|
60
|
+
**If role = optimizer**:
|
|
61
|
+
- Read optimization plan from {session_folder}/artifacts/optimization-plan.md
|
|
62
|
+
- Apply optimizations in priority order (P0 first)
|
|
63
|
+
- Preserve existing behavior -- optimization must not break functionality
|
|
64
|
+
- Make minimal, focused changes per optimization
|
|
65
|
+
- Add comments only where optimization logic is non-obvious
|
|
66
|
+
- Preserve existing code style and conventions
|
|
67
|
+
|
|
68
|
+
**If role = benchmarker**:
|
|
69
|
+
- Read baseline from {session_folder}/artifacts/baseline-metrics.json
|
|
70
|
+
- Read plan from {session_folder}/artifacts/optimization-plan.md
|
|
71
|
+
- Run benchmarks matching detected project type:
|
|
72
|
+
- Frontend: bundle size, render performance
|
|
73
|
+
- Backend: endpoint response times, memory under load, DB query times
|
|
74
|
+
- CLI: execution time, memory peak, throughput
|
|
75
|
+
- Run test suite to verify no regressions
|
|
76
|
+
- Collect post-optimization metrics matching baseline format
|
|
77
|
+
- Calculate improvement percentages per metric
|
|
78
|
+
- Compare against plan success criteria
|
|
79
|
+
- Write `{session_folder}/artifacts/benchmark-results.json`
|
|
80
|
+
- Set verdict: PASS (meets criteria) / WARN (partial) / FAIL (regression or criteria not met)
|
|
81
|
+
|
|
82
|
+
**If role = reviewer**:
|
|
83
|
+
- Read plan from {session_folder}/artifacts/optimization-plan.md
|
|
84
|
+
- Review changed files across 5 dimensions:
|
|
85
|
+
- Correctness: logic errors, race conditions, null safety
|
|
86
|
+
- Side effects: unintended behavior changes, API contract breaks
|
|
87
|
+
- Maintainability: code clarity, complexity increase, naming
|
|
88
|
+
- Regression risk: impact on unrelated code paths
|
|
89
|
+
- Best practices: idiomatic patterns, no optimization anti-patterns
|
|
90
|
+
- Write `{session_folder}/artifacts/review-report.md`
|
|
91
|
+
- Set verdict: APPROVE / REVISE / REJECT
|
|
92
|
+
|
|
93
|
+
4. **Share discoveries**: Append exploration findings to shared board:
|
|
94
|
+
```bash
|
|
95
|
+
echo '{"ts":"<ISO8601>","worker":"{id}","type":"<type>","data":{...}}' >> {session_folder}/discoveries.ndjson
|
|
96
|
+
```
|
|
97
|
+
5. **Report result**: Return JSON via report_agent_job_result
|
|
98
|
+
|
|
99
|
+
### Discovery Types to Share
|
|
100
|
+
- `bottleneck_found`: `{type, location, severity, description}` -- Bottleneck identified
|
|
101
|
+
- `hotspot_found`: `{file, function, cpu_pct, description}` -- CPU hotspot
|
|
102
|
+
- `memory_issue`: `{file, type, size_mb, description}` -- Memory problem
|
|
103
|
+
- `io_issue`: `{operation, latency_ms, description}` -- I/O issue
|
|
104
|
+
- `db_issue`: `{query, latency_ms, description}` -- Database issue
|
|
105
|
+
- `file_modified`: `{file, change, lines_added}` -- File change recorded
|
|
106
|
+
- `metric_measured`: `{metric, value, unit, context}` -- Metric measured
|
|
107
|
+
- `pattern_found`: `{pattern_name, location, description}` -- Pattern identified
|
|
108
|
+
- `artifact_produced`: `{name, path, producer, type}` -- Deliverable created
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Output (report_agent_job_result)
|
|
113
|
+
|
|
114
|
+
Return JSON:
|
|
115
|
+
{
|
|
116
|
+
"id": "{id}",
|
|
117
|
+
"status": "completed" | "failed",
|
|
118
|
+
"findings": "Key discoveries and implementation notes (max 500 chars)",
|
|
119
|
+
"verdict": "PASS|WARN|FAIL|APPROVE|REVISE|REJECT or empty",
|
|
120
|
+
"artifacts_produced": "semicolon-separated artifact paths",
|
|
121
|
+
"error": ""
|
|
122
|
+
}
|
|
@@ -501,3 +501,41 @@ if (plannerAgent) {
|
|
|
501
501
|
|---------|--------|
|
|
502
502
|
| `check` / `status` | Show progress: planned / executing / completed / failed counts |
|
|
503
503
|
| `resume` / `continue` | Re-enter loop from Phase 2 |
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
## Coordinator Role Constraints (Main Agent)
|
|
509
|
+
|
|
510
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
511
|
+
|
|
512
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
513
|
+
- Spawns agents with task assignments
|
|
514
|
+
- Waits for agent callbacks
|
|
515
|
+
- Merges results and coordinates workflow
|
|
516
|
+
- Manages workflow transitions between phases
|
|
517
|
+
|
|
518
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
519
|
+
- Wait patiently for `wait()` calls to complete
|
|
520
|
+
- NOT skip workflow steps due to perceived delays
|
|
521
|
+
- NOT assume agents have failed just because they're taking time
|
|
522
|
+
- Trust the timeout mechanisms defined in the skill
|
|
523
|
+
|
|
524
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
525
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
526
|
+
- NOT skip the agent or move to next phase prematurely
|
|
527
|
+
- Give agents opportunity to respond before escalating
|
|
528
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
529
|
+
|
|
530
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
531
|
+
- Skip phases or stages defined in the workflow
|
|
532
|
+
- Bypass required approval or review steps
|
|
533
|
+
- Execute dependent tasks before prerequisites complete
|
|
534
|
+
- Assume task completion without explicit agent callback
|
|
535
|
+
- Make up or fabricate agent results
|
|
536
|
+
|
|
537
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
538
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
539
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
540
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
541
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -429,7 +429,7 @@ for (let wave = 1; wave <= maxWave; wave++) {
|
|
|
429
429
|
spawn_agents_on_csv({
|
|
430
430
|
csv_path: `${sessionFolder}/wave-${wave}.csv`,
|
|
431
431
|
id_column: "id",
|
|
432
|
-
instruction: Read("
|
|
432
|
+
instruction: Read("~ or <project>/.codex/skills/team-planex/instructions/agent-instruction.md"),
|
|
433
433
|
max_concurrency: maxConcurrency,
|
|
434
434
|
max_runtime_seconds: 1200,
|
|
435
435
|
output_csv_path: `${sessionFolder}/wave-${wave}-results.csv`,
|
|
@@ -597,3 +597,41 @@ Both planner and executor agents share the same discoveries.ndjson file:
|
|
|
597
597
|
8. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
598
598
|
9. **Two-Wave Pipeline**: Wave 1 = Planning (PLAN-*), Wave 2 = Execution (EXEC-*)
|
|
599
599
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Coordinator Role Constraints (Main Agent)
|
|
605
|
+
|
|
606
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
607
|
+
|
|
608
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
609
|
+
- Spawns agents with task assignments
|
|
610
|
+
- Waits for agent callbacks
|
|
611
|
+
- Merges results and coordinates workflow
|
|
612
|
+
- Manages workflow transitions between phases
|
|
613
|
+
|
|
614
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
615
|
+
- Wait patiently for `wait()` calls to complete
|
|
616
|
+
- NOT skip workflow steps due to perceived delays
|
|
617
|
+
- NOT assume agents have failed just because they're taking time
|
|
618
|
+
- Trust the timeout mechanisms defined in the skill
|
|
619
|
+
|
|
620
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
621
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
622
|
+
- NOT skip the agent or move to next phase prematurely
|
|
623
|
+
- Give agents opportunity to respond before escalating
|
|
624
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
625
|
+
|
|
626
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
627
|
+
- Skip phases or stages defined in the workflow
|
|
628
|
+
- Bypass required approval or review steps
|
|
629
|
+
- Execute dependent tasks before prerequisites complete
|
|
630
|
+
- Assume task completion without explicit agent callback
|
|
631
|
+
- Make up or fabricate agent results
|
|
632
|
+
|
|
633
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
634
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
635
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
636
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
637
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -774,3 +774,41 @@ QAGEN -> QARUN -> (if coverage < target) -> GC Loop Handler
|
|
|
774
774
|
9. **Scout Feeds Strategy**: Scout findings flow into strategist via prev_context and discoveries.ndjson
|
|
775
775
|
10. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
776
776
|
11. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
---
|
|
780
|
+
|
|
781
|
+
## Coordinator Role Constraints (Main Agent)
|
|
782
|
+
|
|
783
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
784
|
+
|
|
785
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
786
|
+
- Spawns agents with task assignments
|
|
787
|
+
- Waits for agent callbacks
|
|
788
|
+
- Merges results and coordinates workflow
|
|
789
|
+
- Manages workflow transitions between phases
|
|
790
|
+
|
|
791
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
792
|
+
- Wait patiently for `wait()` calls to complete
|
|
793
|
+
- NOT skip workflow steps due to perceived delays
|
|
794
|
+
- NOT assume agents have failed just because they're taking time
|
|
795
|
+
- Trust the timeout mechanisms defined in the skill
|
|
796
|
+
|
|
797
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
798
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
799
|
+
- NOT skip the agent or move to next phase prematurely
|
|
800
|
+
- Give agents opportunity to respond before escalating
|
|
801
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
802
|
+
|
|
803
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
804
|
+
- Skip phases or stages defined in the workflow
|
|
805
|
+
- Bypass required approval or review steps
|
|
806
|
+
- Execute dependent tasks before prerequisites complete
|
|
807
|
+
- Assume task completion without explicit agent callback
|
|
808
|
+
- Make up or fabricate agent results
|
|
809
|
+
|
|
810
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
811
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
812
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
813
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
814
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -493,3 +493,41 @@ send_input({
|
|
|
493
493
|
8. **Lifecycle Balance**: Every spawn_agent MUST have a matching close_agent (tracked in registry.json)
|
|
494
494
|
9. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
495
495
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
---
|
|
499
|
+
|
|
500
|
+
## Coordinator Role Constraints (Main Agent)
|
|
501
|
+
|
|
502
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
503
|
+
|
|
504
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
505
|
+
- Spawns agents with task assignments
|
|
506
|
+
- Waits for agent callbacks
|
|
507
|
+
- Merges results and coordinates workflow
|
|
508
|
+
- Manages workflow transitions between phases
|
|
509
|
+
|
|
510
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
511
|
+
- Wait patiently for `wait()` calls to complete
|
|
512
|
+
- NOT skip workflow steps due to perceived delays
|
|
513
|
+
- NOT assume agents have failed just because they're taking time
|
|
514
|
+
- Trust the timeout mechanisms defined in the skill
|
|
515
|
+
|
|
516
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
517
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
518
|
+
- NOT skip the agent or move to next phase prematurely
|
|
519
|
+
- Give agents opportunity to respond before escalating
|
|
520
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
521
|
+
|
|
522
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
523
|
+
- Skip phases or stages defined in the workflow
|
|
524
|
+
- Bypass required approval or review steps
|
|
525
|
+
- Execute dependent tasks before prerequisites complete
|
|
526
|
+
- Assume task completion without explicit agent callback
|
|
527
|
+
- Make up or fabricate agent results
|
|
528
|
+
|
|
529
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
530
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
531
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
532
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
533
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -643,3 +643,41 @@ const discoveries = Read(`${sessionDir}/discoveries.ndjson`)
|
|
|
643
643
|
8. **Lifecycle Balance**: Every spawn_agent MUST have a matching close_agent (tracked in registry.json)
|
|
644
644
|
9. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
645
645
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
---
|
|
649
|
+
|
|
650
|
+
## Coordinator Role Constraints (Main Agent)
|
|
651
|
+
|
|
652
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
653
|
+
|
|
654
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
655
|
+
- Spawns agents with task assignments
|
|
656
|
+
- Waits for agent callbacks
|
|
657
|
+
- Merges results and coordinates workflow
|
|
658
|
+
- Manages workflow transitions between phases
|
|
659
|
+
|
|
660
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
661
|
+
- Wait patiently for `wait()` calls to complete
|
|
662
|
+
- NOT skip workflow steps due to perceived delays
|
|
663
|
+
- NOT assume agents have failed just because they're taking time
|
|
664
|
+
- Trust the timeout mechanisms defined in the skill
|
|
665
|
+
|
|
666
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
667
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
668
|
+
- NOT skip the agent or move to next phase prematurely
|
|
669
|
+
- Give agents opportunity to respond before escalating
|
|
670
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
671
|
+
|
|
672
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
673
|
+
- Skip phases or stages defined in the workflow
|
|
674
|
+
- Bypass required approval or review steps
|
|
675
|
+
- Execute dependent tasks before prerequisites complete
|
|
676
|
+
- Assume task completion without explicit agent callback
|
|
677
|
+
- Make up or fabricate agent results
|
|
678
|
+
|
|
679
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
680
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
681
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
682
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
683
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -668,3 +668,41 @@ Wave 3: TDVAL-001 (validator) -> 4-layer validation
|
|
|
668
668
|
8. **GC Loop Bounded**: Maximum 3 fix-verify rounds before accepting current state
|
|
669
669
|
9. **Worktree Isolation**: All fix execution happens in git worktree, not main branch
|
|
670
670
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
---
|
|
674
|
+
|
|
675
|
+
## Coordinator Role Constraints (Main Agent)
|
|
676
|
+
|
|
677
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
678
|
+
|
|
679
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
680
|
+
- Spawns agents with task assignments
|
|
681
|
+
- Waits for agent callbacks
|
|
682
|
+
- Merges results and coordinates workflow
|
|
683
|
+
- Manages workflow transitions between phases
|
|
684
|
+
|
|
685
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
686
|
+
- Wait patiently for `wait()` calls to complete
|
|
687
|
+
- NOT skip workflow steps due to perceived delays
|
|
688
|
+
- NOT assume agents have failed just because they're taking time
|
|
689
|
+
- Trust the timeout mechanisms defined in the skill
|
|
690
|
+
|
|
691
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
692
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
693
|
+
- NOT skip the agent or move to next phase prematurely
|
|
694
|
+
- Give agents opportunity to respond before escalating
|
|
695
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
696
|
+
|
|
697
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
698
|
+
- Skip phases or stages defined in the workflow
|
|
699
|
+
- Bypass required approval or review steps
|
|
700
|
+
- Execute dependent tasks before prerequisites complete
|
|
701
|
+
- Assume task completion without explicit agent callback
|
|
702
|
+
- Make up or fabricate agent results
|
|
703
|
+
|
|
704
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
705
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
706
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
707
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
708
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -730,3 +730,41 @@ TESTGEN -> TESTRUN -> (if pass_rate < 0.95 OR coverage < target) -> GC Loop Hand
|
|
|
730
730
|
8. **GC Loop Discipline**: Max 3 rounds per layer; never infinite-loop on coverage
|
|
731
731
|
9. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
732
732
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
## Coordinator Role Constraints (Main Agent)
|
|
738
|
+
|
|
739
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
740
|
+
|
|
741
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
742
|
+
- Spawns agents with task assignments
|
|
743
|
+
- Waits for agent callbacks
|
|
744
|
+
- Merges results and coordinates workflow
|
|
745
|
+
- Manages workflow transitions between phases
|
|
746
|
+
|
|
747
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
748
|
+
- Wait patiently for `wait()` calls to complete
|
|
749
|
+
- NOT skip workflow steps due to perceived delays
|
|
750
|
+
- NOT assume agents have failed just because they're taking time
|
|
751
|
+
- Trust the timeout mechanisms defined in the skill
|
|
752
|
+
|
|
753
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
754
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
755
|
+
- NOT skip the agent or move to next phase prematurely
|
|
756
|
+
- Give agents opportunity to respond before escalating
|
|
757
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
758
|
+
|
|
759
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
760
|
+
- Skip phases or stages defined in the workflow
|
|
761
|
+
- Bypass required approval or review steps
|
|
762
|
+
- Execute dependent tasks before prerequisites complete
|
|
763
|
+
- Assume task completion without explicit agent callback
|
|
764
|
+
- Make up or fabricate agent results
|
|
765
|
+
|
|
766
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
767
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
768
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
769
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
770
|
+
- Do not terminate or skip steps due to time concerns
|
|
@@ -727,3 +727,41 @@ Convergence: audit.score >= 8 AND audit.critical_count === 0
|
|
|
727
727
|
8. **GC Loop Cap**: Max 2 generator-critic rounds between designer and reviewer
|
|
728
728
|
9. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
729
729
|
10. **DO NOT STOP**: Continuous execution until all waves complete or all remaining tasks are skipped
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
---
|
|
733
|
+
|
|
734
|
+
## Coordinator Role Constraints (Main Agent)
|
|
735
|
+
|
|
736
|
+
**CRITICAL**: The coordinator (main agent executing this skill) is responsible for **orchestration only**, NOT implementation.
|
|
737
|
+
|
|
738
|
+
15. **Coordinator Does NOT Execute Code**: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:
|
|
739
|
+
- Spawns agents with task assignments
|
|
740
|
+
- Waits for agent callbacks
|
|
741
|
+
- Merges results and coordinates workflow
|
|
742
|
+
- Manages workflow transitions between phases
|
|
743
|
+
|
|
744
|
+
16. **Patient Waiting is Mandatory**: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:
|
|
745
|
+
- Wait patiently for `wait()` calls to complete
|
|
746
|
+
- NOT skip workflow steps due to perceived delays
|
|
747
|
+
- NOT assume agents have failed just because they're taking time
|
|
748
|
+
- Trust the timeout mechanisms defined in the skill
|
|
749
|
+
|
|
750
|
+
17. **Use send_input for Clarification**: When agents need guidance or appear stuck, the coordinator MUST:
|
|
751
|
+
- Use `send_input()` to ask questions or provide clarification
|
|
752
|
+
- NOT skip the agent or move to next phase prematurely
|
|
753
|
+
- Give agents opportunity to respond before escalating
|
|
754
|
+
- Example: `send_input({ id: agent_id, message: "Please provide status update or clarify blockers" })`
|
|
755
|
+
|
|
756
|
+
18. **No Workflow Shortcuts**: The coordinator MUST NOT:
|
|
757
|
+
- Skip phases or stages defined in the workflow
|
|
758
|
+
- Bypass required approval or review steps
|
|
759
|
+
- Execute dependent tasks before prerequisites complete
|
|
760
|
+
- Assume task completion without explicit agent callback
|
|
761
|
+
- Make up or fabricate agent results
|
|
762
|
+
|
|
763
|
+
19. **Respect Long-Running Processes**: This is a complex multi-agent workflow that requires patience:
|
|
764
|
+
- Total execution time may range from 30-90 minutes or longer
|
|
765
|
+
- Each phase may take 10-30 minutes depending on complexity
|
|
766
|
+
- The coordinator must remain active and attentive throughout the entire process
|
|
767
|
+
- Do not terminate or skip steps due to time concerns
|