rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Compose installed agent skills into one orchestrated multi-agent run: an agent graph where each node is a sub-agent that loads exactly one skill, edges carry structured data, and stages fan work out, adversarially verify it, and synthesize one deliverable. Claude Code calls the executable form a dynamic workflow; the pattern is Anthropic's orchestrator-workers. Use when a task needs several skills applied in parallel (multi-lens review, multi-angle audit or research, migration sweeps), when the user says graph engineering, agent graph, fan out sub-agents, or orchestrate skills, or when designing any workflow where sub-agents each own one skill. For PR review specifically use panel-review (an instance of this skill); for a single second opinion on finished work use double-check; do not use for tasks one skill handles in one context.
Turn a library of installed skills into a coordinated fleet. One orchestrator (you) designs a graph — nodes, edges, stages — and executes it with sub-agents, where each node is a sub-agent that loads exactly one skill and works a bounded slice of the task through only that skill's lens. The orchestrator never does the fanned-out work itself; it scouts, composes, dispatches, and synthesizes.
Terminology. Claude Code's executable form of this is a dynamic workflow (the Workflow tool: agent(), parallel(), pipeline(), phase()), and the underlying pattern is Anthropic's orchestrator-workers with an evaluator stage. The industry synonym is an agent graph (LangGraph vocabulary: nodes = callable units, edges = data flow). "Graph engineering" is the emerging umbrella term this skill adopts as its name; prefer the precise terms when talking to tools or docs.
Why skills-as-nodes works (verified in this distribution): sub-agents spawned by both the Agent tool and the Workflow tool have the Skill tool and see the full installed-skill roster, so a node prompt can say "load skill X, then do Y" and the skill's full guidance lands in that node's context. Loading a skill also pulls the global CLAUDE.md into the sub-agent, so every node carries the baseline standards alongside its assigned lens. On hosts without a Skill tool, nodes fall back to reading the skill file directly (~/.claude/skills/<name>/SKILL.md, or the project's .claude/skills/ copy).
Use a graph when the task genuinely decomposes into independent skill-shaped responsibilities: reviewing one diff through five architectural lenses, auditing a repo across security/performance/accessibility, researching a question from multiple angles, migrating many call sites. The payoff is parallel wall-clock, isolated contexts that keep each lens sharp, and adversarial verification between stages.
Do NOT build a graph when:
references/topologies.md, Dependent-Write Graphs), don't force it into a fan-out. A fan-out is not a graph; launching N agents at one scope is scatter-gather./panel-review), or a direct request. Say what the graph will roughly cost (N nodes + verification) before launching a large one.One sentence for what the run must produce (a ranked findings report, a migration ledger, a synthesized answer) and one for how the user will judge it done. Every node contract derives from this.
Discover the work-list cheaply before composing the graph: list the changed files, detect the project's traits, enumerate the targets. The orchestrator does this itself with a few tool calls — never spawn a fleet to discover what one git diff shows. The scout output decides which nodes the graph needs (hybrid orchestration: scout inline, then fan out).
Map responsibilities to installed skills, one skill per node. Read references/node-design.md for the node brief template, skill-resolution rules, and output contracts. Cap the roster: prefer 3–6 nodes chosen for relevance over an exhaustive sweep; scale up only when the user asked for thoroughness. Give nodes explicit, non-overlapping boundaries so two nodes never silently duplicate work.
Pick stage patterns from references/topologies.md: fan-out/fan-in, pipeline, adversarial verify, dedup barrier, judge panel, loop-until-dry. The default review/audit shape is scout → fan-out → verify → merge → synthesize. Use a barrier only when a stage genuinely needs all prior results at once (dedup, early-exit); otherwise pipeline so fast nodes flow ahead. When nodes write, type the edges — needs (verified and integrated), informs, excludes — and schedule by frontier: writes serial by default, reads parallel freely.
Every stage returns structured data against a schema — findings with file:line evidence, severities from a fixed taxonomy, verdicts with reasons. The evidence bar and severity vocabulary live in references/node-design.md. Contracts are what make the graph a graph instead of a pile of prose reports.
Set an explicit per-node response limit and aggregate fan-in budget before dispatch: reference large inputs by path, let write nodes leave artifacts in their owned files, and return only the compact evidence needed for synthesis. If the projected fan-in exceeds that budget, split the graph into persisted checkpoints.
Choose each node's capability tier from references/model-policy.md before dispatch. Apply the resolved provider model, effort, and remaining budget where the runtime supports them, and keep a ledger of what the runtime actually applied. Ordinary lenses and verification stay balanced; strong and top-tier require the policy's named gates.
In order of preference — details and templates in references/execution.md:
Run the graph. Then earn the synthesis:
==> for needs, dotted -.-> for informs — and get explicit approval before launching. A reviewable picture beats a cost sentence; re-render at checkpoints as states change.| Reference | Read when... |
|---|---|
references/node-design.md | Writing node briefs — the skill-loading preamble, scope framing, output schemas, evidence bar, severity taxonomy, model/effort choice |
references/model-policy.md | Provider-neutral capability tiers, provider mappings, runtime fallbacks, budget application, and the execution ledger |
references/topologies.md | Choosing stage patterns — fan-out, pipeline vs barrier, adversarial verify, judge panel, loop-until-dry, conflict surfacing, dependent-write graphs (needs/informs/excludes, frontier scheduling) |
references/execution.md | Running the graph — Workflow-tool script authoring, Agent-tool fallback, degraded sequential mode, resume and diagnosis |
MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days