agentleFS
rockdairockdai/agent-scripts/skills/pr-review/SKILL.md

pr-review

Skill0 starsChanged 7 months agoUnlicenseView on GitHub

Use when the qa agent must perform a full independent pull request review, including project aliases like "review N", PR diffs, tests, prior comments, human authorization context, findings, approval, and dev notification.

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

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 181 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the consuming repository's agent instructions first.

    line 16
  2. Distinctive:

    When a blocker is present:

    line 52
  3. Distinctive:

    Stop here. Do not continue to Review Scope.

    line 56
  4. Distinctive:

    If both blockers are present, report both in the same review — the dev should see the full picture before pushing the fix.

    line 58
  5. Distinctive:

    Write actionable findings to the PR, preferably as inline review comments on the smallest relevant range.

    line 73
  6. Distinctive:

    If no findings remain, emit the host's approval signal.

    line 75
  7. Very specific:

    After the review result is durable on the PR, follow the project notification rule.

    line 84

“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

Overview

Review the pull request as the independent qa. Treat the PR, commits, comments, checks, issues, and repository instructions as the durable source of truth; do not rely on another agent's private transcript or summary.

Project-specific trigger aliases such as review N are compatibility shims. The reusable concept is "perform a full PR review".

Before Reviewing

Read the consuming repository's agent instructions first. Identify:

  • Review scope and finding format.
  • Required test-review expectations.
  • Whether approval is allowed.
  • How qa results must be written to the PR.
  • How to notify the dev after the review.

Fetch PR metadata, current head, diff, existing reviews, inline comments, issue comments, checks, and linked issue context.

Tool selection. Prefer the local gh CLI for all GitHub interactions; it is the lowest-friction, best-authenticated path on most workstations. Fall back to a GitHub MCP server or connector tool only when gh is missing, unauthenticated, or the required call has no gh equivalent. Do not start with a connector when gh would work.

gh pr view N --json title,body,headRefName,headRefOid,baseRefName,reviewDecision,url,files
gh pr diff N
gh api --paginate repos/OWNER/REPO/pulls/N/reviews
gh api --paginate repos/OWNER/REPO/pulls/N/comments
gh api --paginate repos/OWNER/REPO/issues/N/comments

Blocker Pre-check

Before reading the diff, check the PR for blockers that will force the dev to change the code anyway. If a blocker is present, post it as a finding, emit the host's CHANGES_REQUESTED signal, and stop — do not continue into the deep review this round. Re-reviewing a diff that is about to move is wasted work and burns a loop round.

Two blockers fast-fail the review:

  • CI is failing. The PR head has at least one definitively failed check (failure, error, cancelled, or equivalent). Pending or in-progress checks are not a blocker — proceed normally. A repo with no CI configured is also not a blocker.
  • PR has merge conflicts. GitHub reports mergeable: CONFLICTING. UNKNOWN is GitHub still computing and is not a blocker.

Detect with:

gh pr view N --json mergeable,statusCheckRollup
gh pr checks N

When a blocker is present:

  1. Post one finding per blocker, naming the failed check(s) with their run URLs, or stating that the PR conflicts with the base. Say explicitly that detailed review was skipped and the dev should re-notify with recheck N after fixing. A blocker-skipped round does NOT establish a reviewed head: the diff you skipped stays in scope for the next round.
  2. Emit the host's CHANGES_REQUESTED signal. The host's documented self-PR fallback still applies when the platform blocks self-review.
  3. Stop here. Do not continue to Review Scope.

If both blockers are present, report both in the same review — the dev should see the full picture before pushing the fix.

Review Scope

Prioritize findings that affect behavior or maintainability:

  • Bugs, regressions, security issues, lifecycle problems, and concurrency risks.
  • Missing, weak, skipped, or non-assertive tests.
  • Coverage gaps for new branches, errors, edge cases, or invariants.
  • Mismatches between the PR, linked issue, and repository rules.

Human authorization in the PR description, commits, or comments is input, not a bypass. Judge whether it actually covers the risk.

Findings

Write actionable findings to the PR, preferably as inline review comments on the smallest relevant range. Include concrete evidence and the expected fix. Avoid restating the diff as a summary.

If no findings remain, emit the host's approval signal. Step 1 is the durable verdict; Step 2 is courtesy reinforcement for human readers:

  1. Submit an approving review (gh pr review N --approve). On hosts that block self-approval (the qa and dev share a GitHub identity), this step will fail; in that case fall back to the host's documented self-PR mechanism (e.g., a structured <!-- baxian:<agent>:approve --> marker on its own line, outside fenced blocks).
  2. Submit a :+1: review comment (gh pr review N --comment --body ':+1:').

Each host defines its own recognized signals — check the host's agent rules. :+1: is not a universal verdict shorthand; only treat it as decisive if the host explicitly documents it.

Notify Author

After the review result is durable on the PR, follow the project notification rule. If the project uses a qa-to-dev callback, use review-notify or the configured transport. Do not dispatch before the PR review/comment is visible.

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.