PR: Review (Dry Run) ยท diff
git:20260813.f1ed50f to git:20260813.199d770
4 added, 1 removed. Audit A to A.
---
name: "PR: Review (Dry Run)"
- description: "{{ ๐๐๐ }} Review a pull request"
+ description: "Review a pull request"
when_to_use: "When you want a read-only review of a PR's diff printed to the conversation โ for a posted GitHub review use pr-review, which calls this skill internally."
model: opus
effort: high
+ metadata:
+ glyph: แ
+ family: pr
disable-model-invocation: false # required so pr-review can call it
allowed-tools: ["Bash(git:*)", "Bash(gh:*)", "Read", "Glob", "Grep"]
disallowed-tools: ["Edit", "Write", "NotebookEdit"] # reviews, never fixes
arguments: ["mode", "pr"]
argument-hint: "[loose|strict] [PR number | URL]"
---
# PR Review
Canonical review methodology. Produces structured findings only; **never posts to GitHub**. `pr-review` loads this skill and handles posting โ keep all methodology here to avoid divergence.
```xml
<pull-request-review>
<task>Review the pull request identified within `$ARGUMENTS` (an optional loose/strict mode keyword plus the PR number/URL, in either order) and produce structured findings. Do not post anything to GitHub.</task>
<steps>
<step num="1">Split `$ARGUMENTS` into the mode keyword (`loose` or `strict`, if present, case-insensitive, order-agnostic; absent means loose) and the PR identifier โ see <verdict/> for the mode rule. Run `gh pr view <identifier>` to get PR title, description, and metadata</step>
<step num="2">Run `gh pr diff <identifier>` to get the full diff โ always PR vs `origin/main`, regardless of the local branch checked out</step>
<step num="3">Research project conventions stored in `CLAUDE.md`, `.claude/**/*` and `docs/*`. Before critiquing implementation, check whether the dev is following established project practice</step>
<step num="4">Classify every finding by <taxonomy/> type and by scope (line / file / cross-file)</step>
<step num="5">Where a line-scoped ๐ด/๐ /๐ก finding has a concrete fix, write it as a committable ```suggestion block per <suggestions/></step>
<step num="6">Write every comment body **and the `summary`** (including the follow-up delta, when in that mode) per the writing-style skill's anti-slop rules (no em dashes, no contrastive couplets, no parade-of-examples, lead with specifics). This isn't just style guidance here โ when this skill's output feeds `pr-review`, its `partition-findings.mjs` hard-fails the post on any em-dash/en-dash in the summary or a comment body. Get it right here, upstream, rather than relying on that gate to catch it</step>
<step num="7">Emit findings using <output/>. This is the full deliverable โ stop here, nothing gets posted</step>
</steps>
<foci>
<focus>Correctness โ will this break anything?</focus>
<focus>Security โ any obvious vulnerabilities?</focus>
<focus>Glaring convention violations</focus>
<focus>Reinforcement โ genuine strengths worth calling out, not token praise</focus>
</foci>
<taxonomy>
<!-- Replaces any older ๐ฃ/๐ด/๐ก/๐ต four-colour key. This is the only taxonomy. -->
<row emoji="๐ด" type="major changes" ceiling="Request Changes">Blocking โ must fix before merge</row>
<row emoji="๐ " type="minor changes" ceiling="Comment (strict) / Approve (loose)">Should fix, won't block. Same ceiling and treatment as nits</row>
<row emoji="๐ก" type="nits" ceiling="Comment (strict) / Approve (loose)">Nice to have</row>
<row emoji="๐ฃ" type="admiration" ceiling="Approve">Accolade โ only when genuinely warranted</row>
</taxonomy>
<matrix>
<!-- Type x Scope -> where the comment anchors + suggestion eligibility -->
<row type="major/minor changes, nits" scope="line" anchor="line highlight (inline diff comment)" suggestion="yes, if a concrete fix exists" />
<row type="major/minor changes, nits" scope="file" anchor="file-level comment" suggestion="no" />
<row type="major/minor changes, nits" scope="cross-file" anchor="top-level review comment" suggestion="no" />
<row type="admiration" scope="line" anchor="file-level comment โ admiration never uses a line highlight, even when the praise is line-scoped" suggestion="no" />
<row type="admiration" scope="file" anchor="file-level comment" suggestion="no" />
<row type="admiration" scope="cross-file" anchor="top-level review comment" suggestion="no" />
</matrix>
<suggestions>
<guide>Emit a ```suggestion block only for line-scoped ๐ด/๐ /๐ก findings with a concrete, single-location fix.</guide>
<guide>Skip suggestions where the fix spans multiple non-contiguous lines, requires judgement calls, or isn't safely committable as-is.</guide>
<guide>Never emit suggestions for admiration โ there's nothing to commit.</guide>
</suggestions>
<verdict>
<guide>Two modes, `loose` and `strict`, either given explicitly anywhere in `$ARGUMENTS` (order-agnostic, case-insensitive). Absent keyword means loose. A mode keyword is never a PR identifier. Any other unrecognised bare word in the mode slot is an error, not a silent fallback.</guide>
<guide>Mode changes the verdict only. Findings, taxonomy, scope classification, suggestion eligibility and comment bodies are identical in both modes; a ๐ is still written and posted as a ๐ .</guide>
<guide>Derive one overall verdict from the highest ceiling present across all findings (highest-ceiling-wins):</guide>
<rule mode="both">Any ๐ด present โ Request Changes</rule>
<rule mode="strict">Else any ๐ or ๐ก present โ Comment</rule>
<rule mode="loose">Else any ๐ or ๐ก present โ Approve (the Comment rung collapses; findings still post as inline comments)</rule>
<rule mode="both">Else only ๐ฃ present (or no findings) โ Approve</rule>
<guide>Loose posts no marker to the PR explaining the collapsed verdict. The finding emoji already carry severity. Report the mode in the terminal output only.</guide>
</verdict>
<guides>
<guide>Keep it concise. Flag only the most important issues โ skip minor style nits unless they're genuinely worth a ๐ก.</guide>
<guide>Before critiquing implementation, check whether the dev is following established project practice.</guide>
<guide>Omit any type that has no entries. Only include ๐ฃ findings if there's something genuinely worth praising โ token praise is worse than none.</guide>
</guides>
<output type="structured">
For each finding:
- `type`: ๐ด | ๐ | ๐ก | ๐ฃ
- `scope`: line | file | cross-file
- `file`: path (omit for cross-file)
- `line` or `range`: omit for file/cross-file scope
- `body`: the comment text (writing-style rules applied)
- `suggestion`: optional ```suggestion block (line-scoped changes/nits only)
Plus:
- `summary`: overall review body (top-level comment content). When run in follow-up mode (see `pr-review`'s `<follow-up-mode/>`), the leading "Since my last review" delta uses only โช fixed / โซ still open / ๐ข new โ never ๐ (renders as a GitHub `:new:` badge) or โ
/โ ๏ธ (superseded, off-palette)
- `verdict`: Request Changes | Comment | Approve, derived per <verdict/>
- `mode`: loose | strict โ which rule set produced the verdict, so the caller doesn't have to re-derive it
</output>
</pull-request-review>
```