Agent Orchestrator
Meta-agent skill for orchestrating complex tasks through autonomous sub-agents. Decomposes macro tasks into subtasks, spawns specialized sub-agents with dynamically generated SKILL…
aatmaan1
@aatmaan1
What This Skill Does
Meta-agent skill that decomposes complex macro tasks into independent subtasks, spawns specialized sub-agents with dynamically generated SKILL.md files, coordinates file-based communication between them, consolidates results, and dissolves agents upon completion.
Replaces manual task decomposition and sequential execution by enabling parallel autonomous sub-agents with structured file-based coordination.
When to Use It
- Break a large software project into parallel development tasks for multiple agents
- Orchestrate multi-step research tasks where each sub-agent investigates a separate topic
- Coordinate parallel data processing pipelines across independent datasets
- Decompose a complex document generation task into writing, editing, and formatting sub-tasks
- Manage a multi-agent workflow for building and testing separate modules of an application
Install
$ openclaw skills install @aatmaan1/agent-orchestratorAgent Orchestrator
Orchestrate complex tasks by decomposing them into subtasks, spawning autonomous sub-agents, and consolidating their work.
Core Workflow
Phase 1: Task Decomposition
Analyze the macro task and break it into independent, parallelizable subtasks:
1. Identify the end goal and success criteria
2. List all major components/deliverables required
3. Determine dependencies between components
4. Group independent work into parallel subtasks
5. Create a dependency graph for sequential work
Decomposition Principles:
- Each subtask should be completable in isolation
- Minimize inter-agent dependencies
- Prefer broader, autonomous tasks over narrow, interdependent ones
- Include clear success criteria for each subtask
Phase 2: Agent Generation
For each subtask, create a sub-agent workspace:
python3 scripts/create_agent.py <agent-name> --workspace <path>
This creates:
<workspace>/<agent-name>/
âââ SKILL.md # Generated skill file for the agent
âââ inbox/ # Receives input files and instructions
âââ outbox/ # Delivers completed work
âââ workspace/ # Agent's working area
âââ status.json # Agent state tracking
Generate SKILL.md dynamically with:
- Agent's specific role and objective
- Tools and capabilities needed
- Input/output specifications
- Success criteria
- Communication protocol
See references/sub-agent-templates.md for pre-built templates.
Phase 3: Agent Dispatch
Initialize each agent by:
- Writing task instructions to
inbox/instructions.md - Copying required input files to
inbox/ - Setting
status.jsonto{"state": "pending", "started": null} - Spawning the agent using the Task tool:
# Spawn agent with its generated skill
Task(
description=f"{agent_name}: {brief_description}",
prompt=f"""
Read the skill at {agent_path}/SKILL.md and follow its instructions.
Your workspace is {agent_path}/workspace/
Read your task from {agent_path}/inbox/instructions.md
Write all outputs to {agent_path}/outbox/
Update {agent_path}/status.json when complete.
""",
subagent_type="general-purpose"
)
Phase 4: Monitoring (Checkpoint-based)
For fully autonomous agents, minimal monitoring is needed:
# Check agent completion
def check_agent_status(agent_path):
status = read_json(f"{agent_path}/status.json")
return status.get("state") == "completed"
Periodically check status.json for each agent. Agents update this file upon completion.
Phase 5: Consolidation
Once all agents complete:
- Collect outputs from each agent's
outbox/ - Validate deliverables against success criteria
- Merge/integrate outputs as needed
- Resolve conflicts if multiple agents touched shared concerns
- Generate summary of all work completed
# Consolidation pattern
for agent in agents:
outputs = glob(f"{agent.path}/outbox/*")
validate_outputs(outputs, agent.success_criteria)
consolidated_results.extend(outputs)
Phase 6: Dissolution & Summary
After consolidation:
- Archive agent workspaces (optional)
- Clean up temporary files
- Generate final summary:
- What was accomplished per agent
- Any issues encountered
- Final deliverables location
- Time/resource metrics
python3 scripts/dissolve_agents.py --workspace <path> --archive
File-Based Communication Protocol
See references/communication-protocol.md for detailed specs.
Quick Reference:
inbox/- Read-only for agent, written by orchestratoroutbox/- Write-only for agent, read by orchestratorstatus.json- Agent updates state:pendingârunningâcompleted|failed
Example: Research Report Task
Macro Task: "Create a comprehensive market analysis report"
Decomposition:
âââ Agent: data-collector
â âââ Gather market data, competitor info, trends
âââ Agent: analyst
â âââ Analyze collected data, identify patterns
âââ Agent: writer
â âââ Draft report sections from analysis
âââ Agent: reviewer
âââ Review, edit, and finalize report
Dependency: data-collector â analyst â writer â reviewer
Sub-Agent Templates
Pre-built templates for common agent types in references/sub-agent-templates.md:
- Research Agent - Web search, data gathering
- Code Agent - Implementation, testing
- Analysis Agent - Data processing, pattern finding
- Writer Agent - Content creation, documentation
- Review Agent - Quality assurance, editing
- Integration Agent - Merging outputs, conflict resolution
Best Practices
- Start small - Begin with 2-3 agents, scale as patterns emerge
- Clear boundaries - Each agent owns specific deliverables
- Explicit handoffs - Use structured files for agent communication
- Fail gracefully - Agents report failures; orchestrator handles recovery
- Log everything - Status files track progress for debugging
Related skills
TaskMaster - AI Cost Optimizer
@jlwrowProject manager and task delegation system. Use when you need to break down complex work into smaller tasks, assign appropriate AI models based on complexity, spawn sub-agents for parallel execution, track progress, and manage token budgets. Ideal for research projects, multi-step workflows, or when you want to delegate routine tasks to cheaper models while handling complex coordination yourself.
office.xyz
@sunnyguoyuanoffice.xyz — The 2D virtual office platform for AI agents. Give your agent a desk, let it collaborate with other agents, claim tasks, and work in shared office spaces. Transform isolated CLI agents into embodied office workers. MANDATORY TRIGGERS: office.xyz, virtual office, office chat, agent collaboration, multi-agent, office navigation, task management, shared workspace, team collaboration, @mention agent, office map, 2d office, spatial collaboration, agent workspace
Agent Team Orchestration
@arminnaimiOrchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4) Establishing review and quality gates, (5) Managing async communication and artifact sharing between agents.
aws-agentcore-langgraph
@killerappDeploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling.
Multi-Agent CN
@be1human通用多Agent调度系统(中文版):将主Agent变为纯调度员,所有任务通过 sessions_spawn 委派给5个持久化子Agent。支持轮询调度、先回复再派遣协议、 sessionKey固定复用。用户可自定义调度员角色和子Agent名称/人设。
Agent Council
@itsahedgeComplete toolkit for creating autonomous AI agents and managing Discord channels for OpenClaw. Use when setting up multi-agent systems, creating new agents, or managing Discord channel organization.