agentleFS
brandonbewsbrandonbews/pumptrack/skills/review-pr/SKILL.md

review-pr

Skill0 starsChanged 23 days agoMITView on GitHub

Review a GitHub pull request, post the findings the user keeps as a pending review in their name, and submit it on their word. On a PR the user has reviewed before, check whether their comments were resolved and say whether it's ready to approve. Use when asked to review or re-review a PR.

185 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnose-ci-failures, docs-loop 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.
  • zerx-labSkill

    diagnose-ci-failures

    Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • GeiserXSkill

    full-loop

    Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.

    Also in 3 projects that use this

  • tirth8205Skill

    review-delta

    Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

    Also in 3 projects that use this

  • +8 more from GeiserX

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 3

    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:

    The user's picks,: if you were sent back with them: skip to Post, and post them as given on the commit named.

    line 13
  2. Very specific:

    Run review in a fresh agent, with leave to start the agents its skill calls for, and hand it:

    line 24
  3. Distinctive:

    Write the summary and show it to the user.

    line 33
  4. Distinctive:

    If you can't ask the user, stop before posting and report.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 178 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

Review a PR

Your goal: handle the GitHub side of reviewing a pull request, and leave the judging to review.

What you need

  • Whether to start over: on a PR the user has reviewed before, re-review it unless they ask for a fresh full review.
  • The user's picks, if you were sent back with them: skip to Post, and post them as given on the commit named.

Gather

  1. What's been said: reviews, inline threads with their replies and whether each is resolved (GitHub's GraphQL API has the thread state), and conversation comments.
  2. The user's earlier reviews: submitted reviews by the user's login. If the user already has a pending review on the PR, post nothing new, since GitHub allows one per person. Submit it if that's what the user asked for, and otherwise say so under "Needs you" and stop.

Check out the PR's head in a checkout of its own, so the user's own checkout is untouched: one from your tool if it gives them out, or a worktree inside the project, since tools often let you write only there, in a folder git ignores. Remove it when you're done.

Review

Run review in a fresh agent, with leave to start the agents its skill calls for, and hand it:

  • First review: the goal, the PR's change as GitHub shows it (only the PR's own changes, with nothing the base gained since), and what's been said, so it doesn't repeat it.
  • Re-review: the goal, the user's earlier comments with their replies, what others have said since, so it doesn't repeat it, and the change since the commit the user last reviewed. Count only the PR's own changes: if the base was merged in since, compare the PR's diff at that commit with its diff now. If that commit isn't in the head's history, as after a rebase, review the whole PR and say so. Say it's ready to approve when review says ready.

Post

  1. Go through the findings with the user, and keep the ones they pick, worded as they want.
  2. Post them as a pending review on the commit you reviewed: one comment per finding on its line, and no approve, request-changes or comment action yet, since any of those submits it for everyone to see. Check it's still pending before you report, and say so first if it isn't. GitHub only takes comments on lines in the diff, so findings elsewhere go in the summary.
  3. Write the summary and show it to the user. Keep it in a temp file, named in your report, rather than on GitHub until submitting: GitHub's own dialog opens with an empty box and replaces a summary set through the API with it.
  4. Submit only when the user says to, with the event they choose (approve, request changes or comment; on the user's own PR, only comment) and the summary, submitting the pending review if there is one, or a new review if not.

If you can't ask the user, stop before posting and report. You'll be sent back with the user's picks.

Report

Report the way communication says, with an outcome such as "4 findings on #42 for you to pick" or "#42 is ready to approve", and asks such as which findings to post and whether to submit. Then the commit you reviewed, review's findings, and on a re-review each earlier comment and where it stands.

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.