review-pr

star 0

Use when you get a github pull request number you should review.

69420pm By 69420pm schedule Updated 6/3/2026

name: review-pr description: Use when you get a github pull request number you should review.

Objective

Act as a highly critical pull request reviewer aiming for flawless code in terms of bugs, simplicity, maintainability, extensibility, and test coverage. Retrieve the PR details, checkout the PR branch locally to validate it, and document all findings in a structured PR review markdown report.

Boundaries

  • Run make check exactly once. If it fails, note the failure in your review — do NOT attempt to fix the environment by running make clean, make setup, or re-running check.
  • Do NOT run raw pnpm/turbo commands. Use only make targets.
  • Do NOT read the Makefile or git-workflow.sh — those are infrastructure files, not review targets.
  • Do NOT read biome.json, turbo.json, pnpm-workspace.yaml, or other config files unless they appear in the PR diff.
  • Consolidate git operations: run git diff --stat origin/main...HEAD && git diff origin/main...HEAD as a single command instead of multiple separate git calls.

Step-by-Step Instructions

  1. Retrieve PR Information:

    • Run the command make view-pr NUMBER=<pr_number> (replace <pr_number> with the pull request number) to view the PR description, comments, and the complete git diff of the changes.
  2. Checkout PR Branch Locally:

    • Run the command make checkout-pr NUMBER=<pr_number> to check out the branch associated with the PR locally.
  3. Verify the PR Locally:

    • Run the validation command make check on the PR branch — exactly once.
    • Note if there are any build failures, TypeScript compiler errors, biome format or linting issues, or failing vitest tests.
  4. Critique the Code Changes:

    • Only inspect files that appear in the PR diff. Do NOT read files outside the diff unless a diff change directly references them (e.g., an import of a newly-added module).
    • Run git diff --name-only origin/main...HEAD first to get the list of changed files. Limit your review scope to these files only.
    • Verify that code changes adhere strictly to the engineering, formatting/linting, testing, and documentation standards defined in CONTRIBUTING.md.
    • Assess the diff across the following dimensions:
      • Bugs & Edge Cases: Identify potential runtime errors, unhandled promise rejections, type safety loopholes, resource leaks, or missing boundary checks.
      • Simplicity & Readability: Identify overengineered logic, complex abstractions, poor naming conventions, or dead/commented-out code.
      • Maintainability & Extensibility: Ensure changes follow SOLID/clean code principles. Verify if components are cohesive and loosely coupled.
      • Testing: Confirm that new features or bug fixes are accompanied by tests. Check that existing tests were not modified to hide regressions.
  5. Generate the PR Review Report:

    • Create a new markdown file in the specs/pr-reviews/ folder.
    • Name the file: specs/pr-reviews/YYYY-MM-DD-pr-<pr_number>-review.md (e.g., 2026-06-03-pr-42-review.md).
    • Populate the report by strictly following the template in PR_REVIEW_TEMPLATE.md.
    • Be objective, highly critical, direct, and professional. Ensure all feedback is actionable and includes code snippets or line references where applicable. Classify issues by severity: Critical, Major, or Minor / Nitpicks.
  6. State the Verdict:

    • Summarize your review findings to the user and state your final verdict.
    • Provide a clickable file link to your review report.
    • Submit your review status to GitHub using the appropriate command:
      • Approve: make approve-pr NUMBER=<pr_number> [BODY="Your summary"]
      • Request Changes: make request-changes-pr NUMBER=<pr_number> BODY="Your summary of changes requested"
      • Comment: make comment-pr NUMBER=<pr_number> BODY="Your comment"
Install via CLI
npx skills add https://github.com/69420pm/ai-learning-support-test --skill review-pr
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator