agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/reviewing-pull-requests/SKILL.md

reviewing-pull-requests

Skill1 starsChanged 3 months agoMITView on GitHub

Use when a pull request, patch, or proposed code change needs technical review before merge, especially when behavior, architecture, regressions, tests, or risk must be evaluated from evidence.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the pull-request description, linked issue/spec, acceptance criteria, relevant comments, changed-file list, and available checks.

    line 11
  2. Distinctive:

    If the intent is unclear, do not infer a different requirement and review against it.

    line 18
  3. Distinctive:

    Read enough surrounding code to understand the changed paths.

    line 30
  4. Distinctive:

    When a failure is unrelated or flaky, distinguish that diagnosis from a passing result.

    line 35
  5. Distinctive:

    If feedback is valuable but not required for the pull request to be correct, record it as a follow-up rather than expanding the current …

    line 48
  6. Distinctive:

    Before approving or requesting changes, re-check:

    line 51

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

Reviewing Pull Requests

Review the proposed change as a system behavior and risk decision, not as a search for stylistic nits. The goal is to determine whether the change should enter the codebase and what evidence supports that decision.

Build context before judging the diff

Read the pull-request description, linked issue/spec, acceptance criteria, relevant comments, changed-file list, and available checks. Identify:

  • intended behavior;
  • explicit scope and non-goals;
  • areas of elevated risk;
  • repository conventions that matter;
  • evidence already supplied by the author.

If the intent is unclear, do not infer a different requirement and review against it.

Review from the outside in

Evaluate in this order:

  1. Purpose and scope — does the change solve the stated problem without unrelated expansion?
  2. Behavior — does it produce the intended result, including important edge/failure paths?
  3. Design — are boundaries, ownership, dependencies, and abstractions appropriate for the codebase?
  4. Safety — consider data loss, compatibility, auth/security, concurrency, migrations, rollout, and rollback where relevant.
  5. Verification — do tests and checks prove the important behavior rather than merely execute code?
  6. Maintainability — is the resulting code understandable, proportionate, and consistent with local conventions?
  7. Documentation/operations — are changed contracts, configuration, migrations, or runbooks reflected where needed?

Read enough surrounding code to understand the changed paths. A diff alone may hide violated invariants.

Treat CI as evidence, not decoration

Inspect actual check results when available. Do not claim tests, lint, typecheck, build, deployment, or security checks passed unless the corresponding evidence is current for the reviewed head.

When a failure is unrelated or flaky, distinguish that diagnosis from a passing result. A red check is still red until rerun or otherwise resolved with evidence.

Write actionable findings

For each finding, state:

  • what is wrong;
  • where it occurs;
  • the concrete failure mode or maintainability cost;
  • why it matters;
  • the smallest direction that would resolve it, when useful.

Prioritize findings. Separate blockers from non-blocking suggestions and cosmetic nits. Do not bury correctness or security issues beneath formatting preferences.

Protect scope during review

If feedback is valuable but not required for the pull request to be correct, record it as a follow-up rather than expanding the current change indefinitely. Request changes only for issues that materially affect correctness, safety, maintainability, or the agreed acceptance criteria.

Final review decision

Before approving or requesting changes, re-check:

  • the final diff, not only earlier commits;
  • unresolved review threads;
  • current CI/check status;
  • migrations/configuration implications;
  • whether earlier findings were actually resolved.

State what you reviewed and any important areas you could not verify.

References

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.