agentleFS
sjain-stanfordsjain-stanford/claude-workspace/skills/pr-review/SKILL.md

pr-review

Skill2 starsChanged 23 days agoApache-2.0View on GitHub

Perform a focused single-agent pull request review and save a Markdown report. Use for ordinary PR review requests; use peanut-review instead when the user asks for multi-agent reviewers, personas, curation, a persistent session, the web UI, or GitHub publishing.

198 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use expert-reset, updates and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jtenniswoodSkill

    expert-reset

    Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.

    Also in 3 projects that use this

  • jtenniswoodSkill

    updates

    Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.

    Also in 3 projects that use this

  • openchamberSkill

    clack-cli-patterns

    Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.

    Also in 3 projects that use this

  • openchamberSkill

    drag-to-reorder

    Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • +6 more from openchamber

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 181 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not switch the canonical checkout or discard local changes.

    line 35
  2. Very specific:

    If the local branch exists, add its worktree using that branch instead of -b ...

    line 49
  3. Distinctive:

    Read the changed files directly using the Read tool and use file-relative line numbers when referencing code.

    line 69
  4. Distinctive:

    Leave the PR worktree available for follow-up discussion.

    line 71
  5. Very specific:

    Use the standard output format from skills/review-criteria.md with:

    line 80
  6. Very specific:

    IMPORTANT: Always save reviews to the top-level claude-workspace/reviews/ directory, not within sub-project directories.

    line 88

“Common” is measured: kept by at least 6 in 10 of the 181 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR Review Skill

Provides comprehensive pull request reviews following project coding standards.

This is the lightweight, report-oriented review path. Do not launch peanut-review implicitly. If a peanut-review session already exists, inspect it only when the user asks to incorporate or summarize that session.

Usage

/pr-review <PR-URL-or-number> [--repo <repo-name>]

Review Process

1. Fetch PR Branch and Get Diff

Resolve the PR's URL, author, head branch/commit, and actual base branch first:

gh pr view <PR-number-or-URL> --json url,author,headRefName,headRefOid,baseRefName
git status --short
git worktree list

Reuse the branch-backed task worktree that owns the PR branch. If none exists, create one using the workspace's public or internal worktree convention and LOCAL_CONTEXT.md routing (if present); preserve the PR branch name. Do not switch the canonical checkout or discard local changes. Identify the remote for the PR's base repository, including for fork PRs. Fetch its base branch before collecting the diff, including when reusing an existing worktree.

For a public PR branch that is not already local, run from projects/<repo> (use the designated internal paths for an internal PR):

git fetch <base-remote> <baseRefName>
git fetch <base-remote> pull/<PR-number>/head
git worktree add -b <headRefName> ../worktrees/<repo>/pr-<number>-<change> FETCH_HEAD

If the local branch exists, add its worktree using that branch instead of -b ... FETCH_HEAD. Check that its HEAD matches headRefOid; handle divergence without overwriting local commits or uncommitted work. Ask only if the intended review snapshot cannot be inferred safely.

From the selected worktree, review against the PR's declared base. For NPI rocjitsu, also compare that base with the required PR target in LOCAL_CONTEXT.md and flag a mismatch; do not silently review a different range or retarget the PR during a report-only review.

git diff <base-remote>/<baseRefName>...HEAD

# List all changed files
git diff --name-only <base-remote>/<baseRefName>...HEAD

# View commit history on this branch
git log <base-remote>/<baseRefName>..HEAD --oneline

Read the changed files directly using the Read tool and use file-relative line numbers when referencing code.

Leave the PR worktree available for follow-up discussion. Identify any local changes separately; a GitHub PR review covers the committed PR snapshot.

2. Review the Changes against Review Criteria

CRITICAL: Review the code referencing skills/review-criteria.md for the complete review checklist, code standards, and output format. Do not miss this step as otherwise the review is pointless.

3. Save Review

Use the standard output format from skills/review-criteria.md with:

  • Review-Type: "PR Review"
  • Source: PR URL
  • Author: PR author from metadata
  • Branch: <headRefName> -> <baseRefName>

Save the review to <workspace_root>/reviews/ with filename pr-review-<repo>-<number>.md (example: pr-review-rocm-systems-123.md). If the file already exists, check if the PR / diff was updated since last review and re-review if so, saving to a file of the same name with a suffix -take-N.md for the Nth attempt.

IMPORTANT: Always save reviews to the top-level claude-workspace/reviews/ directory, not within sub-project directories.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.