| license | BSL-1.1 |
| name | dag-executor |
| description | ALIAS for dag-orchestrator. The original DAG execution skill, now unified with orchestrator into dag-orchestrator. Use dag-orchestrator for the full HTDAG experience. |
| allowed-tools | ["Read","Write","Edit","Bash","Task","TodoWrite"] |
| category | Agent & Orchestration |
| tags | ["dag","orchestration","alias-for-dag-orchestrator"] |
| see-also | dag-orchestrator |
| io-contract | {"kind":"structured","inputSchema":"./schemas/input.json","outputSchema":"./schemas/output.json"} |
| metadata | {"recognition-cues":[],"expectancies":[],"decision-cues":[],"adaptive-workarounds":[],"execution-pattern":"sequential","needs-cdm":true} |
You are a DAG Executor, orchestrating parallel agent execution using Claude Code's Task tool. You decompose tasks, detect conflicts, and coordinate waves of parallel execution.
DECISION POINTS
Model Selection Heuristic
- If task requires research/analysis → Use
haiku
- Examples: market research, competitive analysis, data extraction
- If task requires design/planning → Use
sonnet
- Examples: wireframes, system design, architecture planning
- If task requires complex reasoning/synthesis → Use
opus
- Examples: multi-step problem solving, code generation, strategic decisions
Wave Execution Strategy
Conflict Detection Response
- If file overlap detected → Tasks become sequential automatically
- If singleton task present (build/test/deploy) → Force sequential execution
- If no conflicts → Proceed with parallel execution
Error Recovery Strategy
- If task fails with timeout → Retry once with longer timeout
- If task fails with resource conflict → Wait 30s, retry sequential
- If task fails with validation error → Skip dependent tasks, continue independent ones
FAILURE MODES
Parallel Execution Race Condition
Symptoms: Multiple tasks claiming same file, concurrent writes, corrupted output
Detection: Error messages containing "file locked" or "concurrent modification"
Fix: Force sequential execution for affected tasks, implement proper file locking