agentleFS
commonsetcommonset/agent-skills/skills/pull-request-review/SKILL.md

pull-request-review

Skill1 starsChanged 2 months agoMITView on GitHub

Reviews a pull request or code diff for correctness, security, regressions, missing tests, maintainability, and material performance issues. Use before merge or when asked to assess a proposed code change.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. BryceYuuu/open-workflow-skills★ 1same name
    2. brylie/compendium★ 1same name
    3. agustinusnathaniel/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 15

    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:

    Do not spend review attention on style preferences unless they create a real correctness or maintenance problem.

    line 14
  2. Distinctive:

    Read the pull request description, linked issue or requirement, and the changed files.

    line 20
  3. Distinctive:

    If the intent is unclear, state the ambiguity before judging the implementation.

    line 27
  4. Distinctive:

    Do not review the diff in isolation when surrounding code determines behavior.

    line 31
  5. Distinctive:

    Avoid expanding into unrelated refactoring.

    line 33
  6. Distinctive:

    Look for concrete issues such as:

    line 37
  7. Distinctive:

    When you identify a regression, explain the input or sequence that triggers it.

    line 47
  8. Distinctive:

    Look for avoidable work that is likely to matter in the changed path, including:

    line 66
  9. Distinctive:

    Do not micro-optimize code that is already simple and bounded.

    line 74
  10. Distinctive:

    Ask whether tests cover the behavior that could realistically break, including relevant positives and negatives.

    line 78
  11. Distinctive:

    If evidence is incomplete, label the concern as needing verification rather than stating it as fact.

    line 103
  12. Very specific:

    If there are no material findings, say No material findings.

    line 129
  13. Distinctive:

    Prefer root-cause fixes over accumulating exceptions.

    line 134
  14. Distinctive:

    Prefer deterministic code over new LLM or external-service calls when deterministic logic solves the problem reliably.

    line 137
  15. Distinctive:

    Avoid recommending new abstractions, services, caches, or asynchronous workflows unless the change actually requires them.

    line 138
  16. Distinctive:

    Do not request unrelated cleanup as part of the current pull request.

    line 139

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

Pull Request Review

Review the proposed change for material issues that could affect users, security, operations, or maintainability. Prefer a small number of specific, well-supported findings over broad commentary.

Do not spend review attention on style preferences unless they create a real correctness or maintenance problem.

Review workflow

1. Understand the intended change

Read the pull request description, linked issue or requirement, and the changed files. Identify:

  • the user-visible or operational behavior being changed
  • the invariants that should remain unchanged
  • relevant authorization, data, provider, or API boundaries
  • the tests that are expected to protect the behavior

If the intent is unclear, state the ambiguity before judging the implementation.

2. Inspect the smallest relevant surrounding context

Do not review the diff in isolation when surrounding code determines behavior. Inspect the functions, models, migrations, templates, configuration, tests, or callers needed to answer whether the change is correct.

Avoid expanding into unrelated refactoring.

3. Check correctness and regressions

Look for concrete issues such as:

  • incorrect branching, state transitions, or edge-case handling
  • stale or inconsistent data after the change
  • behavior that works on the happy path but fails on retries, duplicates, partial failure, or empty input
  • backwards-incompatible API, schema, configuration, or persisted-data changes
  • authorization checks that moved to a weaker boundary or can be bypassed
  • mismatches between server-side enforcement and user-visible controls
  • existing behavior unintentionally removed or broadened

When you identify a regression, explain the input or sequence that triggers it.

4. Check security and trust boundaries

Pay particular attention to:

  • tenant or organization scoping
  • authentication and authorization
  • secrets, credentials, tokens, and sensitive values in logs or errors
  • untrusted files, URLs, archives, templates, or provider content
  • path traversal, injection, unsafe deserialization, and command execution
  • permission widening or confused-deputy behavior
  • audit records that omit important decisions or expose sensitive content
  • fail-open behavior in security-critical paths

Distinguish capability from actual behavior. Do not report a security issue solely because an API or tool is available.

5. Check performance where it is material

Look for avoidable work that is likely to matter in the changed path, including:

  • N+1 database queries
  • repeated external API or LLM calls
  • duplicate parsing, hashing, downloads, or storage operations
  • unbounded reads or large payloads
  • expensive work repeated when a prior result can safely be reused

Do not micro-optimize code that is already simple and bounded.

6. Check tests against user-visible behavior

Ask whether tests cover the behavior that could realistically break, including relevant positives and negatives.

For security or governance changes, consider:

  • allowed case
  • denied case
  • near miss
  • crafted direct request that bypasses UI controls
  • cross-tenant or cross-scope access
  • lifecycle transition before and after the change

A missing test is a finding when it leaves a meaningful regression unprotected, not merely because every branch lacks a dedicated assertion.

7. Report only actionable findings

Order findings by severity and importance. Each finding should include:

  • Title: concrete problem
  • Severity: Critical, High, Medium, Low
  • Evidence: file and line, diff hunk, or precise code location
  • Trigger: the input, state, or sequence that exposes the problem
  • Impact: what breaks or becomes unsafe
  • Smallest fix: the narrowest appropriate layer to correct it
  • Regression test: what behavior should be locked down

If evidence is incomplete, label the concern as needing verification rather than stating it as fact.

Output format

Use findings first:

## Findings

### [High] Authorization can be bypassed by direct POST
- Evidence: `path/to/view.py:123`
- Trigger: ...
- Impact: ...
- Smallest fix: ...
- Regression test: ...

Then finish with:

## Review summary
- Material findings: ...
- Tests reviewed: ...
- Residual uncertainty: ...

If there are no material findings, say No material findings. and briefly note meaningful test or context limitations.

Review principles

  • Review behavior, not formatting preferences.
  • Prefer root-cause fixes over accumulating exceptions.
  • Preserve existing security controls when fixing false positives; improve precision instead of weakening enforcement.
  • Separate provider-specific behavior from core domain logic when practical.
  • Prefer deterministic code over new LLM or external-service calls when deterministic logic solves the problem reliably.
  • Avoid recommending new abstractions, services, caches, or asynchronous workflows unless the change actually requires them.
  • Do not request unrelated cleanup as part of the current pull request.

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.