/agentic-workflow:audit-pr <pr-number> (optional — defaults to the current branch's PR)from agentic-workflow
Audits a full PR against the delivery contract, returning MERGE-READY or evidenced blockers with URLs. Consumes the review-change receipt instead of re-reviewing; posts a SHA-bound comment; never edits or merges.
Ships in agentic-workflow. 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.
Runner commands below are
runner <subcommand> [args…]— the launcher, its order and the pin are owned by references/RUNNER.md: read it before the first command, then keep it for the whole unit — nowhere else spells either.
The manager's "can this ship?" gate. A read-first audit over the entire PR —
its SPEC, all phases, docs, CI status, and review receipt — that returns a single
verdict: merge-ready or a ranked list of blockers. Never edits,
refactors, or merges. The human merges, or an active
advance --fullauto invocation consumes the SHA-bound verdict and performs
its separate fail-closed merge step.
audit-pr does not re-review the diff. It consumes the current SHA-bound
review-change receipt (the REVIEW-PASS comment marker) as the review
evidence, blocks on a missing or stale receipt routed to /review-change
(unless a current repair receipt answers this gate — 03 step 1), and
independently evaluates only the delivery gates below.
Load and verify the canonical Turn contract (11 boxes) before ending every turn; the read-only profile substitutes boxes 1–5 for the repo (audit-pr commits, pushes, and merges nothing — its sanctioned side effect is the SHA-bound comment posted in the additions). Skill-specific additions (the → Next: box is canonical-owned and not restated here):
✓ The review receipt was consumed from one PR snapshot: `headRefOid` + newest
matching `review-change:pass` marker fetched together; absent or any SHA
mismatch → blocker routed to `/review-change`, current → its scope/axes/
acceptance coverage/manual checks acknowledged without re-review; a current
**repair receipt** answers current too (`repairJudge`) — a ceremony/docs-only
fold over an unchanged acceptance blob and a green gate is merge currency,
never a re-review (issue #698 S4/S5)
✓ Gate evidence: `runner gate-receipt verify` answered `current` +
`pass` (missing/stale/invalid → BLOCKER, route `gate-receipt.mjs run`)
✓ Terminal hygiene was read from state, not assumed: tree clean, branch pushed,
PR not a draft (`runner audit-pr-gate hygiene --pr <N> --apply`)
✓ Upstream lineage was re-verified (current plan receipt + parent spec receipt,
digests recomputed), every obligation row is `verified`/`n/a`, and no planning
finding is open — stale or missing lineage is a blocker, never a formality
✓ The verdict block was printed in the fixed format: `VERDICT: MERGE-READY | BLOCKED` with ranked, evidenced blockers
✓ The PR's FULL URL is printed in the verdict header (the user may be juggling
several projects and agents without a CI monitor — the link in the chat is
the contract, never "PR #N" alone)
✓ The verdict receipt was POSTED by `runner audit-pr-gate comment` — the
merge-ready marker on MERGE-READY and the typed `audit-pr:blocked` marker on
BLOCKED (re-reads, exits non-zero unless the newest marker names the head) —
a comment, never a commit-message tag, and never a verdict left receipt-less
✓ Nothing was edited, refactored, or merged; merge authorization is outside
this skill and cannot be inherited from docs or an earlier session
✓ No review pass was composed or reconstructed: a missing/stale receipt with
no current repair receipt (03 step 1) is a blocker, never a prompt to re-run
review axes from this skill
✓ **Every AC links a demonstration artifact (S3, S7).** Read the unit doc's
`## Acceptance criteria` (or `## Specs` S# + `## Acceptance criteria` in
the re-cut shape). For each AC, verify it links a demonstration:
a passing test with output, a UI capture, a reproduced command output.
An AC without a demonstration is a **BLOCKER** — the PR's body must render
it. A PR whose ACs lack demonstrations never reaches the merge gate.
✓ Closure integrity was evaluated and its result stated explicitly: pass /
blocker / n-a (fix-governed PRs are always n-a; never skipped
silently)
✓ Scope integrity (descope) was evaluated and its result stated explicitly:
pass / blocker / n-a (no unit-referencing issues born on the branch → n-a;
never skipped silently)
✓ Architectural-invariant preservation was evaluated and its result stated
explicitly: pass / blocker / n-a (no project document → n-a; never skipped)
Missing reference → STOP. About to end the turn with any box unchecked? The turn is NOT done — complete the missing box first (weak models drop end-of-document duties; this list is first on purpose).
review-change
is clean (its REVIEW-PASS receipt is posted) and all phases are committed.review-change reviews the diff for quality and posts its SHA-bound receipt;
audit-pr consumes that receipt and audits the PR as a unit of delivery — that
everything the SPEC promised is present, traceable, and green. A missing or stale
receipt with no current repair receipt (03 step 1) is a blocker routed back to
/review-change, never re-litigated here.
Cost-scaling invariant (S7). Reviewers dig into code only when evidence is absent or contradicts — so review cost scales with the change, not the project. The non-technical approver (human layer) validates demonstrations; the merge gate (technical layer) validates evidence linkage. Same evidence, two readings.
The whole pull request: the branch vs. the default base, plus its SPEC and planning artifacts, the roadmap entry, the doc map, the PR body, issue links, and CI. Default target is the current branch's PR; accept a PR number to target another.
gh):
runner forge-read pr <N>
gh pr view <N> --json number,url,baseRefName,headRefName,headRefOid,isDraft,mergeable,mergeStateStatus,files,commits,statusCheckRollup,closingIssuesReferences
If no PR number is given, resolve the current branch's PR
(gh pr view --json number,url). If none exists yet, audit the branch vs. the default
base and say "no PR open yet" — the contract still applies.docs/features/<NN>-<slug>/ (feature)
or docs/fix/<n>-<topic>/ (fix) — and its planning artifacts (PLAN.md,
TASKS.md, progress.md, testing.md, known-issues.md, decisions.md) when
present. The SPEC is the source of truth for what "done" means.The review evidence is the SHA-bound REVIEW-PASS receipt review-change posts
on the PR — never a re-review composed here. Fetch headRefOid and the PR's
comments together, then find the newest comment carrying the marker
<!-- review-change:pass sha=<40-hex> contract=v1 -->:
runner forge-read pr <N> --comments
sha equals the head SHA the delivery reports. Acknowledge
its scope/axes, acceptance coverage, invariant result, and manual checks as the
review evidence, then evaluate the delivery gates below./review-change — unless a current fold-findings:repair
receipt satisfies this gate (03 step 1).sha does not equal headRefOid. Before
voiding, apply the scope-aware judge (fix/286, #182 AC 3/9): a receipt that
recorded a scope manifest (scope=<64-hex> in the marker) stays current
when the head delta (receipt sha → head, git diff --name-only) touches only
non-affecting paths — the closed classes (session log docs/LOGS.md, agent
toolstate/memory .engram/, .pi/, .serena/) are owned by
runner scope-manifest; any path matching no named class is affecting.
Run runner review-receipt verify --pr <N> — it computes the delta
locally and answers current (exit 0) or stale (exit 4, naming the
affecting paths). A legacy receipt without a scope attribute, an affecting
delta, or an unresolvable delta voids the receipt → BLOCKER: route to
/review-change for a re-review — unless a current fold-findings:repair
receipt satisfies this gate (03 step 1). Do not use a local git diff to override
the PR-head comparison — the delta check only ever keeps a scoped receipt
current; it never manufactures currency for a scope-less one.Never compose, reconstruct, or "spot-check" the review from the diff to clear a
missing/stale receipt — with no current repair receipt (03 step 1) that is
review-change's turn, and re-litigating axes here is exactly what the receipt
gate removes (AC 13).
The reference allowlist is exactly the six linked paths below. Never invent or
read another references/ path. After discovery and the Step 1 receipt check,
every audit loads and applies exactly these five mandatory resources in order:
docs/workflow/REPOSITORY_STATE.md evidence
rules and Architectural invariants gate.Read portability only when the declared forge or
agent actually lacks a named primitive; otherwise skip it. The project artifact
docs/workflow/REPOSITORY_STATE.md is evidence, not a skill reference. All
resources are one hop from this file. Missing evidence or a missing required
resource is a blocker; never infer a pass.
This skill never merges, including when project docs contain merge: auto,
the user previously approved a merge, or a tool retained an earlier permission.
Those signals cannot change this skill's read-first boundary.
The sole automated merge authority is the AUDIT stage of an actively invoked
advance --continue --fullauto run. Its MERGE-READY comment is evidence,
not permission; the repository wrapper independently verifies that comment,
the forge's current head/default base, green checks, and the merge: fullauto
decision fetched at that head. The wrapper owns fresh sync checks, transient
state, merge execution, cleanup, and the automerge PR comment. A standalone/
manual call to this skill always hands the MERGE-READY URL to the human.
Translate forge commands, never the gate semantics. Use the explicit fallbacks in portability.
execute-phase (all phases done) ─▶ review-change (REVIEW-PASS receipt posted) ─▶ audit-pr ─▶ merge
│
blockers ─┬─ receipt absent/stale ──▶ /review-change ──────┘ (re-review, re-audit — only when no current repair receipt answers the gate, 03 step 1)
├─ in-scope ──▶ execute-phase ────────┘ (fold, re-audit)
├─ out-of-scope ──▶ unit-lane --fix
└─ deferral ──▶ triage-issue
review-change REVIEW-PASS receipt (its scope/axes, acceptance
coverage, invariant result, manual checks) plus the artifacts of unit-lane /
execute-phase (SPEC, phases, docs, Closes #N).audit-docs is the cross-document coherence check; audit-pr is per-PR merge
readiness; product-audit is the measured-trigger, product-wide full sweep./review-change (never re-reviewed here).advance --fullauto AUDIT stage receives the
SHA-bound verdict and owns every later merge check.→ Next: block is printed (merge link → then the next unit via
/unit-lane <unit> or /triage-issue; BLOCKED → the routed fix, then re-audit).references/01_MERGE_GATES.md (opens in a new tab)references/02_CLOSURE_AND_SCOPE_GATES.md (opens in a new tab)references/03_AUDIT_PROCESS.md (opens in a new tab)references/04_VERDICT.md (opens in a new tab)references/05_ROUTING_AND_GUARDRAILS.md (opens in a new tab)references/PORTABILITY.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gtrabanco/agentic-workflow --plugin agentic-workflow33 skills in this plugin
/agentic-workflow-doctorUser-initiated batch ceremony-failure triage: mine this project's own journal and unit docs for its accumulated ceremony failures, apply a fixed discard/report rubric, render one anonymized bundle, and route it upstream to an existing or new agentic-workflow issue — with consent. Read-only; the user starts it. Triggers: "agentic-workflow-doctor", "aw-doctor", "why do my reviews keep blocking", "triage my ceremony failures", "report a workflow bug upstream".
/audit-docsAudit cross-document coherence: docs ↔ READMEs ↔ roadmap ↔ code ↔ fix index ↔ issues. Finds drift — features in docs/ not in the roadmap (or vice versa), fix-index entries already merged/closed, broken documentation-map links, dependency cycles, artifacts in the wrong language, naming-convention violations, project-charter coverage — and reports them ranked by severity, fixing only low-risk items on request. Model-agnostic: the skill inherits whatever model and effort your agent session is already using. Triggers: "check doc consistency", "are the docs in sync", "audit the docs", "doc coherence review", "did the docs drift", "validate the roadmap".
/aw-doctorShort name for /agentic-workflow-doctor: one user-initiated pass over this project's own ceremony-failure record, a fixed discard/report rubric, one anonymized bundle, routed upstream with consent. Triggers: "aw-doctor", "/aw-doctor", "short doctor", "run the doctor".
/batch-schedulerDeterministic batch planner: read the live work graph and emit parallel-execution batches (order-respecting, collision-free) as the fixed `batch-plan@4` machine envelope — which issues can run together now, which are blocked and by what, which unit is really in flight, which pairs would rewrite the same file, which surface each lane occupies, what changed. Triggers: "batch scheduler", "what can run in parallel", "plan the batches", "batch plan".
/discover-repository-stateDiscover repository evidence and write a frozen Normalized Repository State. Produces verified repository evidence and keeps facts, decisions, planned work, documentation, and inference separate. It does not make recommendations or infer implementation from documentation. Triggers: "discover repository state", "normalize repository state", "freeze repository facts".
/execute-phaseStep executor for units whose triage (unit-lane) decided which steps the unit needs. Implements one triaged step (or all remaining steps), with frozen acceptance, step-local gates, commits, red-gate repair, and diff-size guard. BREAKING: replaced PLAN.md/TASKS.md/progress.md/ACCEPTANCE.md with the unit doc's Tasks section, Evidence rows, and Progress log; ACCEPTANCE.md is gone — acceptance criteria live in the unit doc and Evidence rows are the receipts.
Other plugins' skills for the same job