Back to Skills

gh-pr-review

verified

This skill provides guidance for using the gh-pr-review GitHub CLI extension to view and manage inline PR review comments from the terminal. Use this skill when working with pull request reviews, viewing inline code review threads, replying to comments, starting/submitting reviews, resolving threads, or when needing structured JSON output for PR review workflows. Triggers on requests like "show PR review comments", "reply to this thread", "start a review", "resolve threads", "view unresolved comments", or any PR code review task.

View on GitHub

Marketplace

qtnx-marketplace

qtnx/qtnx-claude-plugin

Plugin

qtnx-plugin

Repository

qtnx/qtnx-claude-plugin

qtnx-plugin/skills/gh-pr-review/SKILL.md

Last Verified

January 20, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/qtnx/qtnx-claude-plugin/blob/main/qtnx-plugin/skills/gh-pr-review/SKILL.md -a claude-code --skill gh-pr-review

Installation paths:

Claude
.claude/skills/gh-pr-review/
Powered by add-skill CLI

Instructions

# GitHub PR Review CLI Extension

## Overview

The `gh-pr-review` extension brings **inline PR review comments** to the terminal. GitHub's built-in `gh` tool does not show inline comments or review threads - this extension fills that gap.

## Prerequisites

Ensure the extension is installed:

```bash
gh extension install agynio/gh-pr-review
# Update existing installation
gh extension upgrade agynio/gh-pr-review
```

## Core Capabilities

### 1. View Review Threads

To view all reviews and inline comments for a PR:

```bash
gh pr-review review view -R owner/repo --pr <number>
```

Common filters:
- `--reviewer <login>` - Filter by reviewer
- `--states APPROVED,CHANGES_REQUESTED,COMMENTED,DISMISSED` - Filter by state
- `--unresolved` - Show only unresolved threads
- `--not_outdated` - Exclude outdated threads
- `--tail <n>` - Keep only last n replies per thread
- `--include-comment-node-id` - Include GraphQL comment IDs

Example - View unresolved threads from a specific reviewer:
```bash
gh pr-review review view -R owner/repo --pr 42 --reviewer alice --unresolved
```

### 2. Start a Pending Review

To start a new pending review and get the review ID:

```bash
gh pr-review review --start -R owner/repo <pr-number>
```

Output includes `"id": "PRR_..."` - save this for adding comments.

### 3. Add Inline Comments

To add comments to a pending review (requires `PRR_...` review ID):

```bash
gh pr-review review --add-comment \
  --review-id PRR_kwDOAAABbcdEFG12 \
  --path path/to/file.go \
  --line 42 \
  --body "Your comment here" \
  -R owner/repo <pr-number>
```

### 4. Reply to Thread

To reply to an existing review thread:

```bash
gh pr-review comments reply \
  --thread-id PRRT_kwDOAAABbcdEFG12 \
  --body "Your reply" \
  -R owner/repo <pr-number>
```

To reply from a pending review, add `--review-id`:
```bash
gh pr-review comments reply \
  --thread-id PRRT_kwDOAAABbcdEFG12 \
  --review-id PRR_kwDOAAABbcdEFG12 \
  --body "Reply from pending review" \
  -R owner/rep

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
3636 chars