/staged-agents:staged-agentsfrom staged-agents
Builds reliable multi-agent tasks using a loop→chain→network→graph ladder, starting at the cheapest stage and climbing only when measured failure justifies it.
Ships in staged-agents. 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.
A procedure for running a task at the right level of agentic complexity. Four stages, each adds exactly one capability. The governing rule: never start higher than you must, and only climb when the stage below is failing for a reason you can name and measure.
The four stages and what each externalizes (moves out of a single prompt and into structure):
| Stage | Externalizes | Add it when |
|---|---|---|
| 1 · Loop | revision | one task, judgeable quality |
| 2 · Chain | order | fixed, predictable steps |
| 3 · Network | roles | different roles catch different errors |
| 4 · Graph | shared state / memory | facts must persist across runs |
This is what lets the skill work in any repo. Before running any stage, detect and record:
Cargo.toml → cargo test (or cargo check for fast iteration);
pyproject.toml/setup.py → pytest; package.json → npm test;
go.mod → go test ./.... If none, note "no automated verify."CLAUDE.md / AGENTS.md if present; treat their
constraints as hard rubric items (e.g. output-format invariants)..staged-agents/findings.json at the repo root.State what you found in one line before proceeding.
{
"result": "the actual content",
"evidence": ["test output / file:line / graph edge that grounds it"],
"satisfied": true,
"confidence": 0.0,
"provenance": { "task": "...", "inputs": ["..."], "run_id": "..." }
}
evidence, satisfied, and provenance are mandatory — they are what make
each stage controllable (stopping, gating, tracing) instead of a black box.
Full schema: references/contract.md.
One agent improves its own work until it meets a written rubric.
rubrics/, or write
one first. "Improve this" is not a rubric; name the qualities required and
the defects to hunt. Keep critique and rewrite as separate steps.satisfied == true or 3 iterations, whichever first.Return the contract. Stop here unless the Promotion check says to climb.
Use only when the task splits into clear, fixed, ordered steps.
Use only when a single reviewer demonstrably misses an error class.
correctness, security, project invariants).Use only when facts must persist across runs or be shared by several agents.
supersedes edge, never an overwrite. Every fact carries
provenance (its source).references/graph-schema.md.After finishing a stage, climb exactly one rung only if all three hold:
Otherwise stop. Always report: which stage you ran, the measured failure, and
why you did or didn't climb. Details and worked thresholds:
references/promotion-rules.md.
For large fan-outs (many files / many findings), the Network and Graph stages
can be run as a background Workflow script instead of inline agents, using
the same contract and stages. Keep it for when inline fan-out is too slow;
inline is fine for most tasks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aelhadii/staged-agents --plugin staged-agentsOther plugins' skills for the same job