Performs a rigorous internal production-readiness review before merge, gathering PR context, diff, checks, and surrounding code to produce a structured handoff for subsequent external roles.
Ships in afk-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.
None: SKILL.md is the whole skill.
Read AFK environment before resolving configuration, local state or bundled helper paths. Before review or a review-driven edit, read and apply review convergence. Reuse only the same installed revision already read and still in context; otherwise reread it.
The final internal review before merge — a rigorous, high-stakes read whose job is to protect production. It runs before the ordered external roles: internal review first, outer through any later configured roles afterward. Use the strongest available reasoning model; if the session runs a lighter one, flag it before proceeding. If no PR or branch is given, ask for one.
This review is not the last gate, so its routine output is a cheap, structured handoff the fixing agent and ordered external roles can act on — not a long report. The long report is written only at the very end (see Output).
Before returning a result, read stage output; before a run handoff or resume, read continuity. Standalone review ends at its verdict. A nested review returns that verdict and evidence to the driver for finding triage and the ordered external roles; it does not complete the run. An outstanding result names unresolved findings or unavailable prerequisites. The final-report conditions below remain separate from this stage's verdict.
Collect every signal before forming an opinion: PR metadata and linked issue/spec and its frozen issue contract; the full diff; commit history; the checks the forge reports for the revision; the surrounding code of changed functions (not only the diff lines); existing tests and coverage; new dependencies; config, migrations, and flags; recent related merges.
With remote-ci: off, omit the forge check read and review the local branch;
the driver owns the local completion endpoint. A Draft-stage skip does not
prevent review and supplies no CI approval.
Checks before depth: a failing required check means the diff will change — send the branch back to fix it rather than reading it deeply, unless the operator asks to review-with-caveat. A check still unfinished, none reported, or no answer at all is not that: review now and note what the reading said. Which readings permit ready is the driver's (Remote checks, read before interpreting check evidence), never this review's.
For the initial review, evaluate every dimension. Subsequent review checks accepted findings, the intervening diff, and affected regression paths. Broader investigation requires specific evidence; new in-scope blockers remain reportable. Apply review convergence for the issue-wide allowance; no extra clean-only sweep is required.
Initial dimensions:
.afk/config.md.Trust the revision's passing checks for what they cover; do not re-run the full suite. Run a targeted test only when a specific concern from step 2 warrants a live check (an untested logic path, a data/security concern, a new integration). If a concern needs no live check, say so.
A terse, structured block, optimized for the fixing agent and external roles — no prose essay, no full checklist dump:
decision: APPROVE | APPROVE-WITH-COMMENTS | BLOCK
blockers:
- id — file:line — contract/invariant — reachable evidence — consequence — minimal causal fix
risks:
- id — P2 — file:line — demonstrated structural risk — operator merge decision pending
suggestions:
- file:line — improvement
verify: targeted tests run and results, or "none needed"
Hand this back to be fixed; re-review after fixes. Never emit APPROVE while a
blocker is open. A reported concern begins UNTRIAGED; admit it as a blocker only
after every blocker field above is demonstrated. Otherwise classify it P2,
minor, or out-of-scope without changing scope. Put a demonstrated structural P2
under risks so it cannot disappear into suggestions; minor and out-of-scope
items go under suggestions. Apply the common minimal-fix boundary
before any review-driven edit.
Complete validation included in the current cycle. Exhaustion leaves unresolved
repairs OUTSTANDING and does not authorize another automatic content pass.
Once this review has no open blockers and all configured external roles have
returned clean on the same HEAD and merge-base, and the final full suite is
green, write the full human report: summary, decision and rationale, everything
reviewed, residual risk, and the production-readiness checklist.
merge-when-green / merge-to-unblock in
.afk/config.md): write the final report into the run's own directory, as
.afk/runs/<run-id>/PR#<n>-<title>.md — a report belongs to the run that
produced it, so it is never written to a path another run also owns. Before saving a report, read continuity
for the shared state location and collision-safe run claim. Use the current
run's <run-id>; outside a run, claim .afk/runs/<YYYY-MM-DD>-pr<n>/ with the
same rules and a ledger.md header for the reviewed PR. Set state: complete
when that standalone review ends. The filename leads with PR#<n>-<title>;
sanitize the title for the filesystem (illegal characters and whitespace
collapsed to -, case preserved, length-capped) and add a numeric suffix only
to avoid clobbering an existing file.leave-open): present the report in the session, and also
save it when the config opts in.file:line; always read surrounding context, not only the diff.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
13 skills in this plugin
/afkafk: Part of the afk pipeline. Execute an operator-supplied, pre-reviewed issue/PR scope autonomously through the full pipeline. Requires explicit scope; never pick tracker work. Triggers include "/afk", "AFK mode", "go AFK on …"./afk-agent-relayafk-agent-relay: Part of the afk pipeline. Development-time context compression and raw-request scoping through external models. Triggers include "/afk-agent-relay", "compress context", "relay brief", "scope this"./afk-claude-reviewafk-claude-review: Part of the afk pipeline. Independent read-only Claude review, a fallback role when Claude did not implement the change. Triggers include "/afk-claude-review", "run claude review", "claude gate"./afk-codex-reviewafk-codex-review: Part of the afk pipeline. Independent read-only Codex review, the default outer role when eligible. Triggers include "/afk-codex-review", "run codex review", "codex gate"./afk-deepseek-reviewafk-deepseek-review: Part of the afk pipeline. Independent read-only DeepSeek review, an optional external role. Triggers include "/afk-deepseek-review", "run deepseek review", and "DeepSeek external gate"./afk-gemini-reviewafk-gemini-review: Part of the afk pipeline. Independent read-only Gemini review, an optional external role. Triggers include "/afk-gemini-review", "run gemini review", and "Gemini external gate".2 plugins ship this exact skill · first indexed Sep 14, 2026
/afk-skills:afk-internal-reviewfrom afk-skills
npx claudepluginhub alvinshenssw/afk --plugin afk-skills