/kaoths-skills:reply-pr-review-commentsfrom kaoths-skills
Reply to PR review comments using gh api. User-invoke only — do not trigger automatically from conversational requests; only run when the user explicitly invokes this skill.
Ships in kaoths-skills. 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.
None: SKILL.md is the whole skill.
Before replying, determine the signature values:
AgentName — use the agent/tool you're running as:
ClaudeCodeCopilotOpenCodeContinueModelName — resolve in this order:
curl http://localhost:11434/api/show -d '{"name":"current"}'Unknown rather than guessingFormat:
[ClaudeCode::claude-sonnet-4-6]
[Copilot::gpt-4o]
[Continue::qwen2.5-coder:3b]
[ClaudeCode::Unknown]
Always include the signature at the top of your reply:
[AgentName::ModelName]
Your reply text here...
This makes it clear to reviewers who is responding, especially when multiple people (human author + AI agent) are collaborating on the PR.
A reply that says something was fixed must name the concrete thing you produced in this run: a commit SHA, or a file path plus what changed in it. Not "done" or "good catch, fixed" on its own.
If you can't name that evidence — the change was never made, the push failed, the fix was only planned — don't post the reply at all. Skip it and list it in the run summary below. An unbacked "fixed" is worse than silence: the reviewer resolves the thread and the bug ships.
Replies that don't claim a change (answering a question, disagreeing, asking for clarification) need no evidence — this rule is only about claims of work done.
Requires the PR number and the comment ID (each review comment has a unique id field) — get both from the fetch-pr-review-comments skill.
Use the owner, repo, and PR number already resolved during the fetch — don't re-run
gh pr view here. Re-resolving mid-run can retarget a different PR after a branch
checkout; the comment IDs in hand belong to the PR they were fetched from.
Pass the body via a quoted heredoc into -F body=@- (reads the value from stdin) rather
than a single-quoted -f body='...' string — reply text can legitimately contain
apostrophes (don't), backticks, or $(...) (often just paraphrased/quoted from the
PR's own content), any of which breaks out of a single-quoted shell string. The heredoc
delimiter must be quoted (<<'BODY') so none of that is shell-interpreted either:
gh api repos/:owner/:repo/pulls/:number/comments/:comment_id/replies \
-F body=@- -H 'Accept: application/vnd.github+json' -X POST <<'BODY'
[AgentName::ModelName]
Your reply text here...
BODY
This creates a threaded reply under the original comment.
# Reply to comment ID 3317111721 on PR #1234
gh api repos/<owner>/<repo>/pulls/<number>/comments/3317111721/replies \
-F body=@- -H 'Accept: application/vnd.github+json' -X POST <<'BODY'
[AgentName::ModelName]
Fixed the issue. Removed the conflicting class as suggested.
BODY
If you need to edit a reply you already posted:
gh api repos/:owner/:repo/pulls/:number/comments/:comment_id -X PATCH -F body=@- <<'BODY'
[AgentName::ModelName]
Updated reply text...
BODY
Where :comment_id is the ID of the reply you want to update (replies are just comments with their own ID).
Replying is the tail end of an unattended run — the user may not have watched any of it. End with a compact summary so they can audit without re-reading the transcript:
PR: owner/repo#1234 (branch: fix/foo)
Replied:
- 3317111721 (src/auth.ts:42) — fixed, commit a1b2c3d
- 3317111799 (src/api.ts:9) — answered, no change needed
Skipped:
- 3317111850 (src/db.ts:77) — no fix made, nothing to claim
One line per comment, each with the evidence or the reason it was skipped. Keep it to what actually happened — this is a record, not a status report.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/fetch-pr-detailFetch a GitHub PR's metadata + file changes using a two-phase hybrid approach — triage filenames first (no patches), then fetch diffs only for files worth looking at. Use when asked to fetch, show, pull, or summarize a PR's changes. Do NOT trigger for "review this PR" / "find bugs in this PR" — that's a full analysis workflow, not a fetch./fetch-pr-review-commentsHow to fetch PR review comments using gh api. Triggers when the user asks the agent to look at review comments on a specific PR (by number or by referencing "the PR"/"my PR"). Examples: "got comments on PR 123, which should we address", "check the review feedback on the PR", "triage the PR comments". Do NOT trigger when the user pastes a raw gh command — that's a manual action, not a request for the agent to fetch and analyze./request-pr-reviewersRequest PR reviewers (including GitHub Copilot) by browsing valid candidates and confirming a selection conversationally, rather than requiring an exact login/team-slug upfront. User-invoke only — do not trigger automatically from conversational requests; only run when the user explicitly invokes this skill.npx claudepluginhub kaoths/agent-skills --plugin kaoths-skills