/homelab-core:gh-address-commentsfrom homelab-core
Systematically addresses GitHub PR review comments with mandatory resolution tracking. Fetches comments via gh CLI, creates task checklists, links commits to threads, and blocks completion on unresolved threads.
Ships in homelab-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
⚠️ 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.mdLICENSE.txt (opens in a new tab)README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/github-small.svg (opens in a new tab)assets/github.png (opens in a new tab)examples/basic-workflow.sh (opens in a new tab)load-env.sh (opens in a new tab)references/api-endpoints.md (opens in a new tab)references/quick-reference.md (opens in a new tab)references/resolution-workflow.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/fetch_comments.py (opens in a new tab)scripts/mark_resolved.py (opens in a new tab)scripts/verify_resolution.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jmagar/claude-homelab --plugin homelab-core18 skills in this plugin
/bytestashManage code snippets in ByteStash snippet storage service. This skill should be used when the user asks to "save a snippet", "search snippets", "find code", "share snippet", "organize snippets", "list my snippets", "create snippet", "delete snippet", or mentions ByteStash, code storage, snippet management, or code archival./homelab-healthUnified health dashboard for all configured homelab services. Use when the user wants to check service status, verify credentials work, see which services are reachable, or diagnose connectivity issues. Triggers on: 'check health', 'service status', 'what's running', 'is plex up', 'verify my setup', 'homelab health', or after running /homelab-core:setup./homelab-setupInteractive credential setup wizard for claude-homelab. Use when the user wants to configure credentials, set up a new service, update API keys, or run initial setup after installing the homelab-core plugin. Triggers on: 'setup credentials', 'configure plex', 'add my API key', 'I just installed homelab-core', 'setup homelab', or any mention of needing to configure a specific service./linkdingManage bookmarks with Linkding. Use when the user asks to "save a bookmark", "add link", "search bookmarks", "list my bookmarks", "find saved links", "tag a bookmark", "archive bookmark", "check if URL is saved", "list tags", "create bundle", or mentions Linkding bookmark management./memosManage notes and memos in self-hosted Memos service. Use when the user asks to "save this to memos", "create a memo", "search my memos", "find notes about X", "what did I write about", "add a note", "capture this", "remember this", "save this thought", or mentions note-taking, knowledge management, or personal notes./notebooklmProgrammatic access to Google NotebookLM for creating notebooks, adding sources (URLs, YouTube, PDFs, audio, video, images), chatting with content, generating artifacts (podcasts, videos, reports, quizzes, mind maps, flashcards, infographics), and downloading results. Includes capabilities beyond the web UI.Other plugins' skills for the same job