Load when asked to review a diff, a branch or a PR, before your own work is human-review-ready (a PR, a draft too), or when review comments on the user's PR need an answer. Sets how hard to apply the coding skill's rules.
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 Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sherifabdlnaby-review)
---
name: review
description: >
Load when asked to review a diff, a branch or a PR, before your own work is human-review-ready (a PR, a draft too), or when review comments on the user's PR need an answer.
Sets how hard to apply the coding skill's rules.
license: MIT
argument-hint: "[loose|balanced|strict] [PR number or URL]"
metadata:
author: sherifabdlnaby
version: "0.9.1"
---
# review
**Load the coding skill now** if it is not loaded: it holds every rule, and this skill holds none. In the report, a finding cites the ID of the coding rule it breaks (e.g. `M7`) and does not restate
it; a posted comment names the rule in plain words ([Comment shape](#comment-shape)).
Commands in this skill are the usual call, not the tool's surface; on a miss, read `--help` or the current docs.
**Versions.** Checked against gh 2.105.0 on 2026-11-28.
## Use
The ask picks the use; `$ARGUMENTS` may add a level and a PR.
- **Own work** (review my work, coding's `H1`): `strict`. See [Own work](#own-work).
- **Someone else's PR**: `balanced`. Read [`references/others-pr.md`](references/others-pr.md) **before** you act.
- **Replies** (answer the review comments on the user's PR, e.g. for watch-pr): `balanced`. See [Replies](#replies).
Every use ends with a report: read [`references/report.md`](references/report.md) before you write it.
## Every review
Own work and someone else's PR run every step. Replies run only step 5. **Subagents run only when the user asked for this review** (`/review`, or in their own words; a cron or trigger
prompt they wrote counts). When a rule or another skill loads this one (e.g. coding's `H1`), make every step yourself, with no subagent.
1. **Correctness, in a fresh context.** Save the diff to a file and start one subagent with the task and that file. Tell it to focus on correctness: wrong behavior, broken callers, lost
guarantees, each with the input or state that fails. It runs while you do the next steps. Without a subagent, make a separate bug-only pass yourself.
2. **Comments and docs**, unless this session already did them. Run **no-comments** and **no-docs** on the diff under review, at every level. At `strict`, when the user asked for the review,
tell no-comments to run its comment-sicko subagent; otherwise load them anyway, and no-comments does the pass in its own context. A non-author asks both for a report only.
3. **Past the diff.** A deleted line is a Chesterton's fence: name what it guaranteed and where the new code still does. For a changed signature, return shape, or precondition, read its callers.
4. **Tests.** Hold the diff's tests, and the ones it lacks, to coding's Tests rules, and run the tests for the changed area. When it is cheap, break the code a new test covers (flip a condition,
return a constant), run it, and revert at once: a test that still passes is tautological.
5. **Name the failure, then judge.** Check each finding, the subagent's too, against the current tree. Each finding names its failure: the input, state, or next change that breaks. Reproduce it when
cheap; otherwise point to the lines. Drop a finding only on proof (a quoted line, a guard); "unlikely" is not proof. When a coding rule rejects the fix a finding asks for, the finding is an opinion
at most. Then judge it at the level.
## Levels
Every coding rule applies at every level. The **coding** skill marks each rule firm, default, or loose, and its level table sets which breaches each level raises and which block. The levels add up:
- **`loose`**: broken behavior and what the table raises at `loose`, when you are sure.
- **`balanced`**: also likely findings. One finding per pattern, its sites named in the summary ([Comment shape](#comment-shape)).
- **`strict`**: everything the table raises, and your opinions.
A finding is a **breach** (the rule and its cost here) or an **opinion** (no rule covers it; `opinion:`, `strict` only, never blocks). It is **overall** (the approach, the scope, a missing piece) or
**inline**. It is **blocking** as the table says, or when it breaks behavior. A one-way door (a stored or released shape) is a breach for the author, not a question for the user. For firm and default
rules, a skip the author wrote down does not clear a breach; only the approval in coding's "A skip needs" does. (why: an author cannot grade their own skip)
## Own work
Scope: the files you were given, else the branch diff from its merge-base, working tree included. For a PR that is not checked out, check it out as
[`references/others-pr.md`](references/others-pr.md#gather) does.
- **The author fixes, a non-author reports.** You wrote the code: fix each breach. You did not (a subagent, a cron run on someone's branch): report only. The user's ask overrides.
- **Redesign first.** When an overall finding means a different approach, fix no line it would replace, except broken behavior. Present the redesign and wait.
- **Opinions** go to the user to pick.
## Replies
The **git** skill fetches the round and posts. Triage each comment, by merit and cost, as a finding at the level. A bot and a person get the same test.
- **You would raise it**: fix it. A right nit costs less to fix than to argue.
- **You would not**: push back once, with the cost; when it asks to break a coding rule, name the rule. On a loose rule, or on taste no rule covers, follow the reviewer if they insist.
- **"Handle this corner case"**: name the input that reaches it. Reachable: fix it, with a test. Not reachable: push back per `M9`, and offer a follow-up.
- **It asks for a decision** (a design choice, or a skip of a firm rule): the user decides, unless they told you to decide (e.g. watch-pr's `humans`); a skip of a firm rule always goes to the user.
Change no code for it.
## Comment shape
Every comment a review posts (a reply on the user's PR, or a finding on someone else's) uses this shape and the **git** skill's voice:
````markdown
<emoji> **<label>:** <the point in one line: what you did, found, or ask>
**Why:** <one short paragraph: the failure or the cost, and the coding rule in plain words>.
```suggestion
<the code change, when there is one>
```
````
- **Label**: a [Conventional Comments](https://conventionalcomments.org) label with `(blocking)` or `(non-blocking)`, or `opinion` (never blocking). A reply on the user's PR uses `fixed in <sha>`,
`keeping it`, `question`, or `decision needed`.
- **No skill vocabulary.** No rule ID, level (`strict`, `balanced`, `loose`), or skill name: the PR's readers have none of them.
- **One emoji, first**, by outcome: 🔴 blocking, 🟡 non-blocking, 💭 opinion, ❓ question, ✅ fixed, ↩️ keeping it, 🧑⚖️ decision needed.
- **AI disclosure**: load the **ai-disclosure** skill; its line goes first in the summary and under the last line of every other comment.
- **One summary.** The review body (someone else's PR) or one PR-level comment (a round on the user's PR) holds the verdict, the overall findings, and each pattern seen in more than one place, with
its sites listed. A thread on such a site points to the summary in place of its own Why: its URL in a round on the user's PR (post the summary first), "see the review summary" inside one review.
With many sites, comment on the first three; the summary's list covers the rest.
## Attended and unattended
**Unattended**: no one can answer this turn (a cron, a trigger, an afk run, a background watch), or the user handed over the whole task ("get it done", "handle the reviews"). Act where a coding
rule decides; opinions and redesigns stay open, in the final report.
Posting, for someone else's PR and for replies (their fix commits included):
- **Attended: the user vouches first.** Keep the draft. List one line per item that will post, then ask each decision with the platform's question tool, or one "post these?". Push and post after their
answers.
- **Unattended: replies post**, unless the run's ceiling blocks replies (e.g. afk). A review on someone else's PR posts only when the starting prompt says "post"; otherwise it goes to a file, named in
the report.
- **A decision holds the round.** While one thread waits on the user, nothing in that round posts. The report lists the decision and the ready replies.
## Compatibility
Assume everything below is present; do not probe for it.
Needs: `git`; `gh` (authenticated) for a PR; a subagent tool for the correctness pass of a review the user asked for (without one, make the bug-only pass yourself).
Hosts: Claude Code yes. Cursor yes. A sandbox without network: own work only (`gh` cannot reach GitHub).