pr-comments

Fetch and display GitHub PR review comments via the GitHub API.

2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/tomazb/agent-skills --skill pr-comments-tomazb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-comments
Source: https://github.com/tomazb/agent-skills/tree/main/pr-comments
Command: npx skills add https://github.com/tomazb/agent-skills --skill pr-comments-tomazb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of reviewing GitHub PR comments directly within the code review UI, reducing the need for switching between tools and enhancing productivity.

Core Features & Use Cases

  • GitHub PR Comments: Fetches and displays all review comments (issue comments, diff comments, and review bodies) from the current branch's open GitHub PR.
  • Code Review Integration: Renders comments in the code review interface, allowing for a seamless review experience.
  • Manual and Script-based Fallback: Offers both script-based and manual fallback commands for fetching comments when necessary.
  • Use Case: When reviewing a pull request, use this Skill to quickly see all feedback on the current branch without leaving the code review interface.

Quick Start

Run the command python3 <skill_dir>/scripts/fetch_github_review_comments.py from within the git repository with an open PR on the current branch to fetch comments, then call insert_code_review_comments with the script output.

Frequently Asked Questions about pr-comments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch GitHub PR review comments directly in my code review UI?

Fetching GitHub PR review comments requires running a Python script from your git repository to retrieve issue comments, diff comments, and review bodies, then inserting the output into your code review interface.

Do I need the gh CLI to pull GitHub PR comments for code review?

Yes, fetching GitHub PR comments requires the 'gh' CLI installed and authenticated, as the Python script relies on it for secure GitHub API access and data retrieval.

What types of GitHub PR comments can I display in the code review interface?

The Skill displays three types of GitHub PR comments: issue comments, inline diff comments, and review bodies, consolidating all feedback from your open PR into the code review interface.

What should I do if the script fails to fetch GitHub PR comments?

If the automated script fails to fetch GitHub PR comments, you can use the provided manual fallback commands to retrieve review feedback and maintain your code review workflow.

How does this Skill handle large pull requests with many review comments?

The Skill handles large pull requests by implementing pagination and fallback mechanisms within its Python scripts, ensuring all GitHub PR comments are fetched robustly without missing review feedback.