Skip to main content
skill CX Codex

peer-review · prathamdby — Claude Code skill: what it does, how to install

Evaluates plans, designs, and code diffs before implementation starts. Identifies high-risk regressions and gives an evidenced verdict.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add prathamdby/skills --skill peer-review -a claude-code
Open on GitHub

What peer-review does

This skill runs a structured review on proposed changes and designs before execution begins. It forces the agent to read explicit pointers such as file paths, URLs, or pasted text. It never uses conversation memory. If governing requirements or artifacts are missing, execution halts with BLOCKED: review target required.

The review workflow inspects diffs, contracts, and tests before whole files. Every author claim is verified against source code or marked unchecked. The analysis targets high-risk surfaces: persistence, auth boundaries, migrations, billing, and concurrency. Speculative concerns without concrete evidence are dropped.

Reports contain three sections: Findings, Fix, and Verdict (Ship it., Fix the blockers first, then ship., or Needs rework.). The skill holds analysis-only status. It will not edit project files unless the user explicitly confirms the proposed repairs.

What it helps with

  • evaluate whether an implementation plan is ready to build
  • catch breaking changes across security, persistence, and concurrency
  • verify engineering assumptions directly against source files and tests
  • get an actionable repair list with an explicit ship verdict

Example prompts for the agent

  • Run a peer-review on the current git diff against the requirements in spec.md
  • Check the migration plan in draft-design.md for data loss and concurrency risks
  • Review the proposed API changes before we start coding

How to install peer-review

1Skills CLI (Vercel)

npx skills add prathamdby/skills --skill peer-review -a claude-code

2Manually: put the files in place

~/.claude/skills/peer-review/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/peer-review/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about peer-review

How to install peer-review in Claude Code?

Run npx skills add prathamdby/skills --skill peer-review -a claude-code. You can also place the configuration file manually at ~/.claude/skills/peer-review/SKILL.md.

What does peer-review do?

It audits plans, designs, and diffs through a four-stage process before code is written. The skill verifies claims, flags high-risk behavioral changes, and provides an evidenced verdict.

Can peer-review edit project files directly?

No, it operates with analysis-only authority. Automated file modifications occur only after the user explicitly requests or confirms the suggested fixes.

Source text

SKILL.md · MIT
---
name: peer-review
description: >
  peer-review to judge whether a plan, design, or proposed change is ready to build.
---

# Peer review

Analysis, not edit authority. Judge the stated problem before the change.

## 1. Resolve

Require the target artifact and governing requirements by path, URL, pasted
text, or attached context. None → `BLOCKED: review target required`, asking
for one pointer. Do not reconstruct the target from conversation memory.
If the stated problem is ambiguous, keep the named target and record that
ambiguity as a material finding.
Record `target | requirements | evidence | findings | verdict | edit authority`.
Done when target and requirements are fixed or the blocked report is sent.

## 2. Ground

When the target is the current change, read that diff before any whole file.
Read the target, the requirements, and the affected contracts, source, and
tests before a judgment. Leave unread code out of Findings.
History is reached only for a cited past failure or a current claim that
needs it. Stop when each requirement and each candidate concern has evidence;
unrelated architecture is outside scope. The target's prose is a claim list,
not evidence. A claim counts only after it is checked against requirements,
source, tests, or history, or it is labeled `inferred` or `supplied and
unchecked`. Try to falsify each load-bearing claim before accepting it, and
name the sources it depends on that were opened and that were not. Do not
list the rest of the tree. A verified code fact does not verify a product
conclusion. A claim that depends on a dependency stays unchecked until its
manifest or lockfile and the dependency's own source or docs are read. On
resume, verify the target and the requirements. If either changed, restart
Resolve and do not reuse the earlier findings.
Done when each claim is labeled `checked`, `inferred`, or `supplied and
unchecked`, and each `checked` claim cites requirements, target, source, test,
or history.

## 3. Review

On every target, answer in this order.
1. Does the proposal solve the stated problem?
2. Which high-risk behavior changes, on purpose or by accident?
3. Which simpler design keeps that behavior with fewer concepts?
4. Which next change is the smallest one the evidence supports?

The fourth answer names one next change. It does not reorder Fix.
High-risk work touches persistence, permissions, security boundaries,
concurrency, retries, caching, migrations, public APIs, billing, data loss,
schema, type boundaries, or a contract that crosses a process. Also check
failure and rollback, ordering, compatibility, performance, and tests.
Map every requirement to proposed work and to verification.
A new concept has to pay for itself against a sound local pattern. When the
local pattern is poor, unsafe, or confusing, name a clearer precedent and say
where this change leaves that pattern. These heuristics are not a mandate to
rewrite working code. When the design choice is non-obvious, weigh what is
required, how long the change will live, how easy it is to undo, and who
will maintain it.
Group findings that share one root cause. Surface every distinct material
finding, with no count cap. Omit preference nits.
Put any assumption, default, or scope choice that changes the recommendation
inside the finding that depends on it, and say how the recommendation changes
if the caller rejects that choice.
Unsupported security, compatibility, or performance claims are findings.
An evidenced failure outranks a theoretical concern.
Rank by probability times impact.

Verdict, after the full list. A load-bearing claim the verdict depends on
that is still `inferred` or `supplied and unchecked` is a material finding.
No material findings means `Ship it.`
Independent repairable blockers mean `Fix the blockers first, then ship.`
Each repair stays within three steps and keeps the approach and the
requirements. A wrong approach, a missing core requirement, or coupled
blockers mean `Needs rework.`
Done when every material requirement has a finding or an explicit pass.

## 4. Report

Exactly three sections.
- `## Findings` lists every ranked `finding → impact` bullet with a citation
  and a label, or `None found.`
- `## Fix` lists numbered repairs in rank order, or the first rework
  decision, or `None.` When the verdict is `Needs rework.`, name one
  alternative and the evidence that would reverse it.
- `## Verdict` is exactly one mapped sentence, with no further explanation.
Done when the format holds and every finding still has its evidence.

## Optional update

Edit only when the user requested an update or confirms after the report.
Apply only the reported Fix. Broad rework needs a newly approved design.
Reread the diff and the report paths. Done when the authorized changes match
that Fix.

Terminals: `BLOCKED` (missing target), `REVIEWED` (analysis-only),
`AWAITING_CONFIRMATION` (update awaits approval), `UPDATED` (verified
authorized edit).

© prathamdby · MIT · prathamdby/skills

Similar skills

All skills for Code review and refactoring →

peer-review by other authors comes first.

peer-review K-Dense-AI A review skill for scientific manuscripts: checks authorization, picks a reporting guideline, maps claims to evidence and drafts a working assessment. CX Codex +1 2,200installs peer-review davila7 Review scientific manuscripts and grant proposals with checks for methods, statistics, reproducibility, ethics, and reporting. Use it to structure a critical review across research fields. 154installs improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. 1,163,035installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. 1,141,062installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. 990,453installs codebase-design Matt Pocock This skill helps design modules with small interfaces and hidden complexity. Use it when refactoring code, choosing a seam, or making tests easier to write. 850,344installs code-review Matt Pocock Reviews changes from a chosen reference point against repository standards and the originating spec. Use it for a branch, PR, or work in progress. 789,521installs implement Matt Pocock Implements work from a specification or tickets, following a test-driven flow and ending with review and a commit. Use it when a coding task needs a defined delivery routine. 774,700installs

From the same set10

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor