Smart delegation that analyses tasks and routes to parallel or sequential execution
Analyses a set of tasks to determine whether they should run in parallel or sequentially, then routes to the appropriate execution mode. This is the recommended way to hand off multi-step work when you are unsure which execution strategy is best.
/delegate Implement user auth, add rate limiting, write API docs
/delegate "Build login page" "Build signup page" "Build dashboard"
Parse tasks. Split the input into individual tasks. Tasks can be separated by commas, newlines, or quoted strings.
Analyse dependencies. For each pair of tasks, determine whether one depends on the output of another:
Build a dependency graph. Map tasks to a directed acyclic graph (DAG) where edges represent dependencies.
Choose execution strategy:
| Condition | Strategy |
|------------------------------------|--------------|
| No dependencies between any tasks | /parallel |
| All tasks form a single chain | /sequential|
| Mix of independent and dependent | Hybrid |
Hybrid strategy: Independent task groups run in parallel, while dependent chains within each group run sequentially.
Route to the appropriate skill:
/parallel with all tasks/sequential with the ordered task list/parallel for each independent group, where each
group internally runs /sequentialReport the delegation plan. Before execution, output the plan:
## Delegation Plan
**Strategy:** Parallel (3 independent tasks)
### Worktree 1
- Build login page
### Worktree 2
- Build signup page
### Worktree 3
- Build dashboard
Or for sequential:
## Delegation Plan
**Strategy:** Sequential (3 dependent stages)
1. Implement user auth
2. Write tests for auth
3. Write API docs for auth endpoints
The delegate skill uses these heuristics to detect dependencies:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer