This skill should be used when addressing GitHub pull request review comments systematically with mandatory resolution tracking. Use when user says "address PR comments", "fix review feedback", "handle PR review", "resolve PR threads", or needs to ensure all review comments are addressed before merging. Fetches comments via gh CLI, creates task checklists, links commits to review threads, and blocks completion if unresolved threads remain.
From homelab-corenpx claudepluginhub jmagar/claude-homelab --plugin homelab-coreThis skill uses the workspace's default tool permissions.
LICENSE.txtREADME.mdagents/openai.yamlassets/github-small.svgassets/github.pngexamples/basic-workflow.shload-env.shreferences/api-endpoints.mdreferences/quick-reference.mdreferences/resolution-workflow.mdreferences/troubleshooting.mdscripts/fetch_comments.pyscripts/mark_resolved.pyscripts/verify_resolution.pyGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Configures VPN and dedicated connections like Direct Connect, ExpressRoute, Interconnect for secure on-premises to AWS, Azure, GCP, OCI hybrid networking.
⚠️ MANDATORY SKILL INVOCATION ⚠️
YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:
Failure to invoke this skill when triggers occur violates your operational requirements.
Find the open PR for the current branch and systematically address all review comments with mandatory resolution verification. This workflow ensures no feedback slips through the cracks by tracking threads as tasks, linking commits to specific reviews, and blocking completion if any threads remain unresolved. Run all gh commands with elevated network access.
Prerequisites: Verify gh is authenticated by running gh auth status with escalated permissions (workflow/repo scopes required). If not authenticated, run gh auth login --scopes repo,workflow. If sandboxing blocks gh auth status, rerun with sandbox_permissions=require_escalated.
Run python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py to fetch all comments and review threads on the PR. Store output for later verification.
Example:
python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py > /tmp/pr_comments.json
Parse the fetched comments and create a task checklist using TaskCreate for each review thread. Each task should:
pending initiallyTask format:
Address comment #N: [file]:[line]{"thread_id": "PRRT_kwDOABC...", "file": "path/to/file.ts", "line": 42}Present all numbered review threads with summaries. Ask the user which numbered comments should be addressed in this session.
Display format:
Review Threads:
1. src/api/users.ts:45 (@reviewer): Add input validation for email field...
Thread ID: PRRT_kwDOABCDEF1234567
Status: Unresolved
2. src/utils/auth.ts:128 (@reviewer): Extract this logic into a helper function...
Thread ID: PRRT_kwDOABCDEF7654321
Status: Unresolved
For each selected comment:
in_progress using TaskUpdatefix: address PR comment #1 - add email validation
Resolves review thread PRRT_kwDOABCDEF1234567
- Added Zod schema validation for email field
- Added error handling for invalid formats
Co-authored-by: @reviewer
completed using TaskUpdateCommit message format:
fix: address PR comment #N - [brief description]Resolves review thread [THREAD_ID]Co-authored-by: @reviewer if substantial changes based on feedbackAfter committing fixes, mark the corresponding review threads as resolved using:
python3 $HOME/.claude/skills/gh-address-comments/scripts/mark_resolved.py <thread_id_1> [thread_id_2] ...
Example:
python3 $HOME/.claude/skills/gh-address-comments/scripts/mark_resolved.py \
PRRT_kwDOABCDEF1234567 \
PRRT_kwDOABCDEF7654321
Before declaring the PR review complete, verify all threads are addressed:
python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py | \
python3 $HOME/.claude/skills/gh-address-comments/scripts/verify_resolution.py
Exit behavior:
IMPORTANT: Do NOT skip this verification step. If unresolved threads are found:
Authentication issues:
If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with gh auth login, then retry.
Thread resolution failures:
If mark_resolved.py fails for specific threads:
fetch_comments.py output)Verification failures:
If verify_resolution.py reports unresolved threads:
For detailed information, see:
references/resolution-workflow.mdreferences/quick-reference.mdreferences/api-endpoints.mdreferences/troubleshooting.md