Agent skill

Gh PR Review

by agynio in agynio/gh-pr-review

View and manage inline GitHub PR review comments with full thread context from the terminal

MITAuto-check passedDevelopment

Install Gh PR Review

skills CLI
$ npx skills add agynio/gh-pr-review --skill gh-pr-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agynio/gh-pr-review gh-pr-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-pr-review
GitHub stars
191
Token cost
~1.3k tokens
SKILL.md length
472 words
Files
54
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

View and manage inline GitHub PR review comments with full thread context from the terminal

  • Works in 5 steps: View All Reviews and Threads → Reply to Review Threads → List Review Threads → …
  • Tasks that involve Pull requests
  • SKILL.md covers When to Use, Installation, Core Commands and Output Format, plus 4 more sections
  • Runs Go scripts from its folder; calls gh

What it does

Gh PR Review is an agent skill from agynio/gh-pr-review. View and manage inline GitHub PR review comments with full thread context from the terminal

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 57 other files (for example `.github/workflows/ci.yml`, `.github/workflows/release.yml` and `README.md`).

It sits in Development, covering Pull requests. It works with GitHub. The repository describes itself as: GitHub CLI extension that adds full inline PR review comment support — view, navigate, reply to, and resolve review threads directly from the terminal. LLM-ready and ideal for… The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/gh-pr-review”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. View All Reviews and Threads
  2. Reply to Review Threads
  3. List Review Threads
  4. Resolve/Unresolve Threads
  5. Create and Submit Reviews

What it can do on your machine

Read from SKILL.md and the folder at commit d2c86f6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Go, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • agyn.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gh PR Review loads about 1.3k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 472 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from agynio/gh-pr-review at commit d2c86f6, republished under its MIT licence (© agynio). 472 words, ~1,333 tokens.

Download SKILL.mdSave it as .claude/skills/gh-pr-review/SKILL.md (or your agent's skills folder). This skill also uses 53 other files; get the full folder from GitHub.
name
gh-pr-review
description
View and manage inline GitHub PR review comments with full thread context from the terminal

gh-pr-review

A GitHub CLI extension that provides complete inline PR review comment access from the terminal with LLM-friendly JSON output.

When to Use

Use this skill when you need to:

  • View inline review comments and threads on a pull request
  • Reply to review comments programmatically
  • Resolve or unresolve review threads
  • Create and submit PR reviews with inline comments
  • Access PR review context for automated workflows
  • Filter reviews by state, reviewer, or resolution status

This tool is particularly useful for:

  • Automated PR review workflows
  • LLM-based code review agents
  • Terminal-based PR review processes
  • Getting structured review data without multiple API calls

Installation

First, ensure the extension is installed:

sh
gh extension install agynio/gh-pr-review

Core Commands

1. View All Reviews and Threads

Get complete review context with inline comments and thread replies:

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

Useful filters:

  • --unresolved - Only show unresolved threads
  • --reviewer <login> - Filter by specific reviewer
  • --states <APPROVED|CHANGES_REQUESTED|COMMENTED|DISMISSED> - Filter by review state
  • --tail <n> - Keep only last n replies per thread
  • --not_outdated - Exclude outdated threads

Output: Structured JSON with reviews, comments, thread_ids, and resolution status.

2. Reply to Review Threads

Reply to an existing inline comment thread:

sh
gh pr-review comments reply <pr-number> -R owner/repo \
  --thread-id <PRRT_...> \
  --body "Your reply message"
3. List Review Threads

Get a filtered list of review threads:

sh
gh pr-review threads list -R owner/repo <pr-number> --unresolved --mine
4. Resolve/Unresolve Threads

Mark threads as resolved:

sh
gh pr-review threads resolve -R owner/repo <pr-number> --thread-id <PRRT_...>
5. Create and Submit Reviews

Start a pending review:

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

Add inline comments to pending review:

sh
gh pr-review review --add-comment \
  --review-id <PRR_...> \
  --path <file-path> \
  --line <line-number> \
  --body "Your comment" \
  -R owner/repo <pr-number>

Submit the review:

sh
gh pr-review review --submit \
  --review-id <PRR_...> \
  --event <APPROVE|REQUEST_CHANGES|COMMENT> \
  --body "Overall review summary" \
  -R owner/repo <pr-number>

Output Format

All commands return structured JSON optimized for programmatic use:

  • Consistent field names
  • Stable ordering
  • Omitted fields instead of null values
  • Essential data only (no URLs or metadata noise)
  • Pre-joined thread replies

Example output structure:

json
{
  "reviews": [
    {
      "id": "PRR_...",
      "state": "CHANGES_REQUESTED",
      "author_login": "reviewer",
      "comments": [
        {
          "thread_id": "PRRT_...",
          "path": "src/file.go",
          "author_login": "reviewer",
          "body": "Consider refactoring this",
          "created_at": "2024-01-15T10:30:00Z",
          "is_resolved": false,
          "is_outdated": false,
          "thread_comments": [
            {
              "author_login": "author",
              "body": "Good point, will fix",
              "created_at": "2024-01-15T11:00:00Z"
            }
          ]
        }
      ]
    }
  ]
}

Best Practices

  1. Always use -R owner/repo to specify the repository explicitly
  2. Use --unresolved and --not_outdated to focus on actionable comments
  3. Save thread_id values from review view output for replying
  4. Filter by reviewer when dealing with specific review feedback
  5. Use --tail 1 to reduce output size by keeping only latest replies
  6. Parse JSON output instead of trying to scrape text
Show full SKILL.md (157 more words)Show less

Common Workflows

Get Unresolved Comments for Current PR
sh
gh pr-review review view --unresolved --not_outdated -R owner/repo --pr $(gh pr view --json number -q .number)
Reply to All Unresolved Comments
  1. Get unresolved threads: gh pr-review threads list --unresolved -R owner/repo <pr>
  2. For each thread_id, reply: gh pr-review comments reply <pr> -R owner/repo --thread-id <id> --body "..."
  3. Optionally resolve: gh pr-review threads resolve <pr> -R owner/repo --thread-id <id>
Create Review with Inline Comments
  1. Start: gh pr-review review --start -R owner/repo <pr>
  2. Add comments: gh pr-review review --add-comment -R owner/repo <pr> --review-id <PRR_...> --path <file> --line <num> --body "..."
  3. Submit: gh pr-review review --submit -R owner/repo <pr> --review-id <PRR_...> --event REQUEST_CHANGES --body "Summary"

Important Notes

  • All IDs use GraphQL format (PRR_... for reviews, PRRT_... for threads)
  • Commands use pure GraphQL (no REST API fallbacks)
  • Empty arrays [] are returned when no data matches filters
  • The --include-comment-node-id flag adds PRRC_... IDs when needed
  • Thread replies are sorted by created_at ascending

© agynio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 53 other files in the repository root of agynio/gh-pr-review.

  • SKILL.md
  • .github/workflows/ci.yml
  • .github/workflows/release.yml
  • .gitignore
  • CODEOWNERS
  • LICENSE
  • README.md
  • cmd/comments.go
  • cmd/comments_test.go
  • cmd/deps.go
  • cmd/output.go
  • cmd/review.go
  • cmd/review_test.go
  • cmd/review_view.go
  • cmd/review_view_test.go
  • cmd/root.go
  • cmd/testdata/report_response.json
  • … and 37 more

Open the folder on GitHubat commit d2c86f6

Compare with similar skills

Gh PR Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gh PR Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh PR Review this skillagynio/gh-pr-review191—~1.3kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check passed

Works with

Categories

Questions about Gh PR Review

What does Gh PR Review do?

View and manage inline GitHub PR review comments with full thread context from the terminal. Gh PR Review is an agent skill from agynio/gh-pr-review.

When should I use Gh PR Review?

Gh PR Review fits situations like: tasks that involve Pull requests.

How do I install Gh PR Review in Claude Code?

Run `npx skills add agynio/gh-pr-review --skill gh-pr-review -a claude-code`. Or copy the skill folder (the agynio/gh-pr-review repository) into .claude/skills/gh-pr-review in your project. Claude Code loads it when a task matches its description.

How do I install Gh PR Review in Codex?

Run `npx skills add agynio/gh-pr-review --skill gh-pr-review -a codex`. Or copy the skill folder (the agynio/gh-pr-review repository) into .agents/skills/gh-pr-review in your project. Codex loads it when a task matches its description.

Can I use Gh PR Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agynio/gh-pr-review --skill gh-pr-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-pr-review, .gemini/skills/gh-pr-review, .github/skills/gh-pr-review and .opencode/skills/gh-pr-review in your project.

What does Gh PR Review need to run?

Going by SKILL.md and its folder, Gh PR Review needs Go for the scripts in its folder and the command-line tools its instructions call (gh).

Does Gh PR Review access the network?

SKILL.md names 1 domain. As links in the text: agyn.io. This is read from the text; nothing was executed.

Is Gh PR Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gh PR Review use?

Gh PR Review is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gh PR Review use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gh PR Review?

Skills that share tags, products or a category with Gh PR Review: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh PR Review?

agynio (a GitHub organization) maintains it in agynio/gh-pr-review, which has 191 GitHub stars. The repository was last updated on April 13, 2026.

Source: agynio/gh-pr-review on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.