agentleFS
n24q02mn24q02m/crg/skills/review-pr/SKILL.md

review-pr

Skill68 starsChanged 9 months agoApache-2.0View on GitHub

Comprehensive PR review -- full branch diff against base, commit-by-commit analysis, breaking change detection, conventional commit verification.

96 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use work-on, fix-issue and 8 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.
  • jasoncrawfordSkill

    work-on

    Use to kick off work on a feature, bug, or task

    Also in 3 projects that use this

  • DockerSkill

    fix-issue

    Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".

    Also in 6 projects that use this

  • JetBrainsSkill

    review-plan

    Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.

    Also in 5 projects that use this

  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 21 projects that use this

  • sahinSkill

    create-issue

    Also in 4 projects that use this

  • jesgarramSkill

    implement-plan

    Convert a plan document into Claude Code tasks with dependencies. Pure parser that reads plans from context/plans/ and creates executable task workflows.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 91 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Command surface: run the local CLI through the coding harness shell.

    line 11
  2. Very specific:

    If a PR number or branch is provided, use git diff main...<branch> to get changed files

    line 20
  3. Very specific:

    Verify each commit message follows Conventional Commits (type(scope): description)

    line 28
  4. Distinctive:

    Check for: removed parameters, changed return types, renamed exports, removed functions

    line 41
  5. Very specific:

    Use crg query query --pattern callers_of --target "<function>" --repo-root "<path>" to find all consumers

    line 42
  6. Distinctive:

    Read the full source of files with significant changes

    line 46
  7. Very specific:

    Use crg query query --pattern tests_for --target "<function>" --repo-root "<path>" to verify test coverage

    line 47
  8. Distinctive:

    Check for untested new functions

    line 48
  9. Very specific:

    Use crg query search --search-query "<term>" --repo-root "<path>" to find related code the PR might have missed

    line 94
  10. Distinctive:

    Check if renamed/moved functions have updated all callers

    line 95

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

Comprehensive code review of a pull request or branch diff against its base. Unlike review-delta (quick review of uncommitted local changes), this reviews ALL commits in a branch for PR submission readiness.

Command surface: run the local CLI through the coding harness shell. Examples use the installed crg command; from a source checkout, prefix it with uv run. No MCP mapping is required. Use crg review --help for the command reference. Never include full files unless explicitly asked.

Steps

  1. Identify the changes for the PR:
    • If a PR number or branch is provided, use git diff main...<branch> to get changed files
    • Otherwise auto-detect from the current branch vs main/master
  2. Update the graph with crg graph build --base main --repo-root "<path>" so it reflects the current branch.
  3. Commit-by-commit analysis (for PRs with >3 commits):
    • git log --oneline main..HEAD to list all commits
    • Group related commits by area (feature, fix, refactor, test, docs)
    • Verify each commit message follows Conventional Commits (type(scope): description)
    • Flag commits that mix unrelated changes
  4. Get the full review context with crg review context --base main --repo-root "<path>":
    • Returns all changed files across all commits in the PR
    • Includes impacted nodes and blast radius
  5. Analyze impact with crg query impact --base main --repo-root "<path>":
    • Review the blast radius across the entire PR
    • Identify high-risk areas (widely depended-upon code)
  6. Breaking change detection for public APIs:
    • Identify exported/public functions, classes, types that changed
    • Check for: removed parameters, changed return types, renamed exports, removed functions
    • Use crg query query --pattern callers_of --target "<function>" --repo-root "<path>" to find all consumers
    • Flag any change where callers outside the PR would break
  7. Deep-dive each changed file:
    • Read the full source of files with significant changes
    • Use crg query query --pattern tests_for --target "<function>" --repo-root "<path>" to verify test coverage
    • Check for untested new functions
  8. Generate structured review output:

    ## PR Review: <title>
    
    ### Summary
    <1-3 sentence overview>
    
    ### Conventional Commits Check
    - [x] `feat(parser): add Go support` -- valid
    - [ ] `fixed stuff` -- invalid, should be `fix(scope): description`
    
    ### Risk Assessment
    - **Overall risk**: Low / Medium / High
    - **Blast radius**: X files, Y functions impacted
    - **Test coverage**: N changed functions covered / M total
    - **Breaking changes**: None / List of breaking changes
    
    ### File-by-File Review
    #### <file_path>
    - Changes: <description>
    - Impact: <who depends on this>
    - Issues: <bugs, style, concerns>
    
    ### Missing Tests
    - <function_name> in <file> - no test coverage found
    
    ### Recommendations
    1. <actionable suggestion>

Key Differences from review-delta

Aspectreview-deltareview-pr
ScopeUncommitted changes onlyFull branch diff (all commits)
SpeedFast, minimal contextThorough, more context
Use caseQuick check before commitPR submission readiness
Commit analysisN/ACommit-by-commit + conventional commit check
Breaking changesNot checkedExplicitly detected

Tips

  • For large PRs (>10 files), focus on the highest-impact files first (most dependents)
  • Use crg query search --search-query "<term>" --repo-root "<path>" to find related code the PR might have missed
  • Check if renamed/moved functions have updated all callers

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.