pr-review

Review GitHub Pull Request diffs and generate structured code quality reports.

34|12|Updated Aug 1, 2021
One-click install
npx skills add https://github.com/pear-studio/nonebot-dicepp --skill pr-review-pear-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review
Source: https://github.com/pear-studio/nonebot-dicepp/tree/main/docs/agent/skills/pr-review
Command: npx skills add https://github.com/pear-studio/nonebot-dicepp --skill pr-review-pear-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams quickly assess the quality and risk of a GitHub Pull Request by reading its diff, summarizing changes, and recommending whether to approve, request changes, or merge.

Core Features & Use Cases

  • Diff-based code review: Fetches PR details and diff, then evaluates logic correctness, edge cases, naming/style, redundancy, test coverage, and security risks.
  • Actionable structured report: Produces a consistent, sectioned review output including a change summary and an overall decision.
  • Automated GitHub workflow: Executes approve, request-changes, or merge using GitHub CLI after a user decision, with safeguards such as CI/merge conflict warnings.

Use Case: When a teammate opens PR #42 for a refactor, you can generate a review report focused on correctness, safety, and test impact, then immediately approve, request changes, or merge based on your decision.

Quick Start

Ask to review PR #42 and approve it if no critical issues are found.

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 review and merge decisions?

To automate GitHub pull request code review, this skill fetches PR diffs to evaluate logic, test coverage, and security risks. It generates a structured review report and executes approve, request-changes, or merge commands via GitHub CLI based on your decision.

Can I automatically approve a pull request if no critical issues are found?

Yes, you can automatically approve a pull request if no critical issues are found. After generating a review report on code quality and risk, you specify your decision, and the skill executes the approve or merge action using GitHub CLI.

What does a diff analysis check for when reviewing a pull request?

A diff analysis for pull request review checks logic correctness, edge cases, naming and style, redundancy, test coverage, and security risks. It produces a decision-ready structured report recommending whether to approve, request changes, or merge.

Do I need GitHub CLI authentication to review and merge pull requests?

Yes, you need GitHub CLI authentication to review and merge pull requests. This skill requires access to the correct remote to retrieve PR diffs and relies on the GitHub CLI to execute approve, request-changes, and merge commands.

What safeguards are applied during pull request merge automation?

During pull request merge automation, safeguards include warnings for CI failures and merge conflicts. The skill evaluates the diff and applies these checks before executing your decision to approve, request changes, or merge.