gh-pr-reporter
Fetch all comments on a GitHub pull request (reviews, inline review comments, and general issue comments) and emit a single consolidated Markdown report.
Skill by ahandsel
Chalk Labs
Need help deploying gh-pr-reporter?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ahandsel-gh-pr-reporter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gh-pr-reporter
What's inside
- Skill name
gh-pr-reporter- Description
- Fetch all comments on a GitHub pull request (reviews, inline review comments, and general issue comments) and emit a single consolidated Markdown report. Use when a user wants to read, summarize, audit, or triage every comment on a PR in one place. Accepts a PR number, a `owner/repo#n` reference, or a github.com pull-request URL.
- License
- MIT
- Instructions
- 111 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- get-pr-comments.mjs · scripts/
SKILL.md (first lines)
# gh PR reporter
Compile every comment on a GitHub pull request into a single Markdown report so the user can read or triage them in one place.
For the given PR, this skill collects:
1. **Reviews** - the review summary bodies and their state (`APPROVED`, `CHANGES_REQUESTED`, `COMMENTED`, `DISMISSED`).
2. **Inline review comments** - the line-anchored comments attached to a review, grouped by file and threaded by reply.
3. **General comments** - the top-level PR discussion ("issue comments" in the GitHub REST API).
The skill only reads from GitHub. It never posts, edits, or resolves comments.
## Required input
A pull request identifier in any of these forms:
* **Number only:** `498` - uses the repo of the current working directory (resolved via `gh repo view`).
* **Owner/repo + number:** `owner/example-repo#498`.
* **GitHub URL:** `https://github.com/owner/example-repo/pull/498` (an `/issues/<n>` URL with the same number is also accepted).
If the user gives a bare number while the current directory is not a clone of the target repo, ask for the repo or pass `--repo owner/repo` to the helper.
## Prerequisites
* `gh` CLI installed and authenticated (`gh auth status` succeeds).
* Read access to the target repo.
* Node.js 24+ for running the helper.
## Quick start
```bash
# Report on PR 498 in the current repo.
node skills/gh-pr-reporter/scripts/get-pr-comments.mjs 498
# Report on a PR in another repo by URL.
node skills/gh-pr-reporter/scripts/get-pr-comments.mjs https://github.com/owner/example-repo/pull/498
# Report on a PR in another repo by ref.
node skills/gh-pr-reporter/scripts/get-pr-comments.mjs owner/example-repo#498
# Override the repo when only a number is given.
node skills/gh-pr-reporter/scripts/get-pr-comments.mjs 498 --repo owner/example-repo
# Emit JSON for further processing instead of Markdown.
node skills/gh-pr-reporter/scripts/get-pr-comments.mjs 498 --json
```
Exit codes:
* `0` - success.
* `1` - fetch failure (authentication, network, or PR not found).
* `2` - invalid arguments.
## Default workflow
1. **Resolve the PR reference.** Accept whatever the user provided (number, `owner/repo#n`, or URL). If it is a bare number, confirm the current working directory is a clone of the target repo or ask for `--repo`.
2. **Run the helper.** Invoke `node skills/gh-pr-reporter/scripts/get-pr-comments.mjs <pr-ref>` from the repo root. Capture stdout as the Markdown report.
3. **Show the report to the user.** Display the helper's stdout directly. The helper already groups, sorts, and formats the content.
4. **Optional follow-up.** When the user asks for a summary or for action items, summarize from the report - do not re-fetch from GitHub.
## Report structure
The Markdown report has four sections in this order:
1. **Header.** PR title and link, author, state (`open`, `draft`, `merged`, `closed`), source and base branch, last updated timestamp, and counts.
2. **Reviews.** One block per review, sorted by submission time. Each block lists the reviewer, the review state, the timestamp, a link to the review on GitHub, and the review body as a blockquote.
3. **Inline review comments.** Grouped by file path, then by the root comment of each thread. Each thread shows the line (or line range), the root comment, and any replies indented underneath, all as blockquotes with author and timestamp.
4. **General comments.** Top-level PR discussion comments in chronological order.
Empty sections render as a single italicized placeholder ("_No reviews yet._", "_No inline comments._", "_No general comments._") so the user still sees the structure.
## Bundled resources
### scripts/get-pr-comments.mjs
The helper does all GitHub I/O.
Behavior:
* Parses `<pr-ref>` into `{ owner, repo, number }`. Resolves the repo from `gh repo view` when only a number is given.
* Fetches PR metadata, reviews, inline review comments, and issue comments using `gh api --paginate` with a page size of 100. Multi-page responses are concatenated and re-merged into a single array.
* Builds a Markdown report or, with `--json`, dumps a `{ pr, reviews, reviewComments, issueComments }` object on stdout.
* Prints a one-line success summary to stderr (so it does not pollute the report when stdout is piped to a file).
* Exits `0` on success, `1` on fetch failure, `2` on invalid arguments.
The helper only reads from GitHub. It never writes, posts, or resolves anything.
## Constraints
* Use the bundled helper - do not call `gh api` directly. The helper handles ref parsing, pagination, threading, and consistent formatting.
* Do not invent or paraphrase comments. The report quotes every comment body verbatim. When summarizing for the user, mark paraphrases as such and keep authors and timestamps intact.
* Do not post, edit, resolve, or react to any comment from this skill. For write actions on PR comments, use the [`gh-cli`][] skill instead.
* Do not strip or rewrite bot comments (for example, `@Copilot` review bodies). They count as comments and belong in the report.
* Bodies that contain Markdown that itself uses `>` blockquotes will look nested in the output - this is expected and does not need to be flattened.
## Related skills
* [`gh-cli`][] - general-purpose GitHub CLI usage, including replying to or resolving comments after this skill surfaces them.
[`gh-cli`]: ../gh-cli/SKILL.mdFrom ahandsel/tokyo-geek, MIT.
More from ahandsel/tokyo-geek
- 0.603score
gh-sync-with-main
ahandsel
Bring the current git branch up to date with commits from the main branch, or check whether it needs syncing without changing it.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
audit-gh-branches
ahandsel
Audit local and remote Git branches, classify each as safe to delete, deletion candidate, needs rebase, ice, or keep active, and extract unique work as dated…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
blog-md-linter
ahandsel
Lint and polish Markdown files in this repo - run the repo auto-fixers, refresh any table of contents, convert inline and autolink links to reference-style…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
blog-content-auditor
ahandsel
Audit a blog post for content quality - verify facts are correct and up-to-date, check style-guide compliance, and confirm the content is logically sound and…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
pr-auditor
ahandsel
Blunt merge audit of a code branch or pull request written by an AI coding agent, treating its description, comments, and green checks as claims to verify…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
gh-pr-generator
ahandsel
Draft a structured pull request body from the branch diff and open the pull request with the gh CLI.
SkillAFreshness: A★ 2Claude Code +9 - 0.558score
script-auditor
ahandsel
Audit and enforce the AGENTS.md "Scripts" guidelines for helper scripts in this repo - banning Python, preferring Node.js `.mjs` modules or zsh, requiring…
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
audit-pr-comments
ahandsel
Audit a user-specified PR review file with extreme scrutiny, then annotate that same file in place with a verdict for every comment (keep, rewrite, remove…
SkillBFreshness: B★ 2Claude Code +9 - 0.521score
handoff
ahandsel
Compact the current conversation into a handoff document for another agent to pick up.
SkillBFreshness: B★ 2Claude Code +9 - 0.518score
grill-me
ahandsel
A relentless interview to sharpen a plan or design.
SkillBFreshness: B★ 2Claude Code +9 - 0.512score
file-folder-name-linter
ahandsel
Lint repository file and folder names for format compliance.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
general-en-polisher
ahandsel
Polish one or more Markdown files so the repo core writing rules are enforced - straight quotes (not curly), no contractions, the Oxford comma, sentence case…
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Jun 9, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ahandsel/tokyo-geek
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from ahandsel
- 0.603score
gh-sync-with-main
ahandsel
Bring the current git branch up to date with commits from the main branch, or check whether it needs syncing without changing it.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
audit-gh-branches
ahandsel
Audit local and remote Git branches, classify each as safe to delete, deletion candidate, needs rebase, ice, or keep active, and extract unique work as dated…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
blog-md-linter
ahandsel
Lint and polish Markdown files in this repo - run the repo auto-fixers, refresh any table of contents, convert inline and autolink links to reference-style…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
blog-content-auditor
ahandsel
Audit a blog post for content quality - verify facts are correct and up-to-date, check style-guide compliance, and confirm the content is logically sound and…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
gh-pr-generator
ahandsel
Draft a structured pull request body from the branch diff and open the pull request with the gh CLI.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
pr-auditor
ahandsel
Blunt merge audit of a code branch or pull request written by an AI coding agent, treating its description, comments, and green checks as claims to verify…
SkillAFreshness: A★ 2Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get gh-pr-reporter running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
gh-pr-reporter skill. Agent Mart. https://agentmart.dev/skills/ahandsel-gh-pr-reporter (last updated 2026-10-24)