Skip to content
Back to skills

Code Review

ASecurity

Reviews the changes since a fixed point (commit, branch or merge-base) on two axes, in parallel subagents. Standards: does the code follow this repo's guidelines? Spec: does it do what the issue asked? Use when the user asks to review a branch, a PR or work in progress, or to "review since X".

  • 91,712 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentcode-reviewgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add storybookjs/storybook --skill code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/storybookjs-code-review/badge)](https://www.skillsdirectory.com/skills/storybookjs-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-review
description: >-
  Reviews the changes since a fixed point (commit, branch or merge-base) on two axes, in parallel
  subagents. Standards: does the code follow this repo's guidelines? Spec: does it do what the issue
  asked? Use when the user asks to review a branch, a PR or work in progress, or to "review since X".
metadata:
  internal: true
---

# Code review

Two axes, reported side by side:

- **Standards**: does the change follow this repo's documented rules?
- **Spec**: does the change do what the issue asked, and nothing else?

A change can pass one axis and fail the other. Each axis runs in its own subagent, so one cannot hide the other. Both follow the [review rules](./rules.md).

## Steps

1. **Pin the fixed point.** Use the one the user gave. If there is none, use the merge-base with `origin/next`. Confirm it with `git rev-parse`. Record the diff command (`git diff <fixed-point>...HEAD`) and the commit list (`git log --oneline <fixed-point>..HEAD`). Stop here if the diff is empty.

2. **Find the spec.** In this order: a spec file or the issue the user named; a Linear key (`SB-1234`) or `Closes #N` in the branch name, the commits or the PR body; the PR body itself. Fetch the issue with the Linear or GitHub tools, including its comments: a later comment can overrule the description. Write the spec to a temporary file, with the overruling decisions in a dated section at the top. The subagent cannot read the tracker. If there is no spec, the Spec axis reports "no spec".

3. **List the standards.** [The review rules](./rules.md), `AGENTS.md`, and each guideline in `.agents/guidelines/` that the diff touches (the `AGENTS.md` table says which one owns which topic). Also any `AGENTS.md` or README in a changed package.

4. **Run both subagents in parallel**, in the foreground. Each brief has the diff command, the commit list, and the section "Edge cases and guards" from [the review rules](./rules.md), pasted in full.
   - **Standards brief:** the list from step 3. "For each place where the diff breaks a documented rule, cite the file and the rule, and quote the hunk. Mark each finding as a hard break or a judgement call. Skip what lint, format or type checks already enforce. At most 400 words."
   - **Spec brief:** the spec file. "Report: (a) what the spec asks for that is missing or partial; (b) behaviour in the diff the spec did not ask for; (c) what looks implemented but wrong. Quote the spec line for each finding. At most 400 words."

5. **Report.** Show the two reports under `## Standards` and `## Spec`. Keep the axes apart: do not merge or rank findings across them. End with one line per axis: the number of findings and the worst one.

Done when both axes have reported, or the Spec axis has reported "no spec".

When the user asks you to fix the findings, judge each one with the whole repo in view: fix the valid ones, and say why you leave the others.

Files in this skill

  • SKILL.md2.9 KB
  • rules.md6.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.