pr-review-comments

pr-review-comments is a skill for Claude Code from tomsej/pi-ext. It costs 43 tokens per session (1,137 once invoked), scanned A, original, MIT.

A workflow for handling pull-request review comments, which are suggestions or questions attached to proposed code changes. It covers reading comments, judging them, fixing code, replying, resolving threads, and checking tests.

In plain words
What is it for?
Use it to fetch inline and general PR comments, assess each one, make grouped fixes, run validation, and respond to reviewers.
Why use it?
It turns scattered reviewer feedback into a defined process and helps avoid accepting misunderstandings or overlooking valid issues.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to fetch inline and general PR comments, assess each one…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomsej/pi-ext/pr-review-comments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tomsej/pi-ext --skill pr-review-comments
Clone the repo
git clone --depth 1 https://github.com/tomsej/pi-ext

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-review-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomsej/pi-ext/pr-review-comments.svg)](https://agentmods.dev/skills/tomsej/pi-ext/pr-review-comments)
Your own site
<a href="https://agentmods.dev/skills/tomsej/pi-ext/pr-review-comments"><img src="https://agentmods.dev/badge/skills/tomsej/pi-ext/pr-review-comments.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01137
Opus 5 $0.00022 $0.00568
Sonnet 5 $0.00009 $0.00227
Haiku 4.5 $0.00004 $0.00114

Measured 7d ago against content hash 81ced2862716, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pr-review-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pr-review-comments/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Review Comments

Triage and address review comments on a pull request: read each comment, decide if valid, fix code, verify tests pass, reply, and resolve threads.

Prerequisites

  • gh CLI authenticated
  • Working directory inside the repo (or use --repo owner/repo)

Workflow

1. Fetch review comments

Get all review comments with context:

gh api repos/{owner}/{repo}/pulls/{pr}/comments \
  --jq '.[] | {id, path, line, body, user: .user.login}'

Also check top-level PR comments (non-inline):

gh api repos/{owner}/{repo}/issues/{pr}/comments \
  --jq '.[] | {id, body, user: .user.login}'

2. Triage each comment

For each comment, decide:

  • Valid & actionable → fix the code
  • Valid but won't fix → reply with rationale
  • Invalid / misunderstanding → reply with explanation
  • Question → answer it

Read the relevant file context before deciding. Don't blindly accept or reject.

3. Fix code

Apply fixes for valid comments. Group related fixes into a single commit. Use conventional commit style:

fix(<scope>): address PR review comments

- <summary of fix 1>
- <summary of fix 2>

Stage, commit, and push.

4. Validate tests pass

After fixing code, always run tests before pushing to make sure the fixes don't break anything:

  • Run the project's test command (check project docs / CLAUDE.md / Makefile / mise tasks for the right command).
  • If tests fail, fix the issue before pushing. A review fix that breaks CI is worse than the original comment.
  • If the fix changes test expectations (e.g., updated output values), update the tests too.
  • Pay special attention to mock/stub setups — removing or changing mocks can cause unrelated tests to fail when test infrastructure intercepts more than expected (e.g., mock_provider intercepting locally-evaluated data sources).

Only push once all tests are green.

5. Reply to comments

Reply to each review comment thread using the in_reply_to field:

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 136 lines · 43 tokens per session scan A 81ced2862716

Subscribe to this mod's changes

pr-review-comments is a skill published in the GitHub repository tomsej/pi-ext (70 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 1,137 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.