Skip to content

Development & Engineering

PR Review

Free

Review a change for correctness, security, and scope. Lead with findings, not a summary of the diff.

Difficulty intermediate
Version v1.1

Purpose

Give agents a review stance that catches real issues and skips nitpicks.

Procedure

--- name: pr-review description: Review a change for correctness, security, and scope. Lead with findings, not a summary of the diff. ---

PR Review

Purpose

Give agents a review stance that catches real issues and skips nitpicks.

Procedure

Read the diff and the surrounding function, not just the new lines.

Order your notes:

  1. Bugs and security issues that will happen in real use.
  2. Missing checks (auth, validation, empty, failure).
  3. Behavior the user asked for that is absent.

For each finding: what goes wrong, where, and the smallest fix. Severity is "must fix" or "suggestion". Do not pad with "consider adding comments" or renaming for taste.

Explicitly look for:

  • Trusting the client for price, role, or ownership.
  • Secrets in the diff.
  • Premium or private content sent to the wrong caller.
  • Errors swallowed into a success path.
  • Migrations that edit old files or drop data.

If you find nothing in a category, do not invent one. End with a one-line verdict: ready, or blocked on the must-fix items.

Do not rewrite the change while reviewing unless the user asked you to apply the fixes.

Example requests

1. Review the billing change

Request: Use PR Review on the checkout server function. Focus on whether Premium can be granted without a verified payment. Expected: Findings first, each with severity and the file. No style nits.

Dependencies

None. Work in the repository that is already open. Do not add packages unless the procedure names one.

Compatibility

This document follows the Agent Skills layout (a folder named pr-review containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it.

Example prompts

Review the billing change

Use PR Review on the checkout server function. Focus on whether Premium can be granted without a verified payment.

Expected: Findings first, each with severity and the file. No style nits.

Choose the agent

This skill is installed for one agent at a time. Pick the section you are using.

Related

  • Session Review

    Check that a feature uses the server session and never a user id sent from the browser.

  • Test Plan

    Add the smallest test that would have caught the bug, or a checklist if the change is visual.

  • Secrets Handling

    Keep credentials on the server, out of the client bundle, and out of the repository.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.