Agent skill
sc-pull-request-skills
GitHub PR workflow automation including fetching unresolved comments, resolving review threads, and parallel comment resolution. Use this skill when working with PR reviews, addressing reviewer feedback, or automating PR comment workflows.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/productivity/sc-pull-request-skills
SKILL.md
This skill provides tools and workflows for automating GitHub pull request review processes.
Quick Reference
Fetch Unresolved PR Comments
# Current branch's PR
./scripts/get-pr-comments.sh
# Specific PR
./scripts/get-pr-comments.sh 123
Returns JSON with unresolved threads, paths, line numbers, and comment bodies.
Resolve a Review Thread
./scripts/resolve-pr-thread.sh PRRT_kwDO...
The thread ID comes from the threadId field in get-pr-comments.sh output.
Related Components
Agent: sc-pr-comment-resolver - Resolves individual PR comments by implementing requested changes and reporting resolution status.
Command: /sc-resolve-pr-parallel - Orchestrates parallel resolution of all unresolved PR comments using multiple agents.
Workflow Pattern
- Fetch unresolved comments with
get-pr-comments.sh - For each comment, spawn
sc-pr-comment-resolveragent - After changes, commit and push
- Mark threads resolved with
resolve-pr-thread.sh - Verify all threads resolved
GitHub API Patterns
Get PR Review Comments (REST)
gh api repos/{owner}/{repo}/pulls/{pr}/comments
Get Review Threads (GraphQL)
gh api graphql -f query='
query($owner: String!, $name: String!, $pr: Int!) {
repository(owner: $owner, name: $name) {
pullRequest(number: $pr) {
reviewThreads(first: 100) {
nodes {
id
isResolved
path
line
comments(first: 10) {
nodes { body author { login } }
}
}
}
}
}
}'
Resolve Thread (GraphQL Mutation)
gh api graphql -f query='
mutation($threadId: ID!) {
resolveReviewThread(input: {threadId: $threadId}) {
thread { isResolved }
}
}'
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?