From taskflow
Runs declarative multi-phase subagent workflows for codebase-wide tasks: auditing, migration, parallel review, and cross-checked analysis. Use when a task needs discovery, work, review, and report phases with dynamic fan-out or saved orchestration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/taskflow:taskflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build and run **declarative, multi-phase workflows** of subagents. The runtime
Build and run declarative, multi-phase workflows of subagents. The runtime holds intermediate results and the phase DAG, so your main context only receives the final answer — not every step's transcript.
In Codex you drive Taskflow through its MCP tools:
| Tool | What it does |
|---|---|
taskflow_run | Run a saved flow (name) or an inline define (full DAG, or shorthand {task} / {tasks} / {chain}). Returns only the final phase output. |
taskflow_list | List saved flows discoverable from the current working directory. |
taskflow_show | Show a saved flow's full definition as JSON. |
taskflow_verify | Statically verify a flow (cycles, missing deps, undefined refs) — no execution. |
taskflow_compile | Render a flow's DAG as a diagram (an inline SVG image) + a verification report — no execution. |
For a single quick delegation, use the shorthand taskflow_run forms below
— you still get the DAG runtime (layered concurrency, retries) and context
isolation (only the final output returns). To rerun a flow by name, it must
already be saved on disk and discoverable from the working directory
(taskflow_list shows what's available).
Pass one of these as the define argument to taskflow_run — the runtime
desugars them into a proper flow:
// single — one agent, one task
{ "task": "Summarize the architecture of src/", "agent": "explorer" }
// parallel — run tasks concurrently, merge results
{ "tasks": [ { "task": "Audit auth" }, { "task": "Audit billing" } ] }
// chain — sequential; reference the prior step with {previous.output}
{ "chain": [ { "task": "Draft release notes" },
{ "task": "Tighten this copy: {previous.output}" } ] }
When you outgrow the shorthand, define a DAG of phases. Phase types:
agent, parallel, map (dynamic fan-out over an array), gate
(VERDICT: PASS/BLOCK), reduce, approval (human-in-the-loop), flow
(run a saved sub-flow), loop (iterate until a condition/convergence/cap),
tournament (N variants, a judge picks best / aggregates).
{
"name": "audit-endpoints",
"phases": [
{ "id": "discover", "type": "agent", "agent": "scout",
"task": "List every HTTP endpoint in src/. Return a JSON array of paths." },
{ "id": "audit", "type": "map", "over": "{steps.discover.json}",
"agent": "security-reviewer", "dependsOn": ["discover"],
"task": "Audit endpoint {item} for authz/injection issues." },
{ "id": "gate", "type": "gate", "agent": "critic", "dependsOn": ["audit"],
"task": "If any HIGH severity finding exists, VERDICT: BLOCK, else PASS." },
{ "id": "report", "type": "reduce", "agent": "doc-writer",
"from": ["audit"], "dependsOn": ["gate"],
"task": "Write a prioritized remediation report from {steps.audit.output}." }
]
}
Always taskflow_verify (or taskflow_compile) a non-trivial flow before
taskflow_run — it catches cycles, missing deps, and undefined refs for zero
tokens.
{args.X}, {steps.ID.output}, {steps.ID.json}, {item} (in map),
{previous.output} (in shorthand chain).
Taskflow ships built-in agents (executor, scout, planner, analyst, critic,
reviewer, risk-reviewer, security-reviewer, test-engineer, doc-writer,
verifier, and more). Do not invent agent names — omit agent to use the
default executor, or use one of the built-ins.
npx claudepluginhub heggria/taskflow --plugin taskflowOrchestrates complex multi-phase tasks as lionagi flow YAML specs, supporting multi-agent DAGs and parallel per-module sweeps. Use for tasks with independent subtasks or when quality benefits from multiple perspectives.
Orchestrates multi-agent work at scale: research swarms, parallel feature builds, wave dispatch, and build-review-fix pipelines. Activates on mentions of swarm, parallel agents, multi-agent, or fan-out.
Orchestrates multiple specialized agents within Claude Code for multi-domain analysis, feature implementation, and security audits.