| name | team-orchestrator |
| description | Orchestrates multiple agents in parallel for complex analysis and problem solving. Invoke when user presents design requirements or bug reports requiring multi-module analysis. |
Team Orchestrator Skill
This skill orchestrates multiple agents working in parallel to analyze and solve complex problems efficiently.
When to Invoke
- User presents a design requirement involving multiple modules
- User reports a bug that may span multiple files/systems
- User requests comprehensive analysis of a complex feature
- User asks for team-based problem solving approach
Core Philosophy
Divide and Conquer: Break complex problems into specialized sub-tasks that can be processed in parallel by multiple agents.
Agent Team Patterns
Pattern 1: Module-Based Team
For problems spanning multiple code modules:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Team Orchestrator โ
โ (Main Agent) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โผ โผ โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ Agent A โ โ Agent B โ โ Agent C โ
โ Module X โ โ Module Y โ โ Module Z โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
Pattern 2: Aspect-Based Team
For problems requiring different analysis perspectives:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Team Orchestrator โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโฌโโโโโโโโโโโโผโโโโโโโโโโโโฌโโโโโโโโโโ
โผ โผ โผ โผ โผ
โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ
โLogic โ โ Data โ โ UI โ โ AI โ โ CSS โ
โAgent โ โAgent โ โAgent โ โAgent โ โAgent โ
โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ
Workflow Steps
Step 1: Problem Decomposition
Analyze the user's request and identify:
- Scope: Which files/modules are affected?
- Aspects: What types of analysis are needed?
- Dependencies: Which tasks depend on others?
Step 2: Agent Assignment
Create specialized agents based on the decomposition:
For Battle System Issues:
- Agent 1: Core Logic (BattleManager, skill-executor, damage)
- Agent 2: Status Effects (status-effects, buffs-debuffs)
- Agent 3: AI System (ai/* modules)
- Agent 4: Frontend (BattleScene, components)
- Agent 5: Data Flow (hooks, GameScene)
For General Feature Development:
- Agent 1: Data Models & Types
- Agent 2: Business Logic
- Agent 3: UI Components
- Agent 4: State Management
- Agent 5: Integration Points
Step 3: Parallel Execution
Launch all agents in a SINGLE message with multiple Task tool calls:
<function_calls>
<Task subagent_type="search" description="Agent 1: Core Logic" query="..." response_language="zh-CN" />
<Task subagent_type="search" description="Agent 2: Status Effects" query="..." response_language="zh-CN" />
<Task subagent_type="search" description="Agent 3: AI System" query="..." response_language="zh-CN" />
<Task subagent_type="search" description="Agent 4: Frontend" query="..." response_language="zh-CN" />
<Task subagent_type="search" description="Agent 5: Data Flow" query="..." response_language="zh-CN" />
</function_calls>
Step 4: Result Aggregation
After all agents complete:
- Collect all findings
- Identify overlapping issues
- Prioritize by severity
- Create unified fix plan
Step 5: Sequential Fix Application
Apply fixes in order:
- High severity issues first
- Shared/dependency issues before isolated ones
- Verify after each batch of fixes
Agent Prompt Template
When creating agent tasks, use this structure:
ไฝ ๆฏ[ๆจกๅๅ็งฐ]ๅๆไธๅฎถใ่ฏทๆฃๆฅไปฅไธๆไปถไธญ็้ฎ้ข๏ผ
**้่ฆๆฃๆฅ็ๆไปถ๏ผ**
1. `path/to/file1.ts` - ๆ่ฟฐ
2. `path/to/file2.ts` - ๆ่ฟฐ
**้่ฆๆฃๆฅ็้ฎ้ข๏ผ**
1. **้ฎ้ข็ฑปๅ1**๏ผๅ
ทไฝๆ่ฟฐ
2. **้ฎ้ข็ฑปๅ2**๏ผๅ
ทไฝๆ่ฟฐ
**่พๅบ่ฆๆฑ๏ผ**
1. ๅๅบๅ็ฐ็ๆๆ้ฎ้ข๏ผๆไธฅ้็จๅบฆๅ็ฑป๏ผ
2. ๅฏนๆฏไธช้ฎ้ขๆไพๅ
ทไฝ็ไฟฎๅคไปฃ็
3. ่ฏดๆไฟฎๅค็ๅๅ ๅๅฝฑๅ
่ฏท็ดๆฅ่ฟ่กไปฃ็ ไฟฎๅค๏ผไธ่ฆๅชๆฏๆฅๅ้ฎ้ขใ
Severity Classification
| Level | Description | Action |
|---|
| ไธฅ้ (Critical) | System crash, data loss, core functionality broken | Fix immediately |
| ไธญ็ญ (Medium) | Feature not working correctly, performance issues | Fix in current iteration |
| ่ฝปๅพฎ (Minor) | Code quality, minor UI issues, optimization | Fix when possible |
Output Format
After team analysis completes:
## ๅข้ๅๆๆฅๅ
### Agent 1: [ๆจกๅๅ็งฐ]
- ๅ็ฐ้ฎ้ข: X ไธช
- ไธฅ้: X | ไธญ็ญ: X | ่ฝปๅพฎ: X
- ไธป่ฆ้ฎ้ข: [็ฎ่ฆๆ่ฟฐ]
### Agent 2: [ๆจกๅๅ็งฐ]
...
## ้ฎ้ขๆฑๆป
| ไผๅ
็บง | ้ฎ้ข | ๆไปถ | ็ถๆ |
|--------|------|------|------|
| ้ซ | ๆ่ฟฐ | file.ts | ๅพ
ไฟฎๅค |
| ไธญ | ๆ่ฟฐ | file.ts | ๅพ
ไฟฎๅค |
## ไฟฎๅค่ฎกๅ
1. [ ] ไฟฎๅคไธฅ้้ฎ้ขA
2. [ ] ไฟฎๅคไธฅ้้ฎ้ขB
3. [ ] ไฟฎๅคไธญ็ญ้ฎ้ขC
...
Best Practices
DO:
- โ
Launch ALL agents in ONE message (parallel execution)
- โ
Give each agent clear, specific scope
- โ
Use consistent output format requirements
- โ
Aggregate results before fixing
- โ
Verify fixes after application
DON'T:
- โ Launch agents one by one (serial execution)
- โ Give vague or overlapping scopes
- โ Skip result aggregation
- โ Apply fixes without prioritization
- โ Forget to verify after fixes
Example: Battle System Bug
User Request: "ๆๆ็ณป็ปๆ้ฎ้ข๏ผไผคๅฎณ่ฎก็ฎไธๆญฃ็กฎ"
Decomposition:
- Scope: battle-system/*, hooks/useBattleSystem.ts, BattleScene.tsx
- Aspects: Core logic, UI display, data flow
- Dependencies: Core logic affects UI and data flow
Agent Assignment:
Agent 1: damage.ts, skill-executor.ts (ไผคๅฎณ่ฎก็ฎๆ ธๅฟ)
Agent 2: BattleManager.ts (ๆๆๆต็จ็ฎก็)
Agent 3: useBattleSystem.ts (ๆฐๆฎไผ ้)
Agent 4: BattleScene.tsx, DamagePopup.tsx (ๅ็ซฏ่กจ็ฐ)
Parallel Launch: All 4 agents in one message
Result Aggregation: Collect findings, identify root cause
Fix Application: Fix core logic first, then UI, verify