Use gh CLI to fetch, reply to, and resolve GitHub PR review comment threads programmatically.

Install

mkdir -p .claude/skills/pr-comments-oysteinamundsen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10539" && unzip -o skill.zip -d .claude/skills/pr-comments-oysteinamundsen && rm skill.zip

Installs to .claude/skills/pr-comments-oysteinamundsen

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.

Read, reply to, and resolve review-comment threads on a GitHub pull request using the gh CLI. Use whenever you need to triage PR feedback (fetch all unresolved review threads as structured JSON, post inline replies on specific threads, and mark threads resolved) instead of hand-writing a one-off gh/GraphQL script each time. Prefer this over the generic address-pr-comments skill for bulk thread triage and programmatic gh/GraphQL access.
439 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • →Fetch all unresolved review threads as normalized JSON
  • →Fetch all review threads including resolved ones
  • →Post inline replies on specific review threads
  • →Resolve review comment threads after replying
  • →Validate the shape of the JSON replies file
  • →Preview API calls with a dry run option

How it works

The skill uses `gh` CLI to fetch review threads as JSON, then posts inline replies and resolves threads based on a provided JSON replies file, validating the input and offering a dry run.

Inputs & outputs

You give it
Pull request number, optional `--all` flag, and a JSON items file for replies
You get back
JSON array of review threads or posted replies and resolved threads

When to use pr-comments

  • →Managing PR feedback
  • →Resolving review threads
  • →Batching PR comments

About pr-comments

Provides scripts to automate interaction with inline PR review threads. Enables bulk triage and resolution of feedback using structured JSON outputs.

Read, reply to, and resolve review-comment threads on a GitHub pull request using the gh CLI. Use whenever you need to triage PR feedback (fetch all unresolved review threads as structured JSON, post inline replies on specific threads, and mark threads resolved) instead of hand-writing a one-off gh/

When not to use it

  • →When the task involves PR-level comments and approvals (use GitKraken/MCP git tools instead)
  • →When the user wants to close, merge, approve, push, or force-push the PR
  • →When the task is to post an extra PR-level summary comment for `/pr-qa`

Prerequisites

`gh` authenticated (`gh auth status`)`bun` on PATH (repo runtime)Run from the repo root

Limitations

  • →Cannot read or reply to inline threads using GitKraken/MCP git tools
  • →Never closes, merges, approves, pushes, or force-pushes the PR
  • →Only handles GitHub I/O; triage policy is separate

How it compares

This skill automates the bulk triage and resolution of inline PR review threads using structured JSON and the `gh` CLI, providing programmatic access that is more efficient than manual interaction or generic PR comment skills.

Compared to similar skills

pr-comments side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pr-comments (this skill)05moReviewIntermediate
resolve-conflicts8111moReviewIntermediate
git-advanced-workflows115moReviewAdvanced
nx-workspace49moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry