pr-review

Review GitHub PRs and generate categorized comments via GitHub CLI.

1.9k|282|Updated Nov 19, 2023
One-click install
npx skills add https://github.com/Gentleman-Programming/Gentleman.Dots --skill pr-review-gentleman-programming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review
Source: https://github.com/Gentleman-Programming/Gentleman.Dots/tree/main/GentlemanClaudeCode/skill/pr-review
Command: npx skills add https://github.com/Gentleman-Programming/Gentleman.Dots --skill pr-review-gentleman-programming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers receive thoughtful, constructive feedback on GitHub pull requests by generating human-like comments that guide authors toward better code and growth.

Core Features & Use Cases

  • PR metadata fetch: Retrieve title, body, files, additions, deletions, author, and status to inform feedback.
  • Diff handling: Retrieve diffs while excluding noise like lockfiles to focus on meaningful changes.
  • Comment generation: Produce structured, actionable review comments categorized for clarity (CRITICAL, NEEDS REVIEW, QUESTION).
  • One-comment flow: Compile feedback into a single, coherent comment ready for posting on the PR.
  • Context-driven guidance: Adjust tone and depth based on project context and author intent.

Quick Start

To start a PR review, provide a PR URL or number and let the tool fetch data, analyze changes, and draft a comment for posting with GitHub CLI commands like gh pr view and gh pr diff.

Frequently Asked Questions about pr-review

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

FAQPage Schema
How do I generate actionable GitHub pull request review comments?

Generate actionable GitHub pull request review comments by fetching PR metadata and diffs via the GitHub CLI, categorizing issues into CRITICAL or QUESTION buckets, and compiling a single human-like comment ready for posting.

Can I exclude lockfile noise when analyzing a PR diff for code review?

You can exclude lockfile noise during PR diff analysis by retrieving diffs that filter out irrelevant file changes, allowing the review process to focus strictly on meaningful source code modifications.

How does automated PR review categorize issues in GitHub diffs?

Automated PR review categorizes issues in GitHub diffs by analyzing the fetched changes and sorting them into structured categories like CRITICAL, NEEDS REVIEW, and QUESTION for clear, actionable feedback.

Do I need the GitHub CLI to fetch pull request metadata for automated review?

Yes, you need the GitHub CLI installed to fetch pull request metadata and diffs for automated review, using commands like gh pr view and gh pr diff to retrieve the necessary title, body, and file changes.

What's the best way to provide human-like feedback on a GitHub pull request?

The best way to provide human-like feedback on a GitHub pull request is to analyze the author's intent and project context, then draft a single coherent comment that guides the author toward better code rather than outputting robotic checklists.