review-pr

Automate GitHub pull request review and squash merging with gh CLI.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/stephanesoares/dotfiles --skill review-pr-stephanesoares
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: review-pr
Source: https://github.com/stephanesoares/dotfiles/tree/main/config/claude/skills/review-pr
Command: npx skills add https://github.com/stephanesoares/dotfiles --skill review-pr-stephanesoares

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the review and merging of GitHub pull requests by using the gh CLI to fetch details, verify CI status, and apply reviews before performing a squash merge with release tagging when appropriate.

Core Features & Use Cases

  • Fetch PR details and status using gh pr view and gh pr diff
  • Post reviews and request changes via gh pr review
  • Merge PRs with squash and tag releases following versioning rules

Quick Start

Review the target PR using gh pr view, verify CI is green, then merge with squash and tag a release when permitted.

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 and merges using the gh CLI?▼

Automate GitHub pull request reviews using the gh CLI by fetching PR details, verifying CI status, applying reviews, and performing squash merges with release tagging when appropriate.

Can I verify CI status before merging a pull request with gh CLI?▼

Verify CI status before merging a pull request by checking for a green CI status signal, which determines whether the PR is ready for a squash merge and subsequent release tagging.

What is the best way to squash merge a pull request and tag a release automatically?▼

Squash merge a pull request and tag a release automatically by applying versioning rules after verifying CI is green, ensuring the merge integrates cleanly with the release process.

Does the gh CLI review process support requesting changes on a pull request?▼

The gh CLI review process supports requesting changes on a pull request by posting reviews via the gh pr review command before proceeding to merge.

When do I need to apply versioning rules during a pull request release?▼

Apply versioning rules during a pull request release when CI is green and a squash merge is permitted, determining the appropriate release steps and tagging actions.

What are the limitations of automating pull request reviews with gh CLI?▼

Automating pull request reviews with gh CLI is limited by CI status checks and versioning rules, meaning merges and release tagging only proceed when CI is green and permitted.