Agent Coordinator
Intelligent agent coordinator for analyzing questions and selecting the most appropriate capabilities.
Activation Keywords
Chinese:
- 使用 agent, 调用代理
- 最适合的 agent
- agent 协调, 多 agent 协作
English:
- use agent, call agent
- most suitable agent
- agent coordination
- multi-agent collaboration
Tools Used
- agents_list: List available agents
- sessions_spawn: Call sub-agent or ACP
- read: Read agent and skill documentation
- memory_search: Search related knowledge
Core Functionality
1. Question Analysis
Analysis dimensions:
- Question type: Knowledge query, data fetching, coding task, teaching task, analysis task, creative task
- Domain: Finance, programming, AI/ML, general
- Complexity: Simple (single step), Medium (multi-step sequential), Complex (multi-step with decisions)
- Required capabilities: Data fetching, data processing, code generation, visualization, analytical reasoning, teaching explanation
2. Capability Mapping
Internal capabilities (Aerial itself):
- Knowledge queries (general): Answer directly
- Self-improvement tasks: Answer directly
- Context management: Answer directly
- Communication collaboration: Answer directly
- Skill extraction: Answer directly
- Knowledge organization: Answer directly
Skills (internal):
- Chat history related: Session history priority check
- Agreements/commitments: Task commitment execution
- Execution priority: Immediate vs future configuration
- Unclear intent: Confirmation mechanism, paraphrase confirmation
- Complex tasks: Complete task lifecycle
- Code review: Teach Co-Founder
- Teaching/learning: Teach Co-Founder
- Skill pattern discovery: Skill Extractor
- History search: Chat History LanceDB
External tools (via skills):
- Stock data: akshare
- Stock analysis: stock-analysis
- Financial market: akshare + stock-analysis
- Stock technical indicators: stock-analysis
Sub-agent / ACP invocation:
- Coding tasks: coding-agent (ACP)
- Code review: github (gh)
- GitHub operations: github
- Complex code: copilot-cli
- Claude Code: claude-code
- OpenCode: opencode
- New feature development: coding-agent
- Large codebase refactoring: coding-agent
- PR review: github
3. Decision Process
User question
↓
Question analysis
├─ Question type?
├─ Domain?
├─ Complexity?
└─ Required capabilities?
↓
Capability mapping
├─ Can I handle it?
├─ Is there a skill?
├─ Is there a tool?
└─ Need to call agent?
↓
Select execution plan
├─ Plan 1: Answer myself (priority)
├─ Plan 2: Use skill
├─ Plan 3: Call tool
└─ Plan 4: Call sub-agent
↓
Execute
├─ Execute according to selected plan
├─ Monitor execution process
└─ Handle errors and exceptions
↓
Integrate results
├─ Organize execution results
├─ Explain analysis process
└─ Provide follow-up suggestions
Usage Patterns
When to Enable This Skill
- Complex questions that require multiple capabilities
- Cross-domain questions that involve different areas
- Questions where the best approach is unclear
- Requests that may benefit from specialized agents
Coordination Principles
1. Prioritize self-handling
- Simple questions answered directly
- Use existing skills
- Avoid unnecessary agent calls
2. Use skills appropriately
- Prioritize using existing skills
- Call agents when skills are insufficient
- Record skill usage
3. Cautiously call sub-agents
- Complex coding tasks → coding-agent
- GitHub operations → github skill
- Large codebase tasks → specialized agent
- Monitor agent execution
4. Integrate results
- Organize agent output
- Explain key parts
- Provide follow-up recommendations
Decision Examples
Example 1: Stock Analysis
User: "Help me analyze Ping An Bank (000001) recent performance"
Analysis:
- Type: Analysis task
- Domain: Finance
- Complexity: Medium
- Capabilities: Data fetching, data processing, analytical reasoning
Decision: Use akshare + stock-analysis skills
Example 2: Code Review
User: "Review this code for issues"
Analysis:
- Type: Code task
- Domain: Programming
- Complexity: Medium
- Capabilities: Code understanding, problem identification
Decision: Use Teach Co-Founder skill (code review framework)
Example 3: Coding Task
User: "Write a Python script to fetch data from API and save to database"
Analysis:
- Type: Code task
- Domain: Programming
- Complexity: High
- Capabilities: Code generation, API calls, database operations
Decision: Call coding-agent (ACP)
Best Practices
- Avoid over-design - Simple questions answered directly, don't over-analyze
- Monitor agent execution - Monitor status when calling sub-agents
- Integrate output - Organize agent output, don't just relay
- Record experience - Record which situations require which agent
- Continuous optimization - Optimize decision logic based on usage
Limitations
- Limited to available agents and skills
- Agent execution may fail
- Integration of results may be incomplete
- Decision logic may need refinement
Related Skills
- learned-skills: Skills extracted from events
- skill-extractor: Skill extraction capability
- teach-cofounder: Technical mentor skill
References
- OpenClaw Agent Documentation
- ACP Harness Documentation
Instructions for Agents
- Read the task description carefully
- Follow the step-by-step process
- Use the appropriate tools
- Verify the results
Examples
Example 1: Basic Usage
User:
Agent:
Example 2: Advanced Usage
User:
Agent:
1---2name: agent-coordinator3description: Agent coordinator for analyzing user questions, determining the most suitable agent or skill to answer, and coordinating multiple agents for complex tasks. Supports question classification, capability mapping, agent invocation, and result integration.4metadata:5 source: https://skillmd.com/skills/hiyenwong/agent-coordinator6---78# Agent Coordinator910Intelligent agent coordinator for analyzing questions and selecting the most appropriate capabilities.1112## Activation Keywords1314Chinese:15- 使用 agent, 调用代理16- 最适合的 agent17- agent 协调, 多 agent 协作1819English:20- use agent, call agent21- most suitable agent22- agent coordination23- multi-agent collaboration2425## Tools Used2627- agents_list: List available agents28- sessions_spawn: Call sub-agent or ACP29- read: Read agent and skill documentation30- memory_search: Search related knowledge3132## Core Functionality3334### 1. Question Analysis3536**Analysis dimensions:**37- **Question type**: Knowledge query, data fetching, coding task, teaching task, analysis task, creative task38- **Domain**: Finance, programming, AI/ML, general39- **Complexity**: Simple (single step), Medium (multi-step sequential), Complex (multi-step with decisions)40- **Required capabilities**: Data fetching, data processing, code generation, visualization, analytical reasoning, teaching explanation4142### 2. Capability Mapping4344**Internal capabilities (Aerial itself):**45- Knowledge queries (general): Answer directly46- Self-improvement tasks: Answer directly47- Context management: Answer directly48- Communication collaboration: Answer directly49- Skill extraction: Answer directly50- Knowledge organization: Answer directly5152**Skills (internal):**53- Chat history related: Session history priority check54- Agreements/commitments: Task commitment execution55- Execution priority: Immediate vs future configuration56- Unclear intent: Confirmation mechanism, paraphrase confirmation57- Complex tasks: Complete task lifecycle58- Code review: Teach Co-Founder59- Teaching/learning: Teach Co-Founder60- Skill pattern discovery: Skill Extractor61- History search: Chat History LanceDB6263**External tools (via skills):**64- Stock data: akshare65- Stock analysis: stock-analysis66- Financial market: akshare + stock-analysis67- Stock technical indicators: stock-analysis6869**Sub-agent / ACP invocation:**70- Coding tasks: coding-agent (ACP)71- Code review: github (gh)72- GitHub operations: github73- Complex code: copilot-cli74- Claude Code: claude-code75- OpenCode: opencode76- New feature development: coding-agent77- Large codebase refactoring: coding-agent78- PR review: github7980### 3. Decision Process8182```83User question84 ↓85Question analysis86 ├─ Question type?87 ├─ Domain?88 ├─ Complexity?89 └─ Required capabilities?90 ↓91Capability mapping92 ├─ Can I handle it?93 ├─ Is there a skill?94 ├─ Is there a tool?95 └─ Need to call agent?96 ↓97Select execution plan98 ├─ Plan 1: Answer myself (priority)99 ├─ Plan 2: Use skill100 ├─ Plan 3: Call tool101 └─ Plan 4: Call sub-agent102 ↓103Execute104 ├─ Execute according to selected plan105 ├─ Monitor execution process106 └─ Handle errors and exceptions107 ↓108Integrate results109 ├─ Organize execution results110 ├─ Explain analysis process111 └─ Provide follow-up suggestions112```113114## Usage Patterns115116### When to Enable This Skill1171181. **Complex questions** that require multiple capabilities1192. **Cross-domain questions** that involve different areas1203. **Questions where the best approach is unclear**1214. **Requests that may benefit from specialized agents**122123### Coordination Principles124125#### 1. Prioritize self-handling126- Simple questions answered directly127- Use existing skills128- Avoid unnecessary agent calls129130#### 2. Use skills appropriately131- Prioritize using existing skills132- Call agents when skills are insufficient133- Record skill usage134135#### 3. Cautiously call sub-agents136- Complex coding tasks → coding-agent137- GitHub operations → github skill138- Large codebase tasks → specialized agent139- Monitor agent execution140141#### 4. Integrate results142- Organize agent output143- Explain key parts144- Provide follow-up recommendations145146## Decision Examples147148### Example 1: Stock Analysis149150**User**: "Help me analyze Ping An Bank (000001) recent performance"151152**Analysis**:153- Type: Analysis task154- Domain: Finance155- Complexity: Medium156- Capabilities: Data fetching, data processing, analytical reasoning157158**Decision**: Use akshare + stock-analysis skills159160### Example 2: Code Review161162**User**: "Review this code for issues"163164**Analysis**:165- Type: Code task166- Domain: Programming167- Complexity: Medium168- Capabilities: Code understanding, problem identification169170**Decision**: Use Teach Co-Founder skill (code review framework)171172### Example 3: Coding Task173174**User**: "Write a Python script to fetch data from API and save to database"175176**Analysis**:177- Type: Code task178- Domain: Programming179- Complexity: High180- Capabilities: Code generation, API calls, database operations181182**Decision**: Call coding-agent (ACP)183184## Best Practices1851861. **Avoid over-design** - Simple questions answered directly, don't over-analyze1872. **Monitor agent execution** - Monitor status when calling sub-agents1883. **Integrate output** - Organize agent output, don't just relay1894. **Record experience** - Record which situations require which agent1905. **Continuous optimization** - Optimize decision logic based on usage191192## Limitations193194- Limited to available agents and skills195- Agent execution may fail196- Integration of results may be incomplete197- Decision logic may need refinement198199## Related Skills200201- learned-skills: Skills extracted from events202- skill-extractor: Skill extraction capability203- teach-cofounder: Technical mentor skill204205## References206207- OpenClaw Agent Documentation208- ACP Harness Documentation209210## Instructions for Agents2112121. Read the task description carefully2132. Follow the step-by-step process2143. Use the appropriate tools2154. Verify the results216217## Examples218219### Example 1: Basic Usage220221**User:** <example user request>222223**Agent:** <example agent response>224225### Example 2: Advanced Usage226227**User:** <example user request>228229**Agent:** <example agent response>