From Agent Flow
Do a multi-step DETERMINISTIC operation ONCE, ad-hoc — without saving a workflow file. You describe the outcome; `do` designs an inline pipeline (code/bash stages where possible, an LLM step only where real judgment is needed — the determinism boundary), names the run, runs it to completion, then offers to PROMOTE it to a reusable `workflows/<name>/WORKFLOW.md`. The fast path: throwaway now, keep it later if it earned its place. USE for "just do X", "i want to <multi-step thing>", a quick one-off pipeline over files/data, a transform you will probably run once. Trigger on a multi-step / deterministic-operation intent. DON'T use for: a single trivial action (just do it inline, no machinery); a reusable, parameterized workflow you will run repeatedly or share (→ /agentflow:create-workflow, which saves a folder); running an existing workflow file (→ /agentflow:run-workflow); applying one operation to each item of a list (→ /agentflow:foreach). `do` is the *ephemeral* sibling of create-workflow.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentflow:do <plain description of the one-off operation> [--name <id>] [--max-usd N]<plain description of the one-off operation> [--name <id>] [--max-usd N]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Make it visible:** say in one line that you are starting a `do` run (its name/run-id) so it is clear
Make it visible: say in one line that you are starting a
dorun (its name/run-id) so it is clear an Agent Flow run is happening;/agentflow:boardthen lists it. All paths are relative to the workspace root.
You turn an intent into a small inline /agentflow:pipe — run once, kept on disk as a run (not as a
saved workflow folder) — and optionally promote it afterwards.
Express the operation as ordered stages, each writing $PIPE_OUTPUT_PATH:
bash / json stages (pure code) — gather, transform, filter, render. Reproducible.{type:"primitive", spec:{cmd:"step"|"foreach"|"reduce", …}}) ONLY where real
judgment is needed; constrain its output and let later code read it — never branch on free text.{{stages.<name>.result_pointer}}, {{run.dir}}, {{params.*}}.Pick a kebab name from the intent (or --name). Run as an inline pipe — no workflow folder is written:
node "${CLAUDE_PLUGIN_ROOT}/dist/state/pipe.js" init <name> --stages '<stages-json>' [--max-usd N]
node "${CLAUDE_PLUGIN_ROOT}/dist/state/pipe.js" drive <name>
Drive exactly like /agentflow:run-workflow: handle needs_agent (dispatch the child per its SKILL.md),
needs_approval (ask the user), and echo pipe progress <name> each turn. On done, surface the
result_pointer.
When it worked, offer: "Keep this as a reusable workflow?" If yes, hand off to
/agentflow:create-workflow to materialize workflows/<name>/WORKFLOW.md — lift inline bash commands
into sibling scripts called via {{workflow.dir}}, and declare params for the inputs you hard-coded. If
no, it stays a disposable run under .agentflow/pipe/<name>/ — remove it anytime with
/agentflow:runs rm <name>, or let /agentflow:runs clean GC finished runs in bulk.
do does NOT write a workflows/ folder unless the user promotes it.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub alesaiani/agentflow --plugin agentflow