# dag-task-runner

> Claude/Codex skill by [@cursor](https://omgskills.com/library/cursor/index.md) · 4k stars · Updated 2026-08-13

Decompose a user's task into a DAG of subtasks and execute them with Cursor SDK local subagents in topological order, rendering live streaming status to a canvas. Each task has a complexity (HIGH/MED/LOW) that maps to a model. Use when the user asks to fan out work, decompose a task into a DAG, run subagents in parallel, or break a large task into a dependency graph.

## Install

```sh
git clone https://github.com/cursor/cookbook /tmp/cookbook && ln -s /tmp/cookbook/sdk/dag-task-runner/skill ~/.claude/skills/dag-task-runner
```

## From README

DAG Task Runner Decomposes a user-described task into a JSON DAG, then runs each node as a Cursor SDK local subagent (with parents' outputs stitched into the child's prompt). Live DAG state — including each running subagent's streaming output — is rendered into a .canvas.tsx that the runner rewrites on every status transition; the IDE hot-recompiles so the user sees subagents move through PENDING -\> RUNNING -\> FINISHED/ERROR in real time. This skill can run from either a project skill (.cursor/skills/dag-task-runner) or a personal skill (/.cursor/skills/dag-task-runner). The installed runner entry point is scripts/rundag.ts inside the skill directory. Set DAGRUNNERDIR to override the auto-detected scripts directory.

## Links

- HTML page: https://omgskills.com/skills/cursor/cookbook/sdk/dag-task-runner/skill/
- GitHub: https://github.com/cursor/cookbook
- Author: [@cursor](https://omgskills.com/library/cursor/index.md)

## More skills by this author

- [architect](https://omgskills.com/skills/cursor/plugins/architect/index.md) — Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
   - [@cursor](https://omgskills.com/library/cursor/index.md) · 3.1k stars
- [check-compiler-errors](https://omgskills.com/skills/cursor/plugins/check-compiler-errors/index.md) — Used to run compile and type-check commands and report failures
   - [@cursor](https://omgskills.com/library/cursor/index.md) · 3.1k stars
- [control-cli](https://omgskills.com/skills/cursor/plugins/control-cli/index.md) — Used to build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external...
   - [@cursor](https://omgskills.com/library/cursor/index.md) · 3.1k stars
