review-pr

Fetch pull request details and diffs via GitHub CLI, then generate categorized draft review comments.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/corymhall/toolkit --skill review-pr-corymhall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-pr
Source: https://github.com/corymhall/toolkit/tree/main/general/skills/review-pr
Command: npx skills add https://github.com/corymhall/toolkit --skill review-pr-corymhall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of reviewing code changes in a pull request, generating draft comments for human approval before posting to GitHub. It ensures thorough code quality checks without manual effort.

Core Features & Use Cases

  • Systematic Code Review: Analyzes code for correctness, security, design, error handling, testing, and style.
  • Draft Comment Generation: Produces categorized comments (Blocking, Suggestion, Question, Nit) with file and line references.
  • Approval Workflow: Presents drafts for user approval before any comments are posted.
  • Use Case: When a teammate submits a pull request, use this Skill to get a comprehensive review with actionable feedback, ensuring higher code quality and faster iteration cycles.

Quick Start

Use the review-pr skill to review the pull request with URL https://github.com/example/repo/pull/123.

Frequently Asked Questions about review-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pull request reviews on GitHub?

To automate pull request reviews, this Skill fetches PR details and diffs using GitHub CLI commands, systematically analyzes code changes across seven dimensions including security and testing, and generates categorized draft comments for human approval before posting.

What is an AI-powered code review workflow?

An AI-powered code review workflow fetches PR details and diffs, analyzes code changes systematically for correctness, security, and style, then generates categorized draft comments for human approval before posting to GitHub.

Can I review code changes for security and error handling automatically?

Yes, you can automatically review code changes for security and error handling. The Skill systematically analyzes pull request diffs across multiple dimensions including correctness, security, design, error handling, testing, and style conventions.

Do I need GitHub CLI installed to review pull requests?

Yes, you need GitHub CLI installed to review pull requests with this Skill. It relies on GitHub CLI commands to fetch pull request details, diffs, and checks required for the automated code analysis and draft comment generation.

How do draft comments work before posting to GitHub?

Draft comments are generated as categorized feedback—Blocking, Suggestion, Question, or Nit—with specific file and line references. They are presented for your human approval through a workflow before any comments are actually posted to GitHub.

What's the best way to ensure code quality checks without manual effort?

The best way to ensure code quality checks without manual effort is to use an automated review Skill that analyzes pull request diffs for correctness, security, design, and testing, generating actionable draft comments for approval before posting.