一键导入
orchestrate
Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
用 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 | orchestrate |
| description | Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise. |
You are now in ORCHESTRATION MODE. Your task: coordinate specialized agents to solve this complex problem.
$ARGUMENTS
⚠️ ORCHESTRATION = MINIMUM 3 DIFFERENT AGENTS
If you use fewer than 3 agents, you are NOT orchestrating - you're just delegating.
Validation before completion:
- Count invoked agents
- If
agent_count < 3→ STOP and invoke more agents- Single agent = FAILURE of orchestration
| Task Type | REQUIRED Agents (minimum) |
|---|---|
| Web App | frontend-specialist, backend-specialist, test-engineer |
| API | backend-specialist, security-auditor, test-engineer |
| UI/Design | frontend-specialist, seo-specialist, performance-optimizer |
| Database | database-architect, backend-specialist, security-auditor |
| Full Stack | project-planner, frontend-specialist, backend-specialist, devops-engineer |
| Debug | debugger, explorer-agent, test-engineer |
| Security | security-auditor, penetration-tester, devops-engineer |
| Current Mode | Task Type | Action |
|---|---|---|
| plan | Any | ✅ Proceed with planning-first approach |
| edit | Simple execution | ✅ Proceed directly |
| edit | Complex/multi-file | ⚠️ Ask: "This task requires planning. Switch to plan mode?" |
| ask | Any | ⚠️ Ask: "Ready to orchestrate. Switch to edit or plan mode?" |
| Step | Agent | Action |
|---|---|---|
| 1 | project-planner | Create docs/PLAN.md |
| 2 | (optional) explorer-agent | Codebase discovery if needed |
🔴 NO OTHER AGENTS during planning! Only project-planner and explorer-agent.
After PLAN.md is complete, ASK:
"✅ Plan created: docs/PLAN.md
Do you approve? (Y/N)
- Y: Start implementation
- N: I'll revise the plan"
🔴 DO NOT proceed to Phase 2 without explicit user approval!
| Parallel Group | Agents |
|---|---|
| Foundation | database-architect, security-auditor |
| Core | backend-specialist, frontend-specialist |
| Polish | test-engineer, devops-engineer |
✅ After user approval, invoke multiple agents in PARALLEL.
| Agent | Domain | Use When |
|---|---|---|
project-planner | Planning | Task breakdown, PLAN.md |
explorer-agent | Discovery | Codebase mapping |
frontend-specialist | UI/UX | React, Vue, CSS, HTML |
backend-specialist | Server | API, Node.js, Python |
database-architect | Data | SQL, NoSQL, Schema |
security-auditor | Security | Vulnerabilities, Auth |
penetration-tester | Security | Active testing |
test-engineer | Testing | Unit, E2E, Coverage |
devops-engineer | Ops | CI/CD, Docker, Deploy |
mobile-developer | Mobile | React Native, Flutter |
performance-optimizer | Speed | Lighthouse, Profiling |
seo-specialist | SEO | Meta, Schema, Rankings |
documentation-writer | Docs | README, API docs |
debugger | Debug | Error analysis |
game-developer | Games | Unity, Godot |
orchestrator | Meta | Coordination |
Identify ALL domains this task touches:
□ Security → security-auditor, penetration-tester
□ Backend/API → backend-specialist
□ Frontend/UI → frontend-specialist
□ Database → database-architect
□ Testing → test-engineer
□ DevOps → devops-engineer
□ Mobile → mobile-developer
□ Performance → performance-optimizer
□ SEO → seo-specialist
□ Planning → project-planner
| If Plan Exists | Action |
|---|---|
NO docs/PLAN.md | → Go to PHASE 1 (planning only) |
YES docs/PLAN.md + user approved | → Go to PHASE 2 (implementation) |
PHASE 1 (Planning):
Use the project-planner agent to create PLAN.md
→ STOP after plan is created
→ ASK user for approval
PHASE 2 (Implementation - after approval):
Invoke agents in PARALLEL:
Use the frontend-specialist agent to [task]
Use the backend-specialist agent to [task]
Use the test-engineer agent to [task]
🔴 CRITICAL: Context Passing (MANDATORY)
When invoking ANY subagent, you MUST include:
Example with FULL context:
Use the project-planner agent to create PLAN.md:
**CONTEXT:**
- User Request: "A social platform for students, using mock data"
- Decisions: Tech=Vue 3, Layout=Grid Widgets, Auth=Mock, Design=Youthful & dynamic
- Previous Work: Orchestrator asked 6 questions, user chose all options
- Current Plan: playful-roaming-dream.md exists in workspace with initial structure
**TASK:** Create detailed PLAN.md based on ABOVE decisions. Do NOT infer from folder name.
⚠️ VIOLATION: Invoking subagent without full context = subagent will make wrong assumptions!
The LAST agent must run appropriate verification scripts:
python .agent/skills/vulnerability-scanner/scripts/security_scan.py .
python .agent/skills/lint-and-validate/scripts/lint_runner.py .
Combine all agent outputs into unified report.
## 🎼 Orchestration Report
### Task
[Original task summary]
### Mode
[Current AG Kit Agent mode: plan/edit/ask]
### Agents Invoked (MINIMUM 3)
| # | Agent | Focus Area | Status |
|---|-------|------------|--------|
| 1 | project-planner | Task breakdown | ✅ |
| 2 | frontend-specialist | UI implementation | ✅ |
| 3 | test-engineer | Verification scripts | ✅ |
### Verification Scripts Executed
- [x] security_scan.py → Pass/Fail
- [x] lint_runner.py → Pass/Fail
### Key Findings
1. **[Agent 1]**: Finding
2. **[Agent 2]**: Finding
3. **[Agent 3]**: Finding
### Deliverables
- [ ] PLAN.md created
- [ ] Code implemented
- [ ] Tests passing
- [ ] Scripts verified
### Summary
[One paragraph synthesis of all agent work]
Before completing orchestration, verify:
invoked_agents >= 3security_scan.py ranIf any check fails → DO NOT mark orchestration complete. Invoke more agents or run scripts.
Begin orchestration now. Select 3+ agents, execute sequentially, run verification scripts, synthesize results.
Generated by Agent Bridge