/pr-comments:comments [pr-url-or-ref] [--include-resolved]from pr-comments
Fetch active (unresolved) PR comments from GitHub and format them for LLM consumption. Use when user wants to review, respond to, or address PR feedback.
Ships in pr-comments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fetch active (unresolved) comments from a GitHub Pull Request and format them for LLM processing. Use --include-resolved to also include resolved threads.
https://github.com/owner/repo/pull/123) or PR reference (e.g., owner/repo#123 or just 123 if in a repo). In Claude Code this is $ARGUMENTS; under Codex or OpenCode, take it from the user's prompt (OpenCode's /comments adapter places command arguments there). If not provided, automatically detects the PR from the current git branch.--include-resolved (optional): Include resolved threads in the output. By default, only active (unresolved) threads are exported.owner/repo#123, or a bare number. In Claude Code it arrives via $ARGUMENTS (the harness substitutes it). Under Codex or OpenCode, read the ref from the user's prompt. Then run the comments.sh script that sits in this skill's own directory — right next to this SKILL.md. You already know that directory's absolute path (it's where you loaded this file from), so invoke the script by that path directly. Pass the ref as a single quoted argument — omit it entirely only when the user gave none, to auto-detect the PR from the current branch:Also pass --include-resolved as its own argument whenever the user asked to include resolved threads (it can appear with or without a PR ref); omit it otherwise.
# with an explicit ref:
bash "<this skill's directory>/comments.sh" "<pr-url-or-ref>"
# no ref → auto-detect from the current branch:
bash "<this skill's directory>/comments.sh"
# include resolved threads too (with or without a ref):
bash "<this skill's directory>/comments.sh" "<pr-url-or-ref>" --include-resolved
Do not locate the script with find ~/.claude ~/.codex ~/.cache/opencode … | head -1: that scans every cached install and can execute a stale copy from an older plugin version instead of the one next to this SKILL.md. Do not pass a literal $ARGUMENTS under Codex or OpenCode either — an unset shell variable expands to empty and silently auto-detects the wrong PR, and it drops flags like --include-resolved.
The script outputs the path to the generated markdown file on stdout. Capture this path and read the file contents.
Summarize for the user:
For each one of the open comments:
Once you reach agreement with the user
reply.sh commands from the "How to Reply" section of the markdown file (it appends the signature and silences output)reply.sh … --comment <ID> --body "…" --resolve (no thread ID needed). Keep open any thread that is still a pending discussion — an unresolved debate, a design decision awaiting a call, or anything needing further back-and-forth. Tell the user which threads you resolved and which you left open, and why.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pedropaulovc/agent-plugins --plugin pr-comments