No slash command · from Agent Flow
Orchestrates a 6-stage pipeline to audit code across a folder, repo, or glob. Discovers files, reviews each with LLM caching, partitions by component, and produces an executive digest with hotspots and recurring patterns.
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.
Read when SKILL.md points to them.
Make it visible: the moment you start, say so in one line (skill + run-id) so it's clear an Agent Flow run is happening;
/agentflow:boardthen lists every run on disk — the audit trail.
You are the orchestrator of a /agentflow:audit recipe. Your job is to construct a 6-stage pipeline.json, hand it to /agentflow:pipe, and let the framework drive execution. The recipe itself adds no new primitives.
Read ${CLAUDE_PLUGIN_ROOT}/skills/audit/defaults.md. Apply override priority CLI > defaults.
Required: --target <path>. If missing → ask via AskUserQuestion or abort with a clear message.
Manifest hash (forces a new run when source files change):
<target> matching <file_glob> and not <file_exclude>(rel_path, mtime_ns) — fast, no byte readsmanifest_hash = sha256(joined entries)[:16]Run-id derivation (when --run-id is NOT provided):
audit-<8 char hash> where the hash is sha256(target + glob + review_model + manifest_hash)[:8]Echo the resolved config + run-id in one line. If target has > 200 files, ask for confirmation (cost/duration warning).
Create .agentflow/audit/<run-id>/ (recipe scratch) and .agentflow/pipe/<run-id>/ (pipeline state).
The 6-stage structure is shipped as a self-contained, human-readable workflow-file at
${CLAUDE_PLUGIN_ROOT}/workflows/audit/WORKFLOW.md (this is the canonical, reusable
artifact — you do NOT hand-build a stages.json). Its discover stage runs the sibling
discover.mjs via {{workflow.dir}} (so the whole workflows/audit/ folder is movable);
the script emits a /agentflow:foreach-compatible items array with a per-file content_hash
(for the review --cache).
Per-invocation inputs are declared params, passed to init with --param (no env exports):
target (required) — the directory to auditglob (default **/*) — comma-separated include globs, e.g. **/*.csexclude (default empty) — comma-separated exclude globsTo tune the review/digest models or group depth, copy the whole workflows/audit/ folder into your
project's workflows/ and edit the --model / --method-config values in its WORKFLOW.md; pass that
copy's WORKFLOW.md to --workflow.
No stages.json to build. The workflow-file already wires the 6 stages with declarative
templates ({{stages.<name>.run_id}}, {{stages.<name>.result_pointer}}, {{run.dir}},
{{params.*}}), resolved by /agentflow:pipe at tick time. The stages are: discover (bash) →
review (/agentflow:foreach, --kind code-review --cache) → build-group-input (json) →
partition (/agentflow:group path-prefix) → build-digest-inputs (json) → digest (/agentflow:reduce, markdown).
node "${CLAUDE_PLUGIN_ROOT}/dist/state/pipe.js" init <run-id> \
--workflow "${CLAUDE_PLUGIN_ROOT}/workflows/audit/WORKFLOW.md" \
--param target="<resolved-target-path>" \
[--param glob="**/*.cs"] [--param exclude="<globs>"] \
[--no-stop-on-failure if user passed --keep-going] \
[--force if --run-id was explicitly provided and overrides existing]
/agentflow:pipe init automatically runs schema validation on every primitive stage's init_args (catches typos in flags / bad kind values / missing required configs BEFORE the pipeline starts). A clear error listing surfaces here, not mid-run.
Use pipe drive (NOT manual tick + execute loops) — it auto-runs every bash stage and every deterministic primitive stage (in this recipe: discover, build-group-input, partition, build-digest-inputs) without your involvement, stopping ONLY when an Agent dispatch is needed (review and digest stages).
node "${CLAUDE_PLUGIN_ROOT}/dist/state/pipe.js" drive <run-id>
Output is JSON:
{"action": "needs_agent", "cmd": "foreach", "suggested_child_run_id": "...", "init_args": [...]} — you must init the child + run the dispatch loop + advance, then call drive again.{"action": "done", "result_pointer": "..."} — pipeline complete, surface the digest.{"action": "failed", ...} — surface the error.needs_agent for /agentflow:foreach review:node "${CLAUDE_PLUGIN_ROOT}/dist/state/foreach.js" init <suggested_child_run_id> <init_args...> --forcenode "${CLAUDE_PLUGIN_ROOT}/dist/state/pipe.js" start-primitive-child <run-id> --child-cmd foreach --child-run-id <suggested>/agentflow:foreach SKILL.md Step 4 dispatch loop: status → claim → split into chunks → fan-out parallel Agents in ONE message → complete-batch each result file.node "${CLAUDE_PLUGIN_ROOT}/dist/state/foreach.js" budget-add <enum-run-id> --tokens <total_tokens> --model <review_model> so the budget aggregates correctly.complete-batch reports run_status: done, call drive again — it advances past the review stage, auto-runs the bash bridges + group, and stops at digest.needs_agent for /agentflow:reduce digest:state/reduce.js budget-add for the tokens, then state/reduce.js complete <child-id> --output-path ./<run-id>-audit.md — write the digest to a visible file in the
workspace root (e.g. audit-3f2a-audit.md), not buried under .agentflow/.drive once more → returns done.When drive returns done:
Read the first 30 lines of result_pointer (the digest markdown) and surface inline.node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" budget <run-id> and surface the total cost.node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" tree <run-id> for the full child tree breakdown./agentflow:foreach --kind audit --model opus --items <groups.json filtered>").--run-id (or the same --target if run-id is auto-derived) resumes. With the manifest hash in run-id derivation: a file content change → new run-id → fresh run. Pure resume of a half-completed run uses the SAME run-id../<run-id>-audit.md in the workspace; internal state lives under .agentflow/audit/<run-id>/,
.agentflow/pipe/<run-id>/, .agentflow/foreach/<run-id>-s1-foreach/, .agentflow/group/<run-id>-s3-partition/,
.agentflow/reduce/<run-id>-s5-digest/.--cache on the review stage, files whose content_hash matches a prior cached result are skipped (no agent dispatch). Hits saved under .agentflow/cache/foreach-code-review/./agentflow:pipe init performs. Catches recipe typos before any agent dispatch./agentflow:audit --target examples/fake-repo
Expected on the bundled fake-repo (8 files, 4 components, 6 with intentional bugs):
./<run-id>-audit.md in the workspaceRe-running the same command without changing fake-repo: the same run-id is regenerated, all 8 review items become cache hits → no agent dispatch for review → only the digest runs again (still costs ~$0.10 for the opus call). If you change one file, only that file dispatches a new review agent.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alesaiani/agentflow --plugin agentflowOther plugins' skills for the same job
23 skills in this plugin
/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.