get-pr-reviews

get-pr-reviews is a skill for Claude Code from saffron-health/libretto. It costs 24 tokens per session (591 once invoked), scanned A, original, MIT.

A command that formats the latest review comments on a GitHub pull request, grouping them by file and line. Pull request reviews are feedback on proposed code changes.

In plain words
What is it for?
Use it to find the current branch's pull request and list its line-specific review comments with replies grouped together.
Why use it?
It turns scattered line comments into a readable summary, making it easier to see what reviewers said and where.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the libretto plugin — 24 skills shipped together

Good fit Use it to find the current branch's pull request and list its line-specific review comments with replies grouped together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saffron-health/libretto/get-pr-reviews
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 saffron-health/libretto --skill get-pr-reviews
Clone the repo
git clone --depth 1 https://github.com/saffron-health/libretto

Made for: Claude Code.

Or install libretto, the plugin that ships this one along with the rest of its 24 skills.

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 get-pr-reviews

README.md
[![agentmods](https://agentmods.dev/badge/skills/saffron-health/libretto/get-pr-reviews/github.svg)](https://agentmods.dev/skills/saffron-health/libretto/get-pr-reviews)
Your own site
<a href="https://agentmods.dev/skills/saffron-health/libretto/get-pr-reviews"><img src="https://agentmods.dev/badge/skills/saffron-health/libretto/get-pr-reviews/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for get-pr-reviews

Your own site · 80×15
<a href="https://agentmods.dev/skills/saffron-health/libretto/get-pr-reviews"><img src="https://agentmods.dev/badge/skills/saffron-health/libretto/get-pr-reviews.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 591 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00024 $0.00591
Opus 5 $0.00012 $0.00296
Sonnet 5 $0.00005 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 11d ago against content hash 90ca15172448, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

get-pr-reviews 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 11d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/get-pr-reviews/SKILL.md · 70 lines

How it starts

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

Get nicely formatted review comments for a pull request, grouped by file and line with proper comment threading.

Steps

  1. Determine PR number: If not provided, look up the associated PR for the current branch using:

    gh pr view --json number --jq '.number'
    
  2. Get formatted review comments: Use the GitHub API to fetch and format all line-specific review comments:

    gh api repos/:owner/:repo/pulls/{PR_NUMBER}/comments --jq '
    group_by(.path, .line) |
    map({
      path: .[0].path,
      line: .[0].line,
      comments: sort_by(.created_at)
    }) |
    sort_by(.path, .line) |
    map(
      "**\(.path)**\n  Line \(.line):" +
      (.comments |
       map(
         if .in_reply_to_id then
           "  |  \(.user.login): \(.body)"
         else
           " (\(.user.login)): \(.body)"
         end
       ) |
       join("\n")) + "\n"
    ) |
    join("\n")
    '
    

Output Format

The formatted command produces output like:

**apps/api/src/handlers/optionsHandlers.ts**
  Line 98: (tanishqkancharla): I think this is a bug. If you search for e.g. "blue cros", none of these search conditions will match.
  |  tanishqkancharla: I see that you re-query all insurances below, so this doesn't get used.
  |  Mochael: I think we should ditch the ilikes and just use the fuzzy search applied to planName, payer name and abbreviation
  |  tanishqkancharla: default to fuzzy search

**apps/api/src/handlers/optionsHandlers.ts**
  Line 116: (tanishqkancharla): fyi: don't need to fix, but I think you can just do `query.where(and(...conditions, or(...searchConditions)))`

Key Features

  • Grouped by file and line: Comments are organized by their location in the code
  • Threaded conversations: Replies are indented with | to show the conversation flow
  • Chronological order: Comments within each thread are sorted by creation time
  • User attribution: Each comment shows the GitHub username of the author

Usage Example

# Get formatted review for PR #84
gh api repos/saffron-health/monorepo/pulls/84/comments --jq '...'

Read the full file on GitHub · 70 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. 11d ago First seen · 70 lines · 24 tokens per session scan A 90ca15172448

Subscribe to this mod's changes

get-pr-reviews is a skill published in the GitHub repository saffron-health/libretto (889 stars, last pushed 21d ago), licensed MIT. It adds 24 tokens to every session and 591 once invoked, about $0.0001 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

hyperflow-audit

Hyperflow code review. Use when the user wants the current diff, a commit, branch, or PR reviewed — verbs like audit, review, "check for issues", "security check", "code review". Multi-level review (L1 quick → L5 exhaustive), writes findings to .hyperflow/audits/, then a fix-gate.

jeremylongshore/tons-of-skills-marketplace · 75 tokens

pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 59 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

pr-threshold

Track commit accumulation and trigger PR when thresholds crossed.

WellApp-ai/Well · 13 tokens

no-mistakes

Validate committed feature-branch changes through the no-mistakes pipeline: intent, rebase, review, test, docs, lint, push, PR, and CI. Use when the user asks to run no-mistakes, ship safely, validate before pushing, or gate a change before it reaches upstream.

stevesolun/ctx · 67 tokens

code-review-github

GitHub PR workflow orchestration for code review — list PRs, post comments, apply labels, and guarded auto-merge.

initializ/forge · 30 tokens