Review a change against what it is for, this repository's rules and the kinds of defect it has shipped before, and end with PASS or BLOCK. Triggers: 'pr-review', 'PR をレビュー', 'コードレビュー', 'レビューして'; after `/subtract` on every PR to `develop`.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pr Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aitit-inc-pr-review)
---
name: pr-review
description: "Review a change against what it is for, this repository's rules and the kinds of defect it has shipped before, and end with PASS or BLOCK. Triggers: 'pr-review', 'PR をレビュー', 'コードレビュー', 'レビューして'; after `/subtract` on every PR to `develop`."
---
# PR review
The goal is that a PR which passes can be merged without a person reading the diff. A run ends with one verdict for one commit: PASS, or BLOCK with findings the author can act on. The bar: no finding is a guess, and no defect of a kind this repository has shipped before gets through unasked.
The review holds the change against the standard its author reads: `CLAUDE.md`, the rules in `.claude/rules/` and `.github/pull_request_template.md`. [viewpoints.md](viewpoints.md) is what a reviewer asks.
## Target
Settle what is reviewed before reading it, and keep it for the whole run.
- Default: the current branch's head against develop (`git fetch origin develop`, then `git diff origin/develop...HEAD`). Commit and push first: the verdict is for that commit.
- `$ARGUMENTS`: a PR number or a commit range replaces it. The working tree must be at that head; make a worktree when it is not.
- Read the PR body and its issue: what the change is for, and what the author says was checked. No PR yet: the issue and the commit messages. When what it is for cannot be told, or the なぜ lacks what the template asks of it, that is completed before reviewing: by the session that wrote the body, or by asking.
- Leave out lock files and `backend/drizzle/meta/`.
## Reviewers
The session that wrote the change does not judge it. Each reviewer is a subagent started with `model: opus` and `effort: high`, which sees none of this conversation. Hand it the target, the PR body and issue, [viewpoints.md](viewpoints.md) and the shape of a finding. It changes no file.
Whoever cannot start the reviewers does not review in their place: say so and stop.
- **Behaviour**, always one: correctness, verification and the often-missed list. It follows the changed code into its callers and its siblings.
- **Fit**: purpose and scope, design, the rules, text. It reads `CLAUDE.md`, every rule in `.claude/rules/` that covers a file it reviews (its `paths:`; a rule without one covers every change), `e2e/README.md` when `e2e/` changes, and the code those rules name as the model; then the diff.
A diff under about 150 changed lines: one reviewer does both. Any other: one behaviour reviewer and one fit reviewer, started in one message. When the diff is large in more than one area (backend, agent, frontend, plugin), fit splits into parts by area, every changed file in one of them and the smaller areas folded together, at most four reviewers in all. Each fit reviewer then asks design, the rules and text of its part, and the behaviour reviewer, which reads the whole diff, takes purpose and scope too.
## What counts as a finding
- **BLOCK** needs one of:
- a failure: a concrete input or state, the path through the code as `file:line`, and the wrong result;
- a written rule the diff breaks, quoted with its file, whose reason applies to this code;
- the PR's own bar unmet: the diff does not reach 果たしたと言える状態; a changed line serves nothing the PR is for; or the body lacks what the template asks for this change (利用者から見える変化 leaves out a change a user sees, or the evidence the template names for this kind of change is missing or has no result).
- **ASK**: a doubt the code could not settle. One question the author can answer with a fact.
- **OUTSIDE**: a defect in code the diff does not change. It does not block.
Not findings: another design that would also work; a general practice this repository does not itself follow; a way of writing no rule settles, where the existing code is split; a decision the PR body or the issue states, unless it breaks a rule.
Each finding is: its kind, `file:line`, what goes wrong, the evidence, and what closes it. No praise and no summary. A reviewer ends with the files it read, and the ones it left unread and why.
## Verdict
Check each BLOCK yourself by opening the lines it cites. Drop one only by showing its evidence is wrong, with the `file:line` that shows it; what the author meant is not a reason.
- **PASS**: the reviewers read this commit, no BLOCK open, every ASK answered with a fact, CI green on the reviewed commit.
- **BLOCK**: anything else.
Fix, push, run again. The next round goes to the same reviewers where the session can continue them, with the earlier findings: each is closed or still open, and the fix is reviewed like any other change. Three rounds without PASS: stop, and hand the open findings to the person.
## Record
In the PR body under 確認・検証したこと: the commit reviewed, the reviewers started (how many, model, effort), the verdict, each finding in one line with what was done about it, each dropped finding with its reason. Each OUTSIDE finding goes on the issue that covers it, or a new one; a session whose own skill does not let it write that issue puts it in its own record. Merge nothing.
## Upkeep
A defect that reached `develop` or production through a PASS: the PR that fixes it writes what was broken into the rule its author would have read, when no rule says it yet. It joins the often-missed list when it is the second of its kind. An often-missed item whose findings were all dropped over ten PRs: reword it or remove it. A point that belongs to one area goes in that area's rule, never in `viewpoints.md`.