gh-pr-review
Skill175 starsChanged 11 months agoMITView on GitHub
View and manage inline GitHub PR review comments with full thread context from the terminal
4 other projects use a version of this.
Adopted by
Most recently taken up by
- CherryHQ/cherry-studiotheir own version, first seen Nov 8, 2026
- joegoldin/agent-skillstheir own version, first seen Oct 6, 2026
- mir-am/skills-agents-ai-codingtheir own version, first seen Oct 1, 2026
- jdrydn/dotclaudetheir own version, first seen Sep 17, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- CherryHQ/cherry-studio★ 53ksame name
- mir-am/skills-agents-ai-coding★ 2same name
- joegoldin/agent-skills★ 1same name
- jdrydn/dotclaude★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- docs/AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when you need to:
- Distinctive: line 17
Create and submit PR reviews with inline comments
- Distinctive: line 82
Start a pending review:
- Distinctive: line 88
Add inline comments to pending review:
- Distinctive: line 111
All commands return structured JSON optimized for programmatic use:
- Distinctive: line 156
Filter by reviewer: when dealing with specific review feedback
- Distinctive: line 158
Parse JSON output: instead of trying to scrape text
- Distinctive: line 182
All IDs use GraphQL format (PRR_...
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
gh extension install agynio/gh-pr-reviewCore Commands
1. View All Reviews and Threads
Get complete review context with inline comments and thread replies:
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:
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:
gh pr-review threads list -R owner/repo <pr-number> --unresolved --mine4. Resolve/Unresolve Threads
Mark threads as resolved:
gh pr-review threads resolve -R owner/repo <pr-number> --thread-id <PRRT_...>5. Create and Submit Reviews
Start a pending review:
gh pr-review review --start -R owner/repo <pr-number>Add inline comments to pending review:
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:
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:
{
"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
- Always use
-R owner/repoto specify the repository explicitly - Use
--unresolvedand--not_outdatedto focus on actionable comments - Save thread_id values from
review viewoutput for replying - Filter by reviewer when dealing with specific review feedback
- Use
--tail 1to reduce output size by keeping only latest replies - Parse JSON output instead of trying to scrape text
Common Workflows
Get Unresolved Comments for Current PR
gh pr-review review view --unresolved --not_outdated -R owner/repo --pr $(gh pr view --json number -q .number)Reply to All Unresolved Comments
- Get unresolved threads:
gh pr-review threads list --unresolved -R owner/repo <pr> - For each thread_id, reply:
gh pr-review comments reply <pr> -R owner/repo --thread-id <id> --body "..." - Optionally resolve:
gh pr-review threads resolve <pr> -R owner/repo --thread-id <id>
Create Review with Inline Comments
- Start:
gh pr-review review --start -R owner/repo <pr> - Add comments:
gh pr-review review --add-comment -R owner/repo <pr> --review-id <PRR_...> --path <file> --line <num> --body "..." - 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-idflag adds PRRC_... IDs when needed - Thread replies are sorted by created_at ascending
Documentation Links
- Usage guide: docs/USAGE.md
- JSON schemas: docs/SCHEMAS.md
- Agent workflows: docs/AGENTS.md
- Blog post: https://agyn.io/blog/gh-pr-review-cli-agent-workflows
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

