一键导入
coordinator-mode
Distilled from production-proven coordinator patterns. Transforms sequential agent chains into intelligent parallel orchestration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Distilled from production-proven coordinator patterns. Transforms sequential agent chains into intelligent parallel orchestration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyzes user's requests, determines tech stack, plans structure, and coordinates agents.
Apply consistent changes across many files at once. One pattern, many targets.
**MANDATORY:** Use for complex/vague requests, new features, updates.
Reduce AI token usage by **6.8x average** (up to **49x** on monorepos) by giving the AI a structural map of your codebase instead of letting it read everything.
Keep sessions productive by compressing completed work while preserving key decisions.
Advanced multi-agent coordination with parallel dispatch and synthesis. Use for complex tasks requiring multiple specialist perspectives.
| name | coordinator-mode |
| description | Distilled from production-proven coordinator patterns. Transforms sequential agent chains into intelligent parallel orchestration. |
Distilled from production-proven coordinator patterns. Transforms sequential agent chains into intelligent parallel orchestration.
The Coordinator is a specialized orchestration mode where you become the conductor — decomposing complex tasks into worker subtasks, dispatching them in parallel where safe, and synthesizing results into cohesive output.
You are NOT a worker. You are the coordinator. Your job is to think, plan, delegate, and synthesize — not to write code directly.
User Request
↓
1. DECOMPOSE — Break task into worker subtasks
↓
2. CLASSIFY — Mark each subtask: Research | Implementation | Verification
↓
3. DISPATCH — Launch workers (parallel for reads, sequential for writes)
↓
4. MONITOR — Track worker completion notifications
↓
5. SYNTHESIZE — Combine results into unified response
↓
6. VERIFY — Ensure completeness before reporting to user
| Phase | Purpose | Concurrency | Worker Type |
|---|---|---|---|
| Research | Gather information, explore codebase | ✅ Fully parallel | Read-only agents |
| Synthesis | Analyze findings, plan approach | ❌ Coordinator only | No workers |
| Implementation | Make changes to code/files | ⚠️ Sequential per file set | Write-capable agents |
| Verification | Test, lint, validate changes | ✅ Parallel (independent) | Test/security agents |
🔴 Rule: NEVER skip the Synthesis phase. Research → direct Implementation = poor results.
❌ WRONG: "Based on your findings, fix the bug"
❌ WRONG: "Based on the research, implement it"
❌ WRONG: "Look at the code and do what's needed"
✅ RIGHT: "The bug is in src/auth/jwt.ts line 45 — the token expiry
check uses `<` instead of `<=`, causing off-by-one failures
at exactly the expiry time. Change line 45 from
`if (now < expiry)` to `if (now <= expiry)`"
Why: Phrases like "based on your findings" push synthesis onto the worker instead of doing it yourself. Write prompts that prove YOU understood — include file paths, line numbers, what specifically to change.
Brief the worker like a smart colleague who just walked into the room:
Investigate [specific question] in [file/directory scope].
Context: We're trying to [goal] because [reason].
I've already checked [what you checked] and found [what you found].
Report: List [specific deliverable]. Under 200 words.
Modify [specific file(s)] to [specific change].
Context: [Why this change is needed].
The current code at [file:line] does [X], change it to [Y].
Constraints: Don't touch [out-of-scope files]. Another agent handles [related area].
Verify: [How the worker should confirm success].
Verify that [specific change] works correctly.
Run: [specific commands].
Check: [what success looks like].
Report: Pass/fail with details on any failures.
| Scenario | Action | Why |
|---|---|---|
| Open-ended research question | Fork (omit agent type) | Fork inherits context, shorter prompt |
| Independent parallel research | Fork multiple in one message | Each fork shares cache |
| Specialized domain work | Spawn (specify agent type) | Fresh specialist starts clean |
| Second opinion on your work | Spawn | Independent perspective |
Don't peek. Don't read the fork's output file mid-flight. You'll get a completion notification. Reading the transcript pulls tool noise into your context.
Don't race. After launching, you know nothing about what the fork found. Never fabricate or predict fork results. If the user asks before notification lands, say "the fork is still running."
Keep prompts short. Forks inherit your full context — write a directive (what to do), not a briefing (what the situation is).
| Anti-Pattern | Why It's Bad | Fix |
|---|---|---|
| "Look at the code and fix it" | Zero context = workers make wrong assumptions | Provide specific file paths, line numbers, and what to change |
| Skipping Research phase | Implementation without understanding = rework | Always research first, even briefly |
| Launching 10+ workers at once | Overwhelms synthesis, diminishing returns | 2-5 workers per round, synthesize, then more if needed |
| Fabricating worker results | User gets wrong information | Wait for actual notification, say "still running" if asked |
| Coordinator writes code directly | Loses orchestration benefits | Always delegate to appropriate specialist |
After all workers complete:
## Coordinator Synthesis
### Task: [Original Request]
### Workers Dispatched
| Worker | Type | Status | Key Finding |
|--------|------|--------|-------------|
| agent-1 | Research | ✅ | Found X in file Y |
| agent-2 | Research | ✅ | Identified Y pattern |
### Consolidated Analysis
[Your synthesis — not a copy-paste of worker output]
### Decision & Rationale
[What you decided based on ALL worker findings and why]
### Implementation Plan
1. [Specific change with file path]
2. [Specific change with file path]
### Remaining Risk
- [Anything workers flagged but couldn't resolve]
| Situation | Action |
|---|---|
| Worker completed, need follow-up on same topic | Continue (send message to worker ID) |
| Worker completed, need different domain work | Spawn new specialist |
| Worker failed, need retry with same context | Continue with corrected instructions |
| Worker failed, need fundamentally different approach | Spawn new |
Generated by Agent Bridge