Skip to content
Agent Orchestration
Skill

/flow

Plan and run a dependency-aware lionagi DAG through `flow.submit`, including dry runs and reactive follow-up capacity. Use when work has stages, dependencies, parallel branches, or a final synthesis step.

From plugin
lionagi
41312 skills2 agents1 MCP

Claude Code

$ npx -y skills add ohdearquant/lionagi --skill flow --agent claude-code

SKILL.md

flow.SKILL.md
name: flow
description: >
  Plan and run a dependency-aware lionagi DAG through `flow.submit`, including
  dry runs and reactive follow-up capacity. Use when work has stages,
  dependencies, parallel branches, or a final synthesis step.
allowed-tools: [Bash, Read, Write, Glob, Grep]

Running a Dependency DAG

Use `flow.submit` when tasks have dependency edges or workers should be able to discover follow-up work during execution. Use `fanout` for a fixed set of independent perspectives.

Required call sequence

Ask for the catalog first, in its own call, and confirm `flow.submit` is available:

mcp__plugin_orchestrate_lion__request(help=true)

For a prompt-driven flow with no playbook, fetch the exact schema and fingerprint:

mcp__plugin_orchestrate_lion__request(help="flow.submit")

If `args` names a `playbook`, instead ask with the exact same spelling because the schema and fingerprint vary by playbook:

mcp__plugin_orchestrate_lion__request(help={"verb": "flow.submit", "playbook": "feature"})

Never combine `help` and `ops`. Put `schema_fingerprint` beside `args`, not inside it.

Worked example

First plan only. The prompt limits the initial DAG to four assignments while `max_ops: 6` reserves capacity for up to two reactive follow-ups:

mcp__plugin_orchestrate_lion__request(ops=[
  {"op": "flow.submit",
   "args": {
     "query": ["claude"],
     "prompt": "Create at most four initial assignments to analyze an API migration, propose a plan, and independently verify it. Preserve remaining capacity for follow-up work discovered by the workers.",
     "max_ops": 6,
     "reactive": "all",
     "with_synthesis": true,
     "dry_run": true
   },
   "schema_fingerprint": "<fingerprint from help=\"flow.submit\">"}
])

The dry run is a background job. Read its returned `run_id` with `job.status` and `job.output`. Confirm the planned assignment count leaves headroom, then resubmit the same op without `dry_run`:

mcp__plugin_orchestrate_lion__request(ops=[
  {"op": "flow.submit",
   "args": {
     "query": ["claude"],
     "prompt": "Create at most four initial assignments to analyze an API migration, propose a plan, and independently verify it. Preserve remaining capacity for follow-up work discovered by the workers.",
     "max_ops": 6,
     "reactive": "all",
     "with_synthesis": true
   },
   "schema_fingerprint": "<fingerprint from help=\"flow.submit\">"}
])

The second response returns a new `run_id`, not the final answer. Poll it and retrieve output:

mcp__plugin_orchestrate_lion__request(ops=[
  {"op": "job.status", "args": {"run_id": "<run_id>"}}
])
mcp__plugin_orchestrate_lion__request(ops=[
  {"op": "job.output", "args": {"run_id": "<run_id>"}}
])

`job.list` finds recent runs, and `job.kill` stops one by `run_id`.

Reactive budget

For a nonzero `max_ops`, reactive spawn capacity is `max_ops - initial assignment count`. The planner and reactive spawns share that one budget; there is no separate reservation parameter. If the dry-run plan already contains `max_ops` assignments, follow-ups have zero capacity. Tighten the requested initial plan or raise `max_ops` before execution.

With `max_ops: 0`, the CLI leaves the initial plan uncapped and applies its separate default reactive-spawn ceiling. Prefer an explicit total when cost needs to be predictable.

Multiple outer MCP ops run in order, but a failure returns `ok=false` without stopping its siblings. Check every op's `ok` field.

Checkout-local alternative

Inside a lionagi checkout with `li` on `PATH`:

li o flow claude "Create at most four initial assignments to analyze an API migration." \
  --max-ops 6 --reactive all --with-synthesis --dry-run
Read more
@ohdearquant
Ships withlionagi

lionagi is a governed multi-agent orchestration framework. Build agent workflows in Python with typed, inspectable state, or run them straight from the terminal with the li CLI: single agents, parallel fan-outs, and DAG flows where an orchestrator plans

41312 skills2 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
413
Star history of ohdearquant/lionagi on GitHub, a chart by star-history.com

Other skills on lionagi.

debug

debug

Systematic debug workflow: research → orchestrate agents → escalate. Suggest when: stuck after 2-3 attempts, unfamiliar tooling,…

@ohdearquant@ohdearquantInstall Skill
fanout

fanout

Fan one task out to multiple independent lionagi workers through `fanout.submit`, optionally synthesizing their answers. Use when…

@ohdearquant@ohdearquantInstall Skill
orchestrate

orchestrate

Plan and execute multi-agent workflows through lionagi's orchestration MCP tool: flow.submit (DAG pipelines), fanout.submit…

@ohdearquant@ohdearquantInstall Skill
play

play

Run an existing lionagi playbook through the orchestration MCP server and retrieve its background result. Use when a saved…

@ohdearquant@ohdearquantInstall Skill
playbook

playbook

Author lionagi playbooks — reusable YAML workflow templates that define parametric agent tasks. Playbooks live at…

@ohdearquant@ohdearquantInstall Skill
pr-review

pr-review

Multi-perspective PR review procedure. Plan a minimal DAG of specialists scoped to what the PR actually touches, synthesize with…

@ohdearquant@ohdearquantInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about flow.

Which coding agents can use flow?
flow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.