review-pr

Check out GitHub PRs and extract metadata for structured review.

1|Updated Aug 25, 2024
One-click install
npx skills add https://github.com/7loro/dotfiles --skill review-pr-7loro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-pr
Source: https://github.com/7loro/dotfiles/tree/main/dot_config/agents/skills/review-pr
Command: npx skills add https://github.com/7loro/dotfiles --skill review-pr-7loro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitHub PR reviews require gathering context and verifying changes across branches, which can be time-consuming. This Skill automates checking out the PR, retrieving key metadata, and guiding a structured review to accelerate approvals.

Core Features & Use Cases

  • PR checkout & metadata inspection: fetches PR details (title, body, labels, checks) and checks out the corresponding branch locally.
  • Diff analysis & context gathering: analyzes changes and locates related files or templates to inform review decisions.
  • Review drafting & posting: helps draft review notes and post approvals or comments after user confirmation.

Quick Start

Review a PR by providing its number or URL. The skill will fetch the PR data, checkout the branch locally, and present a structured review plan for your confirmation.

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 with diff inspection?

Automate GitHub pull request reviews by fetching PR metadata, checking out the branch locally, and analyzing the diff to gather context. This structured review workflow speeds up approvals by guiding informed decisions across branches and checks.

What is the best way to gather context before approving a PR across branches?

The best way to gather PR context is checking out the branch locally and extracting core metadata like the title, body, labels, and checks. Analyzing the diff and locating related files informs your review decisions before posting approvals.

Do I need the gh CLI and git installed to review pull requests locally?

Yes, you need the gh CLI and git installed to fetch PR data and switch branches locally. The review workflow also relies on Dart tooling, specifically build_runner, to run analysis steps as part of the automated process.

Can I draft review notes and post comments directly to GitHub after checking out a PR?

Yes, you can draft review notes and post comments or approvals directly to GitHub. The workflow presents a structured review plan for your confirmation before posting any review notes or approval decisions to the pull request.

How does local checkout work for analyzing GitHub PR diffs?

Local checkout for PR diff analysis works by fetching pull request details with the gh CLI and switching to the corresponding branch locally with git. Once checked out, it inspects the diff and locates related files to support informed approvals.