gh-pr-code-review

Automate two-pass GitHub PR code reviews with prioritized inline comments.

38|5|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/ericmjl/skills --skill gh-pr-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-pr-code-review
Source: https://github.com/ericmjl/skills/tree/main/skills/gh-pr-code-review
Command: npx skills add https://github.com/ericmjl/skills --skill gh-pr-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PR code reviews can be lengthy and inconsistent. This Skill provides a repeatable, two-pass workflow to surface issues, draft actionable feedback, and post only after user confirmation.

Core Features & Use Cases

  • Two-pass review: identify issues in a first pass and surface only new items in a second pass.
  • Draft-and-prioritize comments: generate inline suggestions and a concise timeline summary without posting.
  • Controlled posting: post inline comments and a summary timeline via gh api only after explicit user confirmation.
  • PR context gathering: fetch diff and PR metadata to inform reviews.

Quick Start

Start by providing a PR number or URL and ensuring gh is authenticated; then run the workflow to perform a two-pass code review.

Frequently Asked Questions about gh-pr-code-review

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

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

You can automate GitHub pull request code reviews by using a structured two-pass workflow that fetches diffs via the gh api, drafts inline comments, and posts feedback only after explicit confirmation.

What is a two-pass code review workflow?

A two-pass code review workflow identifies issues in a first analysis pass and surfaces only newly discovered items in a second pass, ensuring prioritized, deduplicated, and actionable inline feedback for GitHub pull requests.

Do I need gh authentication to review pull requests on GitHub?

Yes, you need gh authentication to retrieve diffs and PR metadata. You also need explicit permission to comment on the PR, with optional tooling like jq to filter context.

Can I draft inline code review comments without posting them directly to GitHub?

Yes, you can draft inline suggestions and a concise timeline summary without posting. The workflow generates feedback for review and only posts comments via gh api after explicit user confirmation.

What is the best way to ensure consistent feedback across GitHub PRs?

The best way to ensure consistent PR feedback is applying a repeatable two-pass analysis that standardizes issue discovery, prioritizes actionable inline comments, and generates a timeline summary.