review-pr

Automate GitHub PR reviews with gh and Bash workflows.

23.6k|1.7k|Updated Feb 12, 2019
One-click install
npx skills add https://github.com/livewire/livewire --skill review-pr-livewire
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-pr
Source: https://github.com/livewire/livewire/tree/main/.claude/skills/review-pr
Command: npx skills add https://github.com/livewire/livewire --skill review-pr-livewire

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintainer PR reviews are tedious and error-prone; this Skill automates the process by inspecting open pull requests, applying fixes, and posting a structured verdict so a PR can be merged or closed with minimal manual intervention.

Core Features & Use Cases

  • Checkout PRs and synchronize with main to keep forks up to date.
  • Fetch PR metadata, diffs, and checks and generate a standardized verdict comment.
  • Merge changes or close the PR based on automated analysis, with a clear justification.

Quick Start

Review a PR by number (e.g., review-pr 123). If omitted, it picks the latest open PR.

Frequently Asked Questions about review-pr

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

FAQPage Schema
How do I automate GitHub pull request reviews as a maintainer?

Automate GitHub pull request reviews by fetching PR metadata, diffs, and checks to generate a standardized verdict. This Skill applies fixes and posts structured comments so a PR can be merged or closed with minimal manual intervention.

How do I checkout and review a specific PR by number?

To review a specific PR by number, execute the command review-pr 123. If the PR number is omitted, the workflow automatically targets the latest open pull request in the repository for inspection.

Does this automated PR review tool require the GitHub CLI?

Yes, this automated PR review tool requires the GitHub CLI (gh). It uses gh in a Bash-driven workflow to execute checkout, checks, diff, and comment operations within a controlled, reproducible process.

Can I automatically merge pull requests to main after checks pass?

Yes, you can automatically merge pull requests to main after checks pass. The workflow evaluates the automated analysis and performs actions such as merging to main or closing the PR with a clear justification.

How do I synchronize an open PR with the main branch before reviewing?

Synchronize an open PR with the main branch by using the checkout and synchronization features. This keeps forks up to date before fetching PR metadata and diffs to generate the standardized verdict.

What is the best way to close invalid pull requests with a structured review?

Close invalid pull requests with a structured review by applying automated analysis to generate a standardized verdict comment. This provides clear justification for closing the PR instead of merging.