/claude-skills:dev-fleetfrom claude-skills
Orchestrates a multi-agent development pipeline (code-builder, fact-verifier, coherence-checker, code-reviewer) with explicit hand-offs and gated stages for non-trivial changes requiring correctness and fact accuracy.
Ships in claude-skills. 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.
This skill tells the main session (the orchestrator — you) how to drive the
development agents as a pipeline. The agents live in agents/; the main session dispatches
each by name via the Agent tool, reads its JSON, and gates on the result.
Two ways to run the pipeline — pick by how much determinism you need:
@agent-… mention.)dev-story Workflow (hands-off, deterministic). For a guaranteed
plan→build→verify→cohere→review→full-suite run, dispatch it via the Workflow tool with the
absolute scriptPath ~/.claude/skills/dev-fleet/dev-story.workflow.js (a relative path
won't resolve from your repo). It moves orchestration into code and hands back a ready-to-merge
branch; it mirrors the two-point fact discipline and gates coherence on change size
automatically (coherence: auto|always|never). See Running for scale.See docs/agent-fleet-architecture.md for the why.
plan & scope ─▶ verify load-bearing facts ─▶ code-builder ─▶ fact-verifier (gate) ─▶ coherence-check (gate, if complex) ─▶ code-reviewer ─▶ full-suite gate ─▶ [you decide] ─▶ commit-pr
(explore · calibrate) (up front) (did it hold up?)
Each agent returns JSON (see its definition). You read that JSON and decide whether to proceed, loop, or stop. You stay in the loop between stages — this is a skill, not an unattended workflow.
Facts get verified at two points — load-bearing facts before the build (stage 1, so the
builder writes against evidence) and the finished change's claims after (stage 3, to catch
drift/assumption/hallucination). Same fact-verifier agent, two jobs (detailed in those stages).
Every gate loops back to code-builder carrying the specific problem — never a vague "try
again". Re-run the gate after the fix (bound the loop to ~2 rounds, then hand the residue to a
human). Do the fix work on the builder's branch and merge once — see Patterns: reconcile in
the worktree.
Resume the same builder — don't spawn a fresh one blind. To continue the original builder in
its worktree, use SendMessage to that agent (it still knows its branch and worktree_path).
A new Agent call starts a fresh agent with no memory of the worktree path — if you must start
fresh (e.g. the original is gone), you MUST pass worktree_path and branch explicitly in the
prompt, or the fix lands in the wrong tree. Reaching for a fresh Agent when you meant to resume
is an easy slip; check which one you're calling. (The dev-story workflow sidesteps this — every
fix stage re-passes the worktree path as data — but the in-the-loop path is on you.)
| Gate result | Loop back to builder with |
|---|---|
fact-verifier REFUTED | the correct value to use |
coherence fail | the specific structural mismatch (+ its loop_back_target) |
code-reviewer blocking | the specific bug + suggested fix |
| full-suite RED | the failing test name(s) |
What does NOT loop back to the builder:
unknown from coherence-checker or code-reviewer means it could not check (the plan, the diff
or a cited spec was missing or unreadable). The builder cannot fix a missing input: supply it and
re-run the checker. An unknown is never a pass.dev-story does
this for you and reports a suite it could not run as INFRA, distinct from RED.For anything beyond a trivial edit, agree the approach before dispatching a builder — but scoping is more than writing a brief. It's where you explore the real code/data, calibrate any rule the change depends on, and surface the facts it will rest on. A builder with a fuzzy brief produces fuzzy code. The plan is the pipeline's weakest link — a gap written into the plan survives every gate that isn't looking for it. Four disciplines keep the plan honest:
<file:line>", not just
describe the goal. The builder copies a real example, not a remembered one.schema_postgres.sql") write the matching positive for every parallel case ("DO add RLS + GRANT
to the other two schemas, mirroring entities/memory_entities"). A negative-only requirement
tells the builder what to skip and nothing about what to do — it implements only what's asked and
the gap ships. This is the recurring plan failure; treat a lone "do NOT" as unfinished.When the change's correctness rests on external facts you don't already hold, gather and verify
them before the builder starts; it should write against verified facts, not offline guesses it
can't check. Dispatch fact-verifier on the load-bearing facts from stage 0, using its sources —
MS Learn / official docs, source-snapshot, c7search/Context7, schema dumps.
deviations/open_questions will surface a gap
faster. Fire it when a real external claim is load-bearing, not reflexively.Dispatch with: the agreed plan, the target files/area, the verified facts from stage 1, and a calibrated predicate if a gate is involved. Tell it to work in a worktree/branch.
missing_facts, do not push it to guess. Resolve them with the stage-1 tools,
then re-dispatch with the facts filled in.open_questions that change scope, decide before continuing.Now verify the claims the finished change asserts or depends on — the drift check: did the builder assume, invent, or hallucinate a value/API/behaviour along the way? Run it on config values, "library X supports Y", resource IDs, version constraints, "the spec says Z".
REFUTED, fix the code/claim (loop back to builder) before
proceeding. If UNVERIFIABLE, run the returned lookup_command (or have the caller run it) and
re-verify — never commit on an unresolved fact.Before any review-side agent is dispatched, confirm the thing they are meant to read actually
resolves: the branch or ref exists (git rev-parse), and the diff against it is non-empty.
A bad ref or an empty diff should fail here, in one cheap command, not inside two dispatched agents that each burn a cold cache to discover there is nothing to look at and then report confidently on nothing. Same failure shape as an ablation arm whose build silently no-ops: the expensive thing runs, returns clean, and the cleanliness means nothing.
Runs after fact-verifier (so refuted assumptions are known) and before code-reviewer (a cheaper structural pass than line-level review). It checks whether the implementation that exists structurally matches the plan, the spec it cites, and the verified facts — a different lens from the reviewer's line-level correctness. Its five checks:
(encode,decode)/(write,read)/(export,import) pair has a
decode(encode(x)) == x test with no normalization tricks (.rstrip()/.lower()/set()/
sorted() that paper over the real delta).applies_to, not just the one the story named. A pattern present on the exception but
absent on a parallel case (RLS+GRANT on one new table but not its siblings) is a coherence fail.
This is the automated form of the "verify new tables match the last 3 tables added" self-review.Dispatch with the plan (incl. out_of_scope and patterns_to_mirror), the fact verdicts
(so it can confirm the code used corrected values, not refuted ones), and the branch/diff.
files_changed > 5, commits > 3, or a multi-part
plan. A one-file, one-commit change doesn't earn the stage; skip it — unless the plan has a
patterns_to_mirror entry, which pulls coherence in regardless of size, because its failure
mode (pattern on the exception but not its siblings) is exactly a small, low-file-count change.
(The dev-story workflow gates this automatically — coherence: auto|always|never, plus an
auto-on when a pattern is present.)verdict: fail → loop back to code-builder with the structural mismatch, then
re-run. Advisory like the reviewer — you weigh it; a deliberate out_of_scope deferral is never
a coherence failure.Dispatch on the builder's branch/diff. Read the findings:
blocking / needs-rework → loop back to code-builder with the specific findings.ship-with-fixes → apply the minor fixes (small enough to do inline, or another
builder pass) then continue.blocking finding either.coherence-checker and code-reviewer answer different questions — "does this match what was asked for?" and "is this correct?" — and a change can pass one and fail the other. Code that follows every convention while implementing the wrong thing passes review and fails coherence. Code that does exactly what the spec asked while breaking a contract does the reverse.
So report them separately and do not rerank across them. Keep the two lists under their own headings, and do not merge into one severity-ordered list or pick a single "worst finding" overall — name the worst finding within each. Merging is what lets one axis mask the other, which is the whole reason the pipeline runs two gates instead of one.
Within an axis, rank freely. Across axes, never.
code-builder bounds its own test runs (targeted + the relevant module once) to avoid
minutes-long full-suite runs that risk a dropped session, and reports
tests.full_suite_command. Running the whole suite once is your job, not the builder's —
run it before landing and require green. (The dev-story workflow does this as an explicit
phase.) Never merge on an unrun or red suite.
When green and reviewed, hand to commit-pr for the commit/PR message (it reads the
commit-style playbook). Landing (push/merge/PR open) is a human decision — confirm
before pushing, per the global git rules. Never auto-push from the pipeline.
| Need | Agent |
|---|---|
| Write/modify code or tests | code-builder |
| "Is this fact/version/ID/claim true?" | fact-verifier |
| "Does the impl structurally match the plan/spec/verified facts?" | coherence-checker |
| "Is this change correct / safe to land?" | code-reviewer |
| Commit or PR/MR message | commit-pr |
| Security-focused pass | /security-review |
| Design/architecture trade-offs | architecture agent (e.g. azure-architect) |
Agents run in isolated context windows — they see only the prompt you pass.
Every dispatch states four things: the objective (what done looks like), the output format (the agent's JSON contract, or the schema), the tools and sources to use, and the boundaries (what is out of scope, and what it must not do). A brief missing one of these is how an agent duplicates another's work or wanders. (Anthropic, "How we built our multi-agent research system", 2025-06-13: each subagent needs "an objective, an output format, guidance on the tools and sources to use, and clear task boundaries".) Then:
files_changed into the reviewer; a verifier's correct_value into the builder).PreToolUse hook that blocks git push, gh pr create, gh pr merge and mutating
gh api calls. (disallowedTools cannot do this: per Anthropic's sub-agents docs, a specifier
such as Bash(git push *) "still removes the whole tool".)Infrastructure changes are high-blast-radius and often irreversible, so when the fleet generates IaC (Terraform/OpenTofu/Terragrunt) the bar is higher than for app code. The pattern the field has converged on — "through IaC, not instead of it" — is that the agent produces reviewable IaC, never direct cloud changes. (Hard-won dogfooding a graph→IaC generator: the model is the contract; the gates are the moat.)
apply/destroy or calls cloud
APIs directly against real environments. It emits IaC + a plan for a human/pipeline to apply.plan a human or
the pipeline reviews; the pipeline is the only path to prod. (The same rule terragrunt-skill
states for human authors binds doubly for agents.)plan shows no
unintended changes (no create/destroy/replace, no state-key churn).Depth beyond the core stages, from real runs.
When the change needs an artifact the offline builder can't produce (a fetched snapshot, a
registry baseline, anything needing network/creds): the builder writes the code + a small
committed fixture + an integration test guarded by skipif(not REAL_ARTIFACT.exists()) and
verifies against the fixture; the orchestrator generates the real artifact online (which
activates the guarded test), then runs the gate + full suite. Make the generator fail loudly
(non-zero exit) on partial output so a half-built oracle can't be committed silently.
If the reviewer's findings (or a calibration pass) mean more work, do it on the builder's
branch (re-dispatch via SendMessage, or edit in the worktree) and merge only when clean —
one branch, one merge, one history.
For a batch (backlog, migration), don't use this interactive pipeline — use a Workflow. The
dev-story workflow is the per-item building block: run it solo, or from a fan-out that
respects task dependencies, gates risky items, and sequences shared-file tasks (they can't run
in parallel worktrees). This skill is the in-the-loop, one-change path.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-orchestration, pipeline, code-review, fact-verification
npx claudepluginhub kevin-burns/claude-skills --plugin claude-skills32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work./business-planBuild an honest, investor-credible business plan from a founder's idea: full plan, one-page summary and a short investor pitch, as editable Markdown. Use to plan, pitch or pressure-test a venture: "write a business plan for my idea", "is this worth building", size a market, competitor teardown, go-to-market, 3-year financials, "should I raise". Cites sources, computes from the user's assumptions, never invents a number, and ends with a go / no-go / reshape verdict./c7searchLook up current, version-correct documentation and code examples for any library, framework or API through Context7 (the `c7search` CLI) instead of answering from memory. Use whenever the user asks how to use a library, wants a current code example, asks for the current or latest API or signature, or the answer may have changed since the training cutoff, even if they never name Context7./clear-and-humanWrite, review or rewrite prose so it reads like a specific human wrote it, not an AI: docs, READMEs, runbooks, ADRs, PR and commit messages, blog and LinkedIn posts, emails, Slack, video scripts. Use to humanize or de-slop AI text, check whether a draft "sounds like AI", tighten it, or match the user's voice. Neutral and factual; never invents specifics. Persuasive marketing copy is hook-and-human; a CV or LinkedIn profile is cv-and-human./convert-to-webpConvert images (PNG, JPG, etc.) to WebP format. Use when saving screenshots or images for web projects, Hugo sites, or any context where WebP is preferred.Other plugins' skills for the same job