Skip to content
Agentmart
Submit a tool

pr-review

Use when asked to review a published GitHub pull request.

Skill by bswan0002

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bswan0002-pr-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when asked to review a published GitHub pull request.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr-review

What's inside

Skill name
pr-review
Description
Use when asked to review a published GitHub pull request.
License
MIT
Instructions
57 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • pr-context.py · scripts/
  • test_pr_context.py · scripts/

SKILL.md (first lines)

Review the **published PR**, not local `HEAD` or uncommitted changes. The review is **read-only**: leave the checkout, index, working-tree files, and external state (PR comments, pushes, remote refs) as you found them. Fetching Git objects and refs is the one permitted write. Fixes require a separate request.

## Scope

From the target worktree, run the helper by its absolute path under this skill's base directory (`--pr <URL>` or `--pr <number> --repo <owner/name>` selects an explicit PR):

```bash
python3 <skill-dir>/scripts/pr-context.py
```

Handle the helper's `status`:

- **`found`**: proceed with the discovered PR and repository when the target is clear; otherwise ask which PR to review. Then run `diff_command`.
- **`ambiguous`**: ask which listed PR to review and rerun with `--pr`.
- **`needs_pr`**: ask for a PR; unresolved discovery does not prove no PR exists.
- **`failed`**: report the error and stop until it is resolved.

## Review

Use `gh pr view <PR-URL> --json files` as the file checklist.

Read the full PR diff. Read surrounding code at `pr.headRefOid` (`git show <sha>:<path>`, `git grep <pattern> <sha>`), not the working tree. If the commit is missing, fetch `refs/pull/<number>/head` from the target repository without changing the checkout; if unavailable, disclose the missing context.

For each behavioral change, trace affected callers and dependencies, examine relevant tests, and account for compatibility. Confirm or rule out each suspected issue, judging against the repository's conventions and agent instructions.

Prioritize correctness, regressions, security, data loss, concurrency, and compatibility. A missing test is a finding when it leaves a concrete changed behavior unprotected. Run checks only when they are read-only; record the rest as unverified.

The review is done when every changed file is either reviewed or listed as excluded with a reason.

Before reporting, re-read the PR's published head and base SHAs. If either changed, refresh the metadata, diff, and file checklist, then revisit affected conclusions.

## Report

Open with a scope header:

- **Scope**: PR URL, target branch, and published head SHA; the comparison is GitHub's PR diff.
- **Exclusions**: skipped files with reasons; local-only changes are outside this review.
- **Limits**: missing context, unverified behavior, and unrun checks. Tests run from a different revision are not verification of the PR head.

Then list **actionable** findings introduced by the changes, ordered by severity:

- `critical`: data loss, security exposure, or a broken primary path in normal use.
- `high`: wrong behavior or a regression on a common path.
- `medium`: wrong behavior under an edge case or uncommon configuration.
- `low`: a minor defect with limited impact or an easy workaround.
- `nit`: a non-blocking stylistic inconsistency or readability/presentation issue with no behavioral impact.

For each finding give:

- **Severity and short title.**
- **File and line**, pointing to the smallest relevant changed range.
- **Trigger and impact**: the conditions under which it occurs and what breaks; nits excluded.
- **Suggested fix**, briefly, when useful.

List uncertain concerns after the findings, each with the evidence that would settle it. With no actionable findings, say so; the header's limits keep that from claiming the code is proven correct.

From bswan0002/skills, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 4, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from bswan0002

Cite this page

pr-review skill. Agent Mart. https://agentmart.dev/skills/bswan0002-pr-review (last updated 2026-10-24)