/kaoths-skills:fetch-pr-review-commentsfrom kaoths-skills
How 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.
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.
Detect owner and repo from the current git remote:
git remote get-url origin
Use the url returned for operations (e.g. git@<prefix[.]>github.com:<owner>/<repo>.git)
If no PR number is given, get it from the current branch:
gh pr view --json number -q '.number'
Resolve owner, repo, and the PR number once, then reuse those literal values for
every later call — never re-run the resolution commands mid-run. A branch checkout or
remote change between calls would otherwise silently retarget a different PR.
Inline review comments on specific lines of code:
gh api repos/:owner/:repo/pulls/:number/comments --paginate --jq '.[]'
Top-level comments on the PR (not tied to specific code):
gh api repos/:owner/:repo/issues/:number/comments --paginate --jq '.[]'
gh api repos/<owner>/<repo>/pulls/<number>/comments --paginate --jq '.[] | {path: .path, line: .line, user: .user.login, body: .body}'
What SKILL.md sets; muted values are Claude Code's defaults
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./reply-pr-review-commentsReply 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./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.Other plugins' skills for the same job
npx claudepluginhub kaoths/agent-skills --plugin kaoths-skills