From tal
This skill should be used when the user asks to "reply to PR thread", "reply to PR comment", "respond to inline comment", "respond to review comment", "comment on review", "answer PR feedback", "post reply to PR discussion", or provides a GitHub PR inline comment URL (e.g., https://github.com/org/repo/pull/123#discussion_r456) and wants to reply to it. Allows posting replies to inline review comment threads on GitHub PRs using native gh CLI.
npx claudepluginhub tal/plugin-marketplace --plugin talThis skill uses the workspace's default tool permissions.
Post a reply to an inline review comment thread on a GitHub pull request.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
Post a reply to an inline review comment thread on a GitHub pull request.
gh (GitHub CLI) installed and authenticatedjq for JSON parsingNo extensions required - uses native gh api commands.
Native GitHub CLI (gh pr comment) only supports general PR comments, not inline review comments. This skill uses the GitHub REST API via gh api to reply to specific inline review threads with proper threading support.
Prefer this over:
gh pr comment (doesn't support inline comment replies)gh api calls (this skill handles URL parsing and error handling)Reply using comment URL (most common - extracts thread ID automatically):
${CLAUDE_PLUGIN_ROOT}/skills/pr-thread-reply/reply-pr-thread.sh \
"https://github.com/tal/repo/pull/123517#discussion_r2721565974" \
"Thanks, fixed in the latest commit!"
Reply using comment ID directly:
${CLAUDE_PLUGIN_ROOT}/skills/pr-thread-reply/reply-pr-thread.sh \
--comment-id 456789 \
--pr 12345 \
--repo owner/repo \
"Your reply message here"
Interactive mode (prompts for inputs):
${CLAUDE_PLUGIN_ROOT}/skills/pr-thread-reply/reply-pr-thread.sh
Multiple input formats accepted for flexibility:
Provide the full GitHub PR comment URL and the reply message:
reply-pr-thread.sh "<comment-url>" "<reply-message>"
Example:
reply-pr-thread.sh \
"https://github.com/tal/repo/pull/123517#discussion_r2721565974" \
"Good catch! I've updated the error handling."
Provide comment ID and other details explicitly:
reply-pr-thread.sh \
--comment-id <comment-id> \
--pr <pr-number> \
--repo <owner/repo> \
"<reply-message>"
Example:
reply-pr-thread.sh \
--comment-id 456789 \
--pr 12345 \
--repo tal/repo \
"Fixed as suggested, thanks!"
Run without arguments to be prompted:
reply-pr-thread.sh
--comment-id <id>: The comment database ID to reply to (numeric)--pr <number>: The PR number--repo <owner/repo>: The repository in owner/repo format-v, --verbose: Enable verbose output for debuggingComment IDs are extracted automatically from comment URLs, but they can also be obtained manually:
From the URL:
The comment ID is the numeric part after #discussion_r in the URL:
https://github.com/owner/repo/pull/123#discussion_r456789
^^^^^^ <- comment ID is 456789
Using get-pr-feedback skill:
${CLAUDE_PLUGIN_ROOT}/skills/get-pr-feedback/get-pr-comments.sh -a
The output lists comment URLs which contain the comment IDs.
On success, the skill outputs:
✓ Reply posted successfully to thread PRRT_...
URL: https://github.com/owner/repo/pull/123#discussion_r456
On error, diagnostic information is printed to stderr.
After addressing a reviewer's inline comment:
reply-pr-thread.sh \
"https://github.com/tal/repo/pull/123#discussion_r456" \
"Fixed in commit abc123 - now using error wrapping as suggested"
Quick acknowledgment of a comment:
reply-pr-thread.sh \
"https://github.com/tal/repo/pull/123#discussion_r456" \
"Good point, will address this in a follow-up PR"
After addressing multiple review comments:
get-pr-feedback to list all unresolved threadsWhen a comment starts a technical discussion:
reply-pr-thread.sh \
"https://github.com/tal/repo/pull/123#discussion_r456" \
"I considered that approach but went with X because Y. Happy to discuss alternatives if you have concerns."
This skill pairs well with the get-pr-feedback skill:
# 1. Get all actionable feedback
${CLAUDE_PLUGIN_ROOT}/skills/get-pr-feedback/get-pr-comments.sh -a
# 2. Make code changes to address comments
# 3. Reply to each thread explaining what you did
${CLAUDE_PLUGIN_ROOT}/skills/pr-thread-reply/reply-pr-thread.sh \
"https://github.com/.../discussion_r123" \
"Fixed in commit abc123"
Authentication error:
Error: gh is not authenticated
Run gh auth login to authenticate.
Comment not found:
Error: Comment not found or you don't have access
Comment URL not recognized:
The URL must contain #discussion_r followed by a number. Example:
https://github.com/owner/repo/pull/123#discussion_r456789
gh CLI not installed:
Error: gh CLI is not installed
Install from: https://cli.github.com/
gh CLI installed and authenticatedgh api (no extensions needed)