Agent skill
gh-pr-comments
List and resolve GitHub PR review comments. Use when working with PR feedback, addressing review comments, or marking threads resolved.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gh-pr-comments
SKILL.md
GitHub PR Comments
List unresolved PR review comments and mark them resolved after addressing feedback.
Setup
Run once in the skill directory:
cd ~/.claude/skills/gh-pr-comments && bun install
List Comments
bun run ~/.claude/skills/gh-pr-comments/scripts/list-comments.ts [options]
Options
--unresolved- Only show unresolved comments (uses GraphQL)--no-bots- Exclude bot comments (Copilot, etc.)--repo owner/name- Specify repository (auto-detected if omitted)--pr NUMBER- Specify PR number (auto-detected if omitted)
Examples
# List unresolved comments for current branch's PR
bun run ~/.claude/skills/gh-pr-comments/scripts/list-comments.ts --unresolved
# List all human comments
bun run ~/.claude/skills/gh-pr-comments/scripts/list-comments.ts --no-bots
# List unresolved human comments for specific PR
bun run ~/.claude/skills/gh-pr-comments/scripts/list-comments.ts --unresolved --no-bots --pr 123
Output Format
[{
"thread_id": "PRRT_kwDOxxx",
"user": "reviewer",
"body": "Comment text",
"diff_hunk": "@@ -10,6 +10,8 @@...",
"line": 42,
"start_line": 40
}]
Resolve Comment
After addressing feedback, mark the thread resolved:
bun run ~/.claude/skills/gh-pr-comments/scripts/resolve-comment.ts <thread_id>
Example
bun run ~/.claude/skills/gh-pr-comments/scripts/resolve-comment.ts PRRT_kwDOLsFqtM5kv0rG
Output
{ "resolved": true }
Workflow
- List unresolved comments:
bun run ~/.claude/skills/gh-pr-comments/scripts/list-comments.ts --unresolved - Address each comment in the code
- Resolve each thread:
bun run ~/.claude/skills/gh-pr-comments/scripts/resolve-comment.ts <thread_id>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?