pr-review

Fetch GitHub Pull Request diffs and comments via gh CLI, then generate Markdown review feedback.

5|2|Updated Jan 16, 2012
One-click install
npx skills add https://github.com/asonas/dotfiles --skill pr-review-asonas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review
Source: https://github.com/asonas/dotfiles/tree/main/.claude/skills/pr-review
Command: npx skills add https://github.com/asonas/dotfiles --skill pr-review-asonas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of performing objective and critical code reviews for GitHub Pull Requests, ensuring quality and adherence to best practices.

Core Features & Use Cases

  • Automated Fetching: Retrieves PR details, diffs, and comments using the gh CLI.
  • Objective Analysis: Applies a structured review process focusing on correctness, design, security, performance, readability, and testing.
  • Structured Feedback: Generates review comments in a standardized Markdown format.
  • Use Case: When a new pull request is submitted for a critical feature, this Skill can provide an initial, unbiased review, highlighting potential issues before human reviewers dive in.

Quick Start

Use the pr-review skill to review the pull request at https://github.com/owner/repo/pull/123.

Frequently Asked Questions about pr-review

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

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

Automate GitHub pull request code reviews by fetching PR diffs and comments via the gh command-line tool. The Skill analyzes correctness, design, security, performance, readability, and testing to generate structured Markdown feedback.

What is the best way to review a GitHub PR for security and performance issues?

Reviewing a GitHub PR for security and performance involves fetching the diff with the gh CLI and analyzing the code against best practices. This Skill generates structured Markdown feedback highlighting potential issues and improvements.

Do I need the gh command-line tool to review pull requests?

Yes, you need the gh command-line tool installed and authenticated. The Skill uses the gh CLI to fetch pull request details, diffs, and comments for objective analysis against best practices and documentation.

Can I use this automated code review for critical feature pull requests?

Yes, you can use this automated code review for critical feature pull requests. It provides an initial, unbiased review highlighting potential issues in correctness, design, security, performance, readability, and testing before human reviewers dive in.

How does automated PR review handle code correctness and readability?

Automated PR review handles code correctness and readability by analyzing the fetched GitHub diffs and comments against best practices. It generates structured feedback in a standardized Markdown format to highlight issues and improvements.

How do I get structured Markdown feedback from a GitHub PR diff?

Get structured Markdown feedback from a GitHub PR diff by executing the Skill with the pull request URL. It uses the gh CLI to retrieve details, analyzes the code, and outputs structured review comments for issues and improvements.