/agent-skills:audit-buildfrom agent-skills
Re-reviews landed tickets in a multi-session build using a fresh context to catch faked checks, cross-ticket duplication, and sole-owner violations. Includes an evaluation mode that estimates defect rates to determine audit frequency.
Ships in agent-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; scripts run unread.
Re-review work that has already landed, using a fresh context and the strongest model you have. The goal is
that an implementer can be cheaper than its reviewer without the build drifting. implement-spec already runs
an in-ticket independent review. This skill is the second, later line of defense: one auditor that sees several
tickets together, sees how they fit together, and is never anchored on what the author concluded.
Measure before you police. How often to audit, and how deep, is an empirical question about a particular implementer on a particular kind of ticket. Run
mode=evaluatefirst (modes/evaluate.md) to estimate defect rates per stratum with honest uncertainty. Set any audit cadence from those numbers, not from intuition, and re-estimate when the implementer, model, harness or ticket mix changes. This skill ships no default cadence and no hooks intoorchestrate-build. It runs when an operator or coordinator invokes it.
It reads the committed build memory defined in skills/build-memory/layout.md: BUILD_INDEX, run ledgers,
PR bodies, DEFERRALS, ADRs, the ledger's OPEN FINDINGS and the manifest. It cites that file and does not
restate it. Its own records go under docs/build/reports/audits/.
git worktree add <tmp> <ref>), and the scratch checkout is removed afterwards. The only build files you
write are this skill's own outputs (§ Outputs).blind=true, implementer identity is withheld as
well. Whether blinding actually held is recorded.confirmed) or judged it plausible with a stated reason. Refuted findings are kept in the JSON
record, which is how auditor precision gets measured, and left out of the report's action list.decompose-spec mode=extend.
The audit recommends; the coordinator dispatches. A blocker recommends pauseRequested: true.memory-root.sh). Run check-build-memory.sh . and record the
result, but don't stop on a red validator: inconsistency is itself an audit finding.scripts/audit-scope.sh --root . <scope> prints one TSV row per in-scope ticket (seq,
ticket, branch, PR, base, landed, harness), plus the previous audit's id and its audited-through ticket.
An empty scope ends the run with a one-line report.orchestrate-build/scripts/ci-boundary.sh --pr <n> --stack --no-wait, or the forge's API). Treat a missing check as missing, never as a pass.max_parallel)Brief each auditor with templates/auditor-brief.md. One ticket per fresh context. If the harness has no
subagents, run each brief as a separate fresh session, and never do it in the coordinating context.
Pass A, blind conformance. Inputs: the ticket contract (including every dated amendment), its named
sources, the diff (git diff <base>..<head>) and the code it touches. For every acceptance criterion:
Look for the failure modes in rubric.md § Defect classes:
Pass B, claims audit. Only now read the run ledger, the PR body, the closeout records and the
implementer's ADRs. Compare every claim (AC status, layer reached, test counts, CI line, deferrals
opened/closed, reviewer findings "fixed") with what Pass A verified. An overclaim is a finding in its own
right (claims class), even when the code is fine.
Pass C, adversarial probes (in the scratch checkout):
verify_cmd.Pass D, cross-ticket (once per audit, after all tickets).
Verification. Brief a separate verifier context per finding (or per batch) with
templates/verifier-brief.md. It gets the finding's claim and reproduction, not the auditor's reasoning. It
reproduces the finding, gives a verdict (confirmed / plausible / refuted), and may adjust the severity
with a reason.
All outputs are appended. Earlier audit records are never edited.
docs/build/reports/audits/<date -u +%F>_<audit-id>.md, from templates/AUDIT_REPORT.md. Its front
matter carries audit-id, mode, scope, audited-through (the last in-scope ticket id), head (the
sha audited), and the auditor and verifier identities. The body holds the verdict per ticket, verified
findings ordered by severity, remediation routes, blast radius, measurements and limitations.scripts/audit-stats.py aggregates across audits, in three files next to the report.
Each has the report's <date -u +%F>_<audit-id> prefix, and every finding's audit_id field equals that
id:
<audit-id>.findings.jsonl: one JSON object per finding, including refuted ones, conforming to
templates/finding.schema.json;<audit-id>.tickets.tsv: one row per audited ticket and round, clean tickets included, because
they are the denominator. Columns: ticket implementer stratum audit_round auditor blind_guess tokens;<audit-id>.mutations.tsv: one row per mutation probe. Columns: ticket site killed (1/0).audit entry at the end of the file:
- <date -u +%F> — <audited-through> audit — scope · tickets n · findings b/M/m/n (confirmed) · routes · report <path> · harness: <auditor>.pauseRequested.Use rubric.md § Severity, so that one audit's "major" means the same as another's. The routes:
| Ticket state | Route |
|---|---|
| PR still open | A bounded repair on the same branch, verified by the coordinator, plus a PHASE LOG repair — close: entry |
| Landed, and the defect is local | A return pass, or a repair PR from a fresh context that names the finding id |
| Landed, and the defect spans tickets or needs a contract change | An insert through decompose-spec mode=extend, with a fresh contract review |
| The defect is in the spec or the plan | Report it to the operator; it may need a spec amendment |
| Mode | File | Produces |
|---|---|---|
audit | modes/audit.md | the report and findings above, for a scope |
evaluate | modes/evaluate.md | a pre-registered evaluation plan, blinded audits of a stratified sample, a duplicate-audit subset for auditor agreement, defect-rate estimates with intervals per stratum, and a recommended audit policy with its re-evaluation trigger |
| Script | Role |
|---|---|
scripts/audit-scope.sh | Resolves the ticket set from BUILD_INDEX and the previous audit record; prints TSV |
scripts/audit-stats.py | Aggregates an audits directory (findings, tickets and mutations files): confirmed findings per ticket by stratum, Wilson 95% intervals for "ticket has a confirmed major+ defect", auditor precision, mutation kill rate, and Cohen's kappa on duplicate audits |
orchestrate-build. Any schedule is the operator's, ideally
derived from mode=evaluate.README.md (opens in a new tab)modes/audit.md (opens in a new tab)modes/evaluate.md (opens in a new tab)rubric.md (opens in a new tab)scripts/audit-scope.sh (opens in a new tab)scripts/audit-stats.py (opens in a new tab)templates/AUDIT_REPORT.md (opens in a new tab)templates/EVALUATION_PLAN.md (opens in a new tab)templates/auditor-brief.md (opens in a new tab)templates/finding.schema.json (opens in a new tab)templates/verifier-brief.md (opens in a new tab)tests/run-tests.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (stevevitali/agent-skills) — no native marketplace selected
npx claudepluginhub p/stevevitali-agent-skills12 skills in this plugin
/address-pr-commentsWork through unresolved review comments on your PR as the author: triage every thread, implement fixes where the reviewer is right, push back with rationale where they aren't, answer questions, commit + push, and reply to every thread with what happened. Use when asked to address, respond to, or resolve PR review feedback./agent-docsCreate or converge agent documentation (AGENTS.md hierarchy) for a codebase — bootstrap mode generates docs from scratch, refresh mode detects and fixes drift/build-memoryOwns the build-memory contract that the multi-session build skills share: the committed layout under docs/build/, docs/tickets/ and docs/adr/, the templates, the validator, and legacy-scratch migration. Use it to initialise the layout in a repo (init), validate it (check), migrate a legacy gitignored scratch dir into the committed tree (migrate), or regenerate the ADR index (adr-index). Other skills cite skills/build-memory/layout.md rather than restating the layout./decompose-specTurn one large spec into an optimally-partitioned, dependency-ordered ticket plan — the fewest self-contained tickets that each fit one fresh-context implementation run — and seed a durable build ledger plus per-ticket contract files and a manifest runbook (relocatable into the repo tree via tickets_dir). The planning half of a multi-session build; pairs with orchestrate-build./implement-specSpec-driven, autonomous end-to-end: branch → plan + test matrix → implement (tests alongside) → self-review → gap-analysis vs spec → close gaps → rigorous downstream verification → PR + evidence report/orchestrate-buildDrive a decomposed spec to completion across fresh contexts: SETUP a dedicated worktree, run each ticket end-to-end through implement-spec in a fresh context, update the durable ledger, report progress, pause for intervention at ticket boundaries, and finish with a whole-build capstone verification. The execution half of a multi-session build; pairs with decompose-spec.Other plugins' skills for the same job