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.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: sc-pull-request-skills description: 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.
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 }
}
}'
More by kylesnowschwartz
View allname: sc-frontend-design
This skill should be used when the user asks to "review code", "find dead code", "check for duplication", "simplify the codebase", "find refactoring opportunities", "do code cleanup", "check naming consistency", "analyze test organization", "run codebase health check", "review my PR", "refactor this code", "extract method", "rename variable", or "consolidate duplicates". Routes to specialized analysis agents or refactoring workflow based on the type of request.
Generate and edit images using the Gemini API (Nano Banana Pro). Use this skill when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
This skill should be used when implementing slash commands that execute without Claude API calls. Use when: adding a new /bumper-* command, understanding why commands return "block" responses, debugging UserPromptSubmit hooks, or learning the pattern for instant command execution. Keywords: UserPromptSubmit, block decision, hook response, slash command implementation.