address-pr-comments

A pull-request review workflow that collects open comments from both human reviewers and automated tools such as Greptile. It groups repeated comments and decides whether each one needs a code fix, an explanation, or user attention.

In plain words
What is it for?
Finding the current branch's pull request, fetching its issue and inline review comments, removing duplicates, and resolving each comment.
Why use it?
It gathers review feedback from separate GitHub comment locations and prevents the same finding from being handled repeatedly.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ruddercode/rudder/address-pr-comments
Any agent
npx skills add RudderCode/Rudder --skill address-pr-comments
Clone the repo
git clone --depth 1 https://github.com/RudderCode/Rudder

Made for: Claude Code, Codex.

Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00091 $0.00950
Opus 5 $0.00046 $0.00475
Sonnet 5 $0.00018 $0.00190
Haiku 4.5 $0.00009 $0.00095

Measured 2d ago against content hash a518815b996e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

address-pr-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 2d 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.

.agents/skills/address-pr-comments/SKILL.md · 71 lines

How it starts

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

Address PR Comments

Pull review comments off the current branch's GitHub PR, dedupe them against the current HEAD, and apply or decline each one with a written reason.

Workflow

  1. Locate the PR for the current branch:
gh pr view --json number,url,headRefName,state

If no PR exists for the current branch, report no PR found for current branch and stop.

  1. Fetch both top-level (issue) comments and inline review comments:
gh api repos/{owner}/{repo}/issues/{number}/comments --paginate
gh api repos/{owner}/{repo}/pulls/{number}/comments  --paginate

{owner}/{repo} is available from gh repo view --json nameWithOwner or from git remote get-url origin. {number} comes from step 1. Both endpoints are required — Greptile's top-level summary lives on issues/{number}/comments, while its inline findings live on pulls/{number}/comments.

  1. Group and de-duplicate:
  • Dedupe by (path, line, author, body-hash) — re-runs of the same finding share a body so they collapse, but distinct findings on the same line (e.g. a P1 and a P2 on the same line) have different bodies and both survive. When a body collides, keep only the most recent.
  • Discard comments authored by the current user only if they are not feedback to act on (the user's own clarifying replies or self-reviews are not directives; keep them if they contain an explicit instruction or correction directed at the AI).
  • Discard comments from deploy bots: vercel, github-actions, etc.
  • If a comment thread is resolved on GitHub, skip it unless the user explicitly asks otherwise.
  1. Read the code at each cited location. Open the file at path:line and confirm the issue is still present at the current HEAD. A previous commit on this branch may have already fixed it.

  2. For each unresolved comment, choose one of three actions and record which:

  • Fix: apply the smallest correct change. If the comment suggests a patch and you agree with it, follow it; if a smaller or different fix is more correct, do that and explain why in your report.
  • Decline: if the comment is wrong, doesn't apply at the current HEAD, or is purely informational ("note, not a defect"), skip the change and write a one-line reason.
  • Defer to user: if the comment requires a judgement call, design decision, or context you don't have, do not guess — surface it in the report and stop on that comment.

Read the full file on GitHub · 71 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 71 lines · 91 tokens per session scan A a518815b996e

Subscribe to this mod's changes

address-pr-comments is a skill published in the GitHub repository RudderCode/Rudder (23 stars, last pushed 14d ago), licensed Apache-2.0. It adds 91 tokens to every session and 950 once invoked, about $0.0005 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.

Related

Other skills, from other repositories