No slash command · from Agent Flow
Manages a lock-free shared work queue for multiple concurrent workers. Items are claimed atomically, safe for parallel draining from many terminals.
Ships in Agent Flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make it visible: say in one line that you're draining a queue (id + how many pending).
A queue lives at .agentflow/queue/<id>/ as files moving through pending/ → claimed/ → done|failed/.
A claim is an atomic rename, so any number of workers can pull from the same queue concurrently and
never get the same item twice. You are one worker; the user may launch several (each its own
terminal/session running this skill on the same <id>).
node "${CLAUDE_PLUGIN_ROOT}/dist/state/queue.js" init <id> \
(--items <file> | --checkbox <md> | --folder <dir> | --source '<json>') --prompt "<operation>" \
[--stop-file <path>] [--max-usd N] [--max-retries N] [--force]
If the queue already exists (another worker created it), skip init and go straight to the drain loop.
node "${CLAUDE_PLUGIN_ROOT}/dist/state/queue.js" claim <id> [--worker <name>]
{item: null} → the queue is empty (or paused: true via stop-file/budget) → stop, report.{item: {...}, task_prompt} → you claimed it; no other worker can.Agent, or do it inline) using task_prompt + the item's data.node "${CLAUDE_PLUGIN_ROOT}/dist/state/queue.js" complete <id> <item-id> [--result '<json>']
# or, on failure:
node "${CLAUDE_PLUGIN_ROOT}/dist/state/queue.js" fail <id> <item-id> --error "…" [--retry]
Record agent token usage with budget-add so a --max-usd cap is real.claim returns {item:null}, the queue is drained (the run is marked done
once pending and claimed both reach 0).The Stop hook auto-resumes this loop across turns (per worker) until the queue is empty.
/agentflow:queue … (same <id>) in each — the rename-claim makes it
safe. /agentflow:board shows the queue; queue status <id> shows pending/claimed/done/failed.queue add <id> --items <file> (or --source) enqueues more at any time; a drained
queue reopens.touch <stop-file> → every worker's next claim returns nothing and the Stop hook won't
resume; remove it to continue. A budget cap (--max-usd) pauses the same way.queue reclaim <id> --older-than <seconds> returns items stuck in claimed/ (older
than N seconds) back to pending/ so another worker can pick them up.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alesaiani/agentflow --plugin agentflow23 skills in this plugin
/auditDeep code-audit recipe: discover files in a target → review each (LLM, cached) → partition by
component → executive digest with hotspots and recurring patterns. A layer-3 recipe over /agentflow:pipe
(the 6-stage pipeline and caching are detailed in the body).
USE when the user asks to "review / audit / find bugs across" a folder, repo, or glob and wants a
persisted, structured report — and the target is large enough (≥ ~10 files) that per-file parallelism
plus a digest beats reading inline.
DON'T use for a few named files (read them inline), exploratory questions ("what does this do?"), or
generic per-item work that isn't a code review (→ /agentflow:foreach).
Not a `/`-menu command — it's the shipped `workflows/audit/` recipe: reach it by asking ("audit src
for bugs"), or run it directly with `/agentflow:run-workflow workflows/audit/WORKFLOW.md`.
/boardWorkspace dashboard: lists every active framework run across all primitives, highlights blockers (stuck items, exhausted auto-continue caps), shows cumulative cost, and suggests the next action. The natural command to run after re-opening Claude Code in a workspace with in-flight runs, or whenever the user wants a one-shot overview of "what's going on".
USE this skill when:
- the user has just (re)opened the workspace and wants to know what is in flight;
- the user says "what's going on", "show me everything", "any active runs", "where are we", "any pipelines running";
- the user wants a one-shot health check + suggested next action.
DON'T use this to inspect a specific run in depth (use `/agentflow:inspect show <id>` or `tree <id>`), or
to modify state (board is read-only). Explicit: `/agentflow:board` or `/agentflow:board --json`.
/checklistRun a **repeatable checklist / to-do list** from a markdown file of `- [ ]` items — execute the open
items, tick them `[x]`, and write the file back. Re-running resumes only the still-open items, so the
file IS the durable, repeatable state.
USE for a generic user to-do that should be runnable again and again: "run my TODO.md", "esegui la
checklist", "go through CHECKLIST.md", "do the open items in release-steps.md". Each `- [ ]` line is
itself the instruction for that item (optionally refined by --prompt).
This is thin sugar over /agentflow:foreach with `--checkbox`: same engine, same durability and
cross-turn resume, friendlier defaults. For "apply one operation to a JSON list / folder / glob" use
/agentflow:foreach directly; to first GENERATE the list use /agentflow:enumerate; for one combined
output use /agentflow:reduce.
/create-workflowAuthor a reusable workflow-file by composing the Agent Flow primitives (enumerate, foreach, group, reduce, iterate) and bash/json stages into a declarative JSON `WorkflowSpec`, then validate it — ready to run with `/agentflow:run-workflow`. The builder counterpart to `/agentflow:run-workflow`.
USE when the user wants to design / create / scaffold a multi-step workflow ("build a workflow that…", "create a pipeline for…", "compose a flow that does X then Y"), especially one to save and reuse.
DO NOT use for a one-off single step — call the primitive directly. `create-workflow` is for durable, reusable multi-stage flows.
/doDo 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.
/enumerateGenerate a list of items from a higher-level spec — the **unfold** (1→N) primitive. Turn an outline into chapters, a feature into tasks, a goal into a checklist. Output is an items.json array that `/agentflow:foreach` (map) or `/agentflow:group` (partition) consume. The complement of `/agentflow:reduce` (N→1).
USE when the user wants to break something down into a list to act on next — "break this outline into
chapters", "list the tasks for this feature", "what are the steps, then do each", "turn this into a
checklist". Producing the list itself takes judgment.
DON'T use when the list already exists (a file, a glob, a markdown checklist) — point /agentflow:foreach at
it directly; or when you need a single synthesized output (→ /agentflow:reduce).
Explicit: `/agentflow:enumerate --prompt "<what to produce>" [--input <source>]`.