Agent skill
fetch-pr-comments
Fetch unresolved PR review comments and feedback on the current branch. Use when you need to address outstanding PR review items or see what feedback needs to be resolved. Optionally filter by a specific reviewer.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/fetch-pr-comments
SKILL.md
Fetch PR Comments
Fetches unresolved review threads and pending reviews from the current branch's pull request.
Usage
Run the script from the repository root:
# Fetch all unresolved comments
./scripts/fetch-pr-comments.sh
# Fetch unresolved comments from a specific user
./scripts/fetch-pr-comments.sh username
Output
Results are saved to /tmp/delete-me/{timestamp}-{repo}-{branch}.json.
Example output structure:
{
"pr_number": 123,
"repo": "owner/repo",
"branch": "feature/example",
"fetched_at": "2025-12-17T12:00:00Z",
"filter_user": null,
"unresolved_threads": [
{
"path": "src/example.ts",
"line": 42,
"comments": [
{
"author": "reviewer",
"body": "Consider using a more descriptive name",
"created_at": "2025-12-16T10:30:00Z"
}
]
}
],
"pending_reviews": [
{
"user": "reviewer",
"state": "CHANGES_REQUESTED",
"body": "A few items to address",
"submitted_at": "2025-12-16T10:00:00Z"
}
]
}
What It Captures
- Unresolved threads: Inline code review comments that haven't been marked as resolved
- Pending reviews: Overall review submissions (APPROVED, CHANGES_REQUESTED, COMMENTED)
Requirements
- GitHub CLI (
gh) must be installed and authenticated - Must be run from within a git repository
- Current branch must have an open pull request
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?