A utility to fetch GitHub PR discussions and review comments, converting them into clean Markdown format.
Install
mkdir -p .claude/skills/fetch-pr-comments && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2814" && unzip -o skill.zip -d .claude/skills/fetch-pr-comments && rm skill.zipInstalls to .claude/skills/fetch-pr-comments
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Fetches comments and reviews from the current GitHub Pull Request and formats them as Markdown.Key capabilities
- →Fetch comments from active branch PR
- →Retrieve review data for specific PR IDs
- →Format PR metadata into Markdown
- →Group code comments by file and line number
How it works
Wraps the GitHub CLI to query PR data and executes a formatting script to convert JSON responses into structured Markdown.
Inputs & outputs
When to use fetch-pr-comments
- →Summarize PR feedback
- →Convert PR reviews to documentation
- →Export code review comments
- →Track review status for active branches
About this skill
Fetch PR Comments
This skill allows you to retrieve comments and reviews from the current GitHub Pull Request (PR) associated with the active branch, or a specific PR by number/URL. It converts the data into a readable Markdown format, including code review comments with file and line context.
Usage
To use this skill, run the provided Python script. It requires the GitHub CLI (gh) to be installed and authenticated.
Command
# Fetch comments for the current branch's PR
python3 .agent/skills/fetch_pr_comments/scripts/fetch_comments.py
# Fetch comments for a specific PR
python3 .agent/skills/fetch_pr_comments/scripts/fetch_comments.py <PR_NUMBER_OR_URL>
Output
The script outputs Markdown text to stdout, containing:
- PR Title and URL
- Reviews (Approved/Changes Requested)
- General Comments (Pull Request level)
- Code Comments (Grouped by file and line number)
Dependencies
gh(GitHub CLI) must be installed and in your PATH.python3must be available.
When not to use it
- →When the repository does not use GitHub
- →When PRs are empty or lack review activity
Prerequisites
Limitations
- →Requires active authentication with GitHub CLI
- →Does not track real-time changes outside of the current snapshot
How it compares
Directly converts structured API responses into a readable human format instead of raw CLI JSON output.
Compared to similar skills
fetch-pr-comments side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| fetch-pr-comments (this skill) | 4 | 6mo | Review | Beginner |
| comprehensive-review-pr-enhance | 1 | 4mo | Review | Beginner |
| viewing-files | 0 | 4mo | Review | Beginner |
| todo | 0 | 3mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by google
View all by google →You might also like
comprehensive-review-pr-enhance
sickn33
You are a PR optimization expert specializing in creating high-quality pull requests that facilitate efficient code reviews. Generate comprehensive PR descriptions, automate review processes, and ensure PRs follow best practices for clarity, size, and reviewability.
viewing-files
SebastienDegodez
Use when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review
todo
vladmandic
Search the entire codebase for TODO markers and create a markdown document with proposed next steps for each.
docs-review
metabase
Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.
claude-md-improver
anthropics
Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".
backend-to-frontend-handoff-docs
davila7
Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.