/pr-review:pr-review-agent-tacticsfrom pr-review
Use when an AI agent is itself performing a pull request review (not coaching a human, not fetching the PR). Covers agent-specific tactics: context budget, tool escalation triggers, Explore subagent dispatch (single sidecar and parallel fan-out), when to emit "I cannot review this responsibly", auto-memory integration, and agent failure modes (confabulation, tool-call theater, delegated certainty laundering, evidence laundering, patch sycophancy, premature fan-out). Complements reviewing-pull-requests (universal doctrine) and pr-review (operational PR fetch + per-layer comparison).
Ships in pr-review. 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.
Agent-specific tactics that supplement the doctrine in reviewing-pull-requests. Treats context as a scarce resource, treats sub-agents as evidence sources not authorities, names the failure modes that only an LLM-shaped reviewer falls into.
Load this skill when:
pr-review).This skill REQUIRES reviewing-pull-requests to also be loaded. That parent doctrine contains the philosophy of review: triage by blast radius, predict-then-diff, review lenses (data model, boundaries, scope, failure modes, tests), the things to deliberately ignore, comment severity labels, tier-scaled output, premise check, responsible non-review, stop rules, anti-patterns. None of that is restated here. This skill only adds the operational layer for agents on top of that doctrine.
If you find yourself reading this skill without the parent doctrine loaded, stop and load the parent first. The two are designed as one review system, split for legibility: philosophy in one file, agent operations in the other.
I cannot review this responsibly is a legitimate output. Use it when:
Output template:
Cannot review responsibly.
- What I inspected: <files / paths>
- What I could not verify: <specifics>
- Who or what should verify: <person / tool / test plan>
Anti-pattern: emitting LGTM or nits to produce some output when you should be recusing. This is the #1 agent review failure.
Before reading the diff, run the premise check from reviewing-pull-requests: is the goal correct, is this reinventing standard behavior, does a library or existing codebase pattern already solve it. Agents skip this faster than humans because the prompt orients them toward the diff in hand. Do not start lens-by-lens review until the premise survives.
Inherit the tier from the parent doctrine (Trivial / Standard / High-risk). Agent-specific addition: pick the minimum tool shape needed for the tier.
Explore subagent for broad questions.If the tier and the tool shape don't match, you're either over-spending (subagents on a typo PR) or under-spending (3 greps on a migration).
Top-level concern, orthogonal to risk tier. Tier sets effort; budget tracks the resource.
Rules:
Read a >500-line file purely to confirm one symbol or pattern, use grep or an Explore subagent instead.Concrete cue: if you find yourself re-reading the same file in the same review, you've already lost budget discipline.
Trigger-shaped, not threshold-table. Named triggers:
gpt-5.6-luna at low effort.Read the 2-3 hottest. Don't fan out for a question you can answer in 2 reads.Explore subagent first to map it, then targeted Read on what matters.Single quantitative rule: after 2 failed searches for the same hypothesis, the hypothesis is wrong. Stop guessing names. Re-read the diff or escalate to a subagent.
Sidecar verification: a single delegated question (e.g., "verify this migration is reversible by reading the downgrade") is allowed under this section. One subagent, one bounded question, evidence returned. This is not fan-out (see section 7); it's a single tool call to a more capable searcher.
A named pattern for dispatching 2+ independent review questions in parallel, in a single message. Use when the PR is Standard or High-risk AND the review naturally splits into independent axes.
One sub-agent per applicable doctrine lens. The review lenses in reviewing-pull-requests ARE the specialist archetypes. For each lens that applies to this PR, dispatch one sub-agent whose entire job is to apply that lens and nothing else. Codebase-agnostic; the dispatching agent adapts the prompt to whatever stack and patterns are actually in play.
Specialist archetypes mapped to doctrine lenses:
| Specialist | Doctrine lens | Dispatch when |
|---|---|---|
| Data model specialist | Data model and shape | The PR changes persistent state, schemas, types that flow across boundaries, or migrations |
| Boundary specialist | Module boundaries and contracts | The PR changes a public API, exported signature, event schema, or layering |
| Failure mode specialist | Failure modes | The PR adds new code paths, error handling, retry/timeout/fallback logic, or concurrency |
| Tests specialist | Tests | The PR has non-trivial logic, or adds/changes tests, or claims coverage that needs verification |
Dispatch only the specialists whose lens applies to the actual change. A pure refactor doesn't need a data model specialist; a docs-only PR doesn't need any specialists.
Prompt skeleton (the dispatching agent fills the slots):
You are reviewing a pull request through the <LENS> lens only.
PR diff or path: <ref>
Codebase context: <stack, relevant patterns, framework idioms>
Lens questions (from reviewing-pull-requests doctrine):
<one or two lens-specific questions, lifted from the doctrine>
Output:
- Severity-labeled findings with file:line references
- "What I did not verify" line
Constraints: no narrative, no summary of the PR, no praise. If you cannot apply
the lens responsibly, emit "Cannot review responsibly" with what you inspected
and what blocked you.
Rules:
Anti-pattern: "specialist A returned 'looks fine,' therefore the lens is fine." See section 10 (delegated certainty laundering).
This project has an auto-memory system. Use it.
Read before reviewing. Scan auto-memory for related conventions, prior reviews of the touched modules, recurring bug patterns. If a memory changes your verdict, cite it in the comment.
Write after reviewing — surprise findings only. If the review surfaced:
then write a memory entry. Use the project's memory format (slug, type, description, body with [[link]] cross-refs).
Do not write memory for: "this PR did X." PR-specific summaries belong in the PR thread, not in durable memory.
Anti-pattern: re-deriving the same convention every review because you skipped the memory read.
Default: report to the user in conversation. The user posts.
The agent produces the review as a brief in the chat. The user reads it, edits or copies, and decides what (if anything) lands on GitHub. The user is the gate. This is the default for every review regardless of tier.
Never autonomously, even if the verdict is unambiguous:
gh pr review --approve — approval changes merge state. Human call, always.gh pr merge — merging.gh pr close / gh pr reopen — lifecycle changes.Only with explicit per-PR authorization from the user:
gh api repos/.../pulls/<n>/comments or gh pr review --comment.gh pr review --request-changes (blocks merge; still requires the explicit ask).Authorization granted for one PR does NOT carry to the next. If unsure whether you have authorization, you don't. Report to the user and ask.
file:line references, concrete failure mode. (Parent doctrine governs the format and severity labels.)gh pr diff", "read migrations/versions/<file>.py lines 23-47", "subagent A confirmed downgrade is symmetric." Cite, don't summarize.Do not include: a recap of what the PR does, praise, acknowledgment, or your tour of which files you opened.
Named so they can be called out without ambiguity.
Read it, you have not seen it. State that.(diff-bound thinking, LGTM without reading, hallucinated evidence are named in the parent doctrine. Do not restate them here.)
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joaquincampo/my-plugins --plugin pr-review2 skills in this plugin