Task Orchestra
by @tobisamaa
Coordinate multiple agents and tasks for complex workflows. Orchestrate subagents, manage dependencies, handle parallel execution, and ensure successful comp...
clawhub install task-orchestraπ About This Skill
name: task-orchestra version: "1.0.0" description: "Coordinate multiple agents and tasks for complex workflows. Orchestrate subagents, manage dependencies, handle parallel execution, and ensure successful completion of multi-step operations.\n" metadata: openclaw: emoji: "ποΈ" requires: bins: ["curl", "jq"] env: ["BRAVE_API_KEY"] install: - id: npm kind: node package: async bins: ["async"]
Task Orchestra
Coordinate multiple agents and tasks for complex workflows.
When to Use
Core Capabilities
1. Task Coordination
2. Agent Orchestration
3. Workflow Management
4. Dependency Resolution
Orchestration Patterns
1. Sequential Execution
Task A β Task B β Task C
2. Parallel Execution
Task A, Task B, Task C β Aggregate
3. Pipeline Processing
Input β Task A β Task B β Task C β Output
4. Supervisor Pattern
Coordinator β Multiple Subagents β Results
5. Event-Driven Processing
Event β Trigger β Response β Next Event
Quick Actions
orchestrate [workflow] - Execute complex workflowparallel [tasks] - Run tasks in parallelpipeline [steps] - Chain tasks in sequencesupervise [agents] - Manage multiple agentsdependencies [tasks] - Analyze and resolve dependenciesUsage Examples
"Orchestrate a complete research project with multiple agents"
"Run these tasks in parallel and combine results"
"Create a pipeline for content creation from research to publication"
"Supervise a team of agents working on different aspects"
"Analyze dependencies and create execution order"
Workflow Templates
Research Project
1. Research Topic β Research Agent
2. Data Collection β Data Agent
3. Analysis β Analysis Agent
4. Report Generation β Writing Agent
5. Review β QA Agent
Content Creation
1. Topic Research β Research Agent
2. Outline Creation β Writing Agent
3. Draft Writing β Writing Agent
4. Editing β Editing Agent
5. Publication β Publishing Agent
Software Development
1. Requirements β Analysis Agent
2. Design β Design Agent
3. Implementation β Coding Agent
4. Testing β QA Agent
5. Deployment β Deployment Agent
Agent Management
Spawning Agents
sessions_spawn({ task: "specific task", label: "agent-name", mode: "run" })
Monitoring Progress
subagents list
Handling Failures
subagents kill [agent-id]
subagents steer [agent-id] "new instructions"
Dependency Resolution
Types of Dependencies
Resolution Process
1. Identify all dependencies
2. Create dependency graph
3. Find topological sort
4. Execute in dependency order
5. Handle conflicts and cycles
Error Handling
Common Failure Scenarios
Recovery Strategies
State Management
Progress Tracking
Checkpointing
Communication Patterns
Parent β Child
/sessions_send [agent-id] "instructions"
Child β Parent
Auto-announce results
Reply with findings
Report errors and status
Agent β Agent
Share data through files
Coordinate via shared state
Trigger other agents
Performance Optimization
Parallel Execution
Resource Management
Efficiency Metrics
Safety Considerations
Agent Limits
Data Integrity
Advanced Patterns
1. Hierarchical Orchestration
Main Coordinator β Team Coordinators β Individual Agents
2. Dynamic Work Allocation
Assign tasks based on agent capabilities
Reassign if agent fails
Balance load dynamically
3. Event-Driven Workflows
Event β Trigger β Agent β Result β Next Event
4. Adaptive Planning
Plan β Execute β Monitor β Adjust β Repeat
Integration with Other Skills
Self-Evolution
Analysis Skills
Content Creation
Quick Reference
Common Commands
# List running agents
subagents listKill failed agent
subagents kill [id]Send instructions
sessions_send [agent-id] "message"Spawn new agent
sessions_spawn({ task: "task", label: "name", mode: "run" })
Workflow Examples
# Research project
orchestrate "research-project" with agents: research, analysis, writingContent pipeline
pipeline "content-creation" with steps: research, outline, draft, edit, publishSoftware development
supervise "dev-team" with agents: analysis, design, coding, testing, deployment
Best Practices
1. Start Simple: Begin with sequential execution 2. Add Parallelism: Identify independent tasks 3. Handle Failures: Implement robust error handling 4. Monitor Progress: Track execution and results 5. Optimize Performance: Balance load and resources
Success Metrics
Remember: Good orchestration makes complex tasks manageable and reliable.
β‘ When to Use
π Tips & Best Practices
1. Start Simple: Begin with sequential execution 2. Add Parallelism: Identify independent tasks 3. Handle Failures: Implement robust error handling 4. Monitor Progress: Track execution and results 5. Optimize Performance: Balance load and resources