pr-comments
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.zipInstalls 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.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
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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr-comments (this skill) | 0 | 5mo | Review | Intermediate |
| resolve-conflicts | 81 | 11mo | Review | Intermediate |
| git-advanced-workflows | 11 | 5mo | Review | Advanced |
| nx-workspace | 4 | 9mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by OysteinAmundsen
View all by OysteinAmundsen →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
nx-workspace
nrwl
Explore and understand Nx workspaces. USE WHEN answering any questions about the nx workspace, the projects in it or tasks to run. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What targets can I run?', 'What's affected by my changes?', 'Which projects depend on library Y?', or any questions about Nx workspace structure, project configuration, or available tasks.
fix-github-issue
AgnosticUI
Fix a GitHub issue by number. Use when asked to fix GitHub issues.
rebase-pr
AztecProtocol
Rebase a PR on its base branch, fix conflicts, and verify build
resolve-pr-parallel
EveryInc
Resolve all PR comments using parallel processing. Use when addressing PR review feedback, resolving review threads, or batch-fixing PR comments.