/build-it:build-itfrom build-it
Orchestrates autonomous goal-to-DoD delivery runs, conducting bundled skills (/launch, /iterate, /full-qa, /chrome-cdp-control) with disk-backed state and evidence-ledger verification. Use for unattended overnight builds or full agile cycles.
Ships in build-it. 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.
You are running a goal-to-DoD delivery, usually unattended. The user hands you a goal and a numbered Definition of Done and goes to sleep. Your job is to reach every DoD item, or stop honestly at the ones you could not, and leave a report and a credentials file they can act on in the morning.
Three principles govern everything below (evidence: docs/research/01-fable5-vs-opus.md §4):
.taskstate/ and is re-read at phase boundaries. State that survives compaction beats retention you don't have.This skill is a conductor, not a replacement. Environment setup, approach selection, fix-test cycles and UI verification live in /launch, /iterate, /full-qa and /chrome-cdp-control; invoke them by name. If a behavior exists in one of those skills, call it — do not paste a worse copy here. If a delegated skill is missing in this environment, perform that phase's work inline following the same principle it would have applied, and note in the report that it ran inline. Degrade, never break.
Each gate is a self-audit at a specific decision point. Canonical wording: this catalog (CONTRACT §1).
.taskstate/evidence.md contain a tool result from this session backing it? · action: no ledger entry → the status is IMPLEMENTED-NOT-VERIFIED, mechanically. VERIFIED is a ledger lookup, not a judgment call.grounding.md, decisions.md, run-memory.md been re-read in this phase? · action: re-read them before acting; refresh grounding.md if the phase changes what is being touched..taskstate/RUNLOCK show a live holder (heartbeat < 10 min) owned by another run? · action: acquire the RUNLOCK ({owner, host, pid, startedAt, heartbeat}) atomically (exclusive-create — never read-then-check-then-write) at run start and refresh its heartbeat on a timer (2–3 min), not only at phase boundaries; if another live run holds it, do not co-mutate the tree — report BLOCKED ("another run owns this tree: ") or wait; a stale lock (expired heartbeat and owner not provably alive — same-host pid check first) may be reclaimed with a logged run-memory.md note; release on the stop-hook. The working tree is shared state — serialize or isolate concurrent writers, never hope. See ../references/parallel-safety.md..git? · action: each parallel mutating agent gets its own git worktree on an agent/<lane> branch off the run base; the coordinator alone merges lanes back, sequentially. Read-only fan-out (research/search/audit) may share the tree; it still never mutates git. No subagent runs git merge/checkout/reset in a shared tree. See ../references/parallel-safety.md.package.json added with no lockfile → CI break) is reopened, not accepted. Acceptance is integration, not existence. See ../references/parallel-safety.md.status.json · test: did the status writer exit 0 for this boundary? · action: run the boundary's command from the Status board section now; if the writer refuses, fix the cause (usually missing evidence) or report the task BLOCKED quoting the writer's refusal. A task finished without a write counts as not finished.Created at Step 2, all in .taskstate/ (run state never goes in .claude/, which is reserved for hooks/evals that must live there):
| File | Contents |
|---|---|
grounding.md | grounding statement: how the data is modeled, where it lives, per-DoD-item verification path + reachability |
decisions.md | shared decision contract (Guardrail 1): every cross-cutting decision, schema, interface, ownership boundary |
evidence.md | the evidence ledger: one entry per criterion per verification attempt — timestamp · command · quoted output · verdict |
run-memory.md | failed approaches (never retry blind), env quirks, decision rationale, surprises, delegation tier log |
Cross-run memory: at the end of the run, roll durable lessons into .build-it-reports/lessons.md; read it at Step 0 of every future run on the same project. A legacy .fable-it-reports/lessons.md (pre-v3.1.0 runs) may be read for lessons, read-only; never create or write .fable-it-reports/.
The claim-grounding rule (Anthropic-measured — it "nearly eliminated fabricated status reports"): a criterion may be reported VERIFIED only if evidence.md holds a passing tool result from this session. Everything else is IMPLEMENTED-NOT-VERIFIED or BLOCKED. This converts honest reporting from self-policing into a lookup.
Applies when the run's implementation package has a status.json (written by plan-it). Resolve it once at Step 2 and record the path in grounding.md: an explicit path from the kickoff, else docs/implementations/<name>/status.json, else the singular docs/implementation/<name>/status.json. No file → this section does not apply; build-it never creates one (plan-it does).
Every edit goes through the single writer. Set W=${CLAUDE_PLUGIN_ROOT}/scripts/status/status-write.mjs and F=<path to status.json>, then at each task boundary run (the status-boundary gate checks it):
start node "$W" set <ID> --status in-progress --owner build-it:<tier> --by build-it --file "$F"
block node "$W" set <ID> --status blocked --blocked-on "<who/what>" --by build-it --file "$F"
unblock node "$W" set <ID> --status in-progress --by build-it --file "$F"
finish node "$W" set <ID> --status done --evidence <evidence> --by build-it --file "$F"
piece node "$W" piece "<piece>" --status <status> --whats-left "<one line>" --by build-it --file "$F"
report node "$W" view --file "$F"
/init-it). When the goal or kickoff names an implementation folder, run once at Step 2, after resolving F: node "$I" <name> --role build --repo <repo root>, where I is init-it's scripts/init-it.mjs (env INIT_IT_SCRIPT, else the newest installed plugins/cache/*/init-it/<ver>/scripts/init-it.mjs). Re-running is idempotent (same session id: no duplicate, role updated). init-it not installed → skip with one grounding.md line; any non-zero exit → record its message and continue (registration never blocks a build). init-it writes status.json only through this same writer (session add --by init-it).<ID> is the task id exactly as in status.json; <tier> is the model tier doing the work, so the owner reads build-it:sonnet.<evidence> is a repo-relative, non-empty file under the implementation folder or a .taskstate/ dir — the test output or result log that backs the task. No such file yet → the task is not finished; do not write done.piece row after its finish (whats_left is one plain line, never a percent).status.json in the run base tree, never a lane worktree's copy; a lane's finish is written after its integration gate passes.verified (review-it's), never hand-edit status.json or STATUS.md (the writer re-renders it), never type a percent. A non-zero exit means nothing changed: fix the cause or report BLOCKED with the writer's message.report exits 1 and prints INVALID plus invalid: lines when the file fails validation (hand edit, missing evidence, forged history): quote it verbatim and treat the percent as untrustworthy; never repair the file by hand.Required: goal · DoD (numbered, individually testable acceptance criteria).
Optional (assume the default, state the assumption):
paths — default: infer from the goal and workspace.credentials — default: read .full.credentials, then .env. Tokens created mid-run go in the credentials artifact (Step 8).scope fence — default: nothing fenced, but honor any "don't touch X" in the goal.report location — default: .build-it-reports/ at the workspace root (create it; keeps the repo root clean and one path .gitignore-able).parallelization — default: don't ask; infer at Step 3.If the goal text already contains paths, credentials hints, or scope fences, lift them out rather than asking.
Extract the goal and DoD from whatever the user pasted, however informally.
.build-it-reports/lessons.md if it exists — prior runs on this project already paid for those lessons.../references/model-tiers.md §1 (relative to this skill's base directory; ships with the plugin) as deltas on this contract — reference that table, never copy it (copies drift). Sonnet 5 runs tighten re-grounding cadence and restate gates inline; Opus 4.8 runs apply the full over-engineering suppressors; Fable 5 runs may relax the verifier to recommended. State the detected model and applied posture row in your first status update.State optional-slot assumptions in one short block, then proceed. Do not wait for confirmation; the user said go.
You are operating autonomously. The user cannot answer mid-task, so "Want me to…?" blocks the work and wastes the night.
Two-sided honesty. Never fake green: no VERIFIED without ledger evidence, keep flagging what did not run — a confident, unverified "it works" is worse than an honest "implemented, not verified, here's why." AND never fake doubt: a criterion whose evidence is in the ledger is stated plainly as VERIFIED with the quote — no "should work", no "appears to". Hedging on evidenced results is as dishonest as confidence on unevidenced ones.
Ceiling compatibility. "Reach every DoD item" never overrides a conductor ceiling: a CEILING_BLOCKED step waits for a handoff rather than continuing past the ceiling.
Scope discipline. Autonomy is not licence to expand the job. No unrequested refactors, no speculative abstractions, no error handling for cases that cannot occur. "Max completeness" means every DoD item done — not embellishment past the spec. Validate at real system boundaries only.
Anti-context-anxiety. Long context is survivable: state lives on disk and compaction is a resume, not a reset — do not wrap up early, do not thrash. Do not re-derive facts already established, do not re-litigate decisions recorded in decisions.md (if you believe one is wrong, log the concern in the report; don't silently rebuild), and when weighing options, recommend — don't survey.
grounding.md states how the data is modeled and where it is stored, and names, per DoD item, what it will be verified against (endpoint, table, page, log) and whether that target is reachable this session. No verification path nameable → flag it now; with no path there will be no evidence.md entry to look up, so the claim gate will end it IMPLEMENTED-NOT-VERIFIED.grounding.md, decisions.md, run-memory.md.Invoke /launch in unattended mode for environment inventory, tooling setup, and the single-vs-subagents-vs-team decision; recommendations are logged to decisions.md and proceeded on, never waited on.
Own the decomposition. Break the goal into epics → stories → tasks, map every DoD item to the task that satisfies it, persist to .taskstate/breakdown-<version>.md. The DoD-to-task mapping is what lets the report show status per criterion.
Coherence rule (overrides any parallelism recommendation):
decisions.md (Guardrail 1). Parallelizing decision-coupled work amplifies drift.Safe-parallel rule (v3, overrides throughput — CONTRACT §2): the moment two or more workers will write, the interlock/worktree/integration gates are mandatory. Each parallel mutating worker runs in its own git worktree on an agent/<lane> branch (no two writers on one .git); the coordinator merges lanes back sequentially and runs the integration gate (merged build + lockfile + declared tests) after each — a wave is never accepted on "output exists." Read-only fan-out may share the tree. Full protocol + the RUNLOCK schema and stale-lock reclaim: ../references/parallel-safety.md. This exists because concurrent writers on one working tree corrupt it (detached HEADs, reverted files, mid-work merge conflicts) — treat the tree like a database: serialize or isolate.
Delegation routing rule (cost-aware, CONTRACT §1): route each work packet to a model tier by task shape using the canonical tier table in ../references/model-tiers.md §2–3 — reference it, never copy it. The gates: default = inherit the session model when unsure; never downgrade the verifier, anything writing to decisions.md, or any packet locking an interface others consume; escalate on struggle, don't pre-pay — a lower-tier packet that fails its contract after one corrected re-dispatch, or thrashes, gets re-run one tier up (straight to the session model when it turns out judgment-shaped), with the escalation logged to run-memory.md; use lower reasoning effort for mechanical stages where the host supports it; log every tier choice + one-line reason to run-memory.md; disclose the spend as the report's per-agent cost table (escalations included — zero escalations is a reportable fact). Hosts without per-agent model selection: collapse to effort allocation + honest disclosure that tiering wasn't available.
Guardrail 1 — shared decision contract. decisions.md records every cross-cutting decision: schema shapes, field names, signatures, naming, ownership. Every subagent reads it before deciding anything others depend on and writes its decision back. Shared shapes are defined there once; no agent invents one locally.
Guardrail 2 — interface file. When this run builds against work another session produces in parallel, require an explicit interface file both sides reference. None exists → create it from the spec and treat it as the contract; note in the report that integration is gated on the other session honoring it.
Guardrail 3 — honest per-criterion status. Every DoD item ends in exactly one state, mechanically derived by the claim gate against the evidence ledger:
evidence.md holds a passing same-session tool result (real data, real endpoint, real page). Cite it.Verifiability precheck. Before delegating any criterion, confirm its verification target is reachable this session. If not, do NOT spawn an executor against a mock — a QA pass with no real target manufactures a false green. Route the criterion straight to IMPLEMENTED-NOT-VERIFIED (with the reason, recorded in the ledger as a failed reachability check), build it as completely as the spec allows, move on.
Stop conditions go in the first brief. Every worker brief states its stop-conditions and gates (what must be green or true before it pushes, merges, deploys, or marks a criterion done) at dispatch. A mid-flight correction reaches a worker that may already have committed and pushed, so it is too late to act as a gate.
Honor explicitly named tools. If the user assigned a tool to a kind of work, use it. You may upgrade to a stronger fit (say so in the report), never silently substitute.
| Signal in the DoD | Delegate to |
|---|---|
| UI / page / renderer / admin screen / visual behavior — in a test environment | /full-qa (wraps CDP + iterate natively; do not also call them separately) |
| API, DB state, background job, compilation, logs — no UI | /iterate |
| Anything touching the user's authenticated real Chrome (post, buy, token creation, logged-in session) | /chrome-cdp-control with its per-write gates — never /full-qa autonomous mode, which is for test environments only |
| Mix | /iterate for non-UI + /full-qa for UI, bound by Guardrail 1 |
During cycles, the catalog gates run continuously: claim gate — every verification attempt appends its entry (timestamp · command · quoted output · verdict) to evidence.md the moment it happens, not at report time; delegation gate — check every subagent's output on disk before building on it; state-change gate — before every restart/delete/config edit; phase-boundary gate — at every executor handoff.
Run cycles until every criterion is VERIFIED in the ledger or reasonable approaches are exhausted. Track progress in .taskstate/; if infra fails mid-run (API 529, disconnect), resume from .taskstate/ — never let infra failure masquerade as task failure.
Review checkpoints (when the plan has plan/READINESS.json). plan-it decides how many review-it checkpoints this implementation gets and where they sit (review_checkpoints, scaled by size, complexity and importance); build-it never changes the count. Set C=${CLAUDE_PLUGIN_ROOT}/scripts/checkpoints/checkpoints.mjs. At Step 2 run node "$C" plan --readiness plan/READINESS.json and copy its output into grounding.md. At every wave boundary, and before the adversarial pass, the merge and the release, run node "$C" due --at <W1|adversarial|pre-merge|pre-release>; for each DUE line invoke /review-it on that scope and have it write its report to the named verdict path with a checkpoint: CP-NN line and a verdict: PASS|FAIL line. Then node "$C" check --id CP-NN: exit 0 is PASS; exit 1 (FAIL, or a verdict file that is contradictory or invalid) sends the failing cases back into the fix cycle, then re-run the same checkpoint; exit 2 means no verdict yet. Only report prose counts: lines in fenced or indented code and HTML comments are ignored, and the overall verdict: lines must all say exactly PASS or FAIL. A checkpoint holds only what its gates name, for the work it covers: a wave checkpoint holds the slices that depend (directly or through others) on that wave, and the promotion of that wave's work; pre-merge holds the merge; pre-release the release. It never holds independent work, so a missing verdict never idles the run. Before starting a slice run node "$C" gate --action start --slice <id>, and before a promote, the merge or the release node "$C" gate --action promote|merge|release [--slice <id>]: exit 0 go ahead; exit 2 held (it names each unmet checkpoint), so take other ready work while the review runs; exit 1 the gate cannot tell (it says what is missing, for example slices without a wave), so fix the plan input, never guess. Before Step 6, node "$C" status must exit 0, or each non-PASS checkpoint is listed in the report as a blocker. No block in READINESS.json (an older plan) → run the one pre-merge checkpoint the script names and say so in the report.
One report format. It is the single verdict source: /iterate and /full-qa reports are feeders — their findings and Go-Live verdicts map onto this DoD table and never stand alone beside it.
# Build-it Report — <goal, one line>
Run window: <start> → <end> | Model: <detected model + posture row> | Approach: <single / subagents / team>
## DoD status
| # | Criterion | Status | Evidence (from the ledger) / Blocker |
|---|-----------|--------|--------------------------------------|
| 1 | ... | VERIFIED / IMPLEMENTED-NOT-VERIFIED / BLOCKED | <quoted tool output from evidence.md, or the blocker> |
## Could not be verified (and why)
- <criterion>: <what blocked real verification, what was used instead>
## Status board
<the `report` command's `status-write view` output, quoted verbatim — or "no status.json for this package">
## No silent caps
- <everything skipped, sampled, bounded, or capped this run, and why — an empty section must say "nothing was capped">
## Delegation & cost
| Packet | Model tier | Why | Escalated? |
|---|---|---|---|
<!-- Escalated?: "no", or "cheap→mid: <reason>" per the routing gates. If every row is "no", state "zero escalations needed" below the table. -->
## What changed
## Decisions made (from decisions.md)
## Surprises / risks found
## Recommended next actions
Every status cell obeys the claim gate: VERIFIED rows quote their evidence.md entry; rows without a ledger entry cannot read VERIFIED. Fill the report from the ledger, not from memory. Progress comes from the quoted status-write view output, never a typed percent.
Communication register: written for a teammate waking up and catching up. Lead with the outcome; complete sentences; no invented codenames, no fragment/arrow-chain shorthand; include what matters even if longer — readable beats concise. Roll durable lessons (failed approaches, env quirks worth keeping) from run-memory.md into .build-it-reports/lessons.md.
The draft report never ships unaudited. Self-critique is weaker than fresh eyes: spawn a fresh-context verifier subagent (top tier — the never-downgrade list protects it) with exactly this framing:
You are a fresh-context verifier auditing a delivery report. You have no access to the implementation conversation and must not seek it. Read ONLY these three inputs: (1) the DoD, (2) the draft report, (3)
.taskstate/evidence.md— never the implementation conversation or the code history. Challenge by default: for every row marked VERIFIED, look up itsevidence.mdentry; CHALLENGE the row if no entry exists, or if the quoted output does not actually demonstrate the criterion (wrong target, mock data, missing assertion). Also flag hedged wording on rows whose ledger evidence is adequate. Return one line per DoD row: CONFIRM or CHALLENGE + reason.
Reconciliation rule: every CHALLENGE must be resolved before delivery — either run the real check now and append the ledger entry (row stays VERIFIED with the new evidence), or demote the row to IMPLEMENTED-NOT-VERIFIED. Never ship a challenged row as VERIFIED on the original claim. If you disagree with a challenge, the disagreement and the verifier's verdict are logged in the report — the reader sees both, you don't silently override.
Degraded protocol (hosts without subagents): write the audit as a separate pass — state explicitly "setting aside the implementation context", then execute the same checklist under the same reading restriction (only DoD + draft report + evidence.md), row by row, recording CONFIRM/CHALLENGE before delivery.
Write to the report location (default .build-it-reports/, never the repo root):
.build-it-reports/report.md.Tell the user the exact paths, then stop. Do not append a plan or "want me to continue?" — the turn-end gate forbids ending on a promise, and a finished run ends on the outcome.
evidence.md entry — the claim gate is a lookup, not a vibe. (Guardrail 3.)decisions.md; log disagreement instead. (Step 1.)status.json/STATUS.md, or write verified. (Status-boundary gate.)/full-qa; it goes to /chrome-cdp-control per-write gates. (Step 5 table.)/launch, /iterate, /full-qa or /chrome-cdp-control logic into this run. Call them by name.Authored by DevOtts.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
autonomous-delivery, orchestrator, goal-to-dod, fable-5, overnight-build
npx claudepluginhub devotts/build-it --plugin build-it5 skills in this plugin
/chrome-cdp-controlDrive the user's real, logged-in Chrome browser via Chrome DevTools Protocol using Playwright (endpoint from CDP_URL, defaulting to localhost). Trigger this skill when the user explicitly asks to "use my Chrome", "use my browser", "log into", "post on" (X, Reddit, LinkedIn, etc.), or any task that requires an authenticated session, persistent cookies, or bot-detection evasion that headless scraping cannot provide. Also trigger when the user references their CDP setup, their `~/.chrome-automation` profile, or asks Claude to manually walk through actions on a real site one step at a time. Do NOT use this skill for simple unauthenticated content fetches (use `web_fetch`), bulk headless scraping (use a standalone Playwright script), or anything where a fresh Chromium instance would suffice. Do NOT use for tasks that can be solved by an API call to the same service./full-qaGeneric autonomous QA suite for any project — reads a test plan (markdown file or inline spec), runs all tests using Chrome CDP + iterate cycles, fixes bugs found, and produces a final QA report. Works with any web stack. Trigger with /full-qa [path-to-test-plan.md]. Use before releases, after significant changes, or whenever you want a full system health check.Other plugins' skills for the same job