Agent skill

Get PR Reviews

by cashew-labs in cashew-labs/libretto

Get nicely formatted output of the last review comments on a PR.

MITAuto-check passedDevelopment

Install Get PR Reviews

skills CLI
$ npx skills add cashew-labs/libretto --skill get-pr-reviews -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cashew-labs/libretto get-pr-reviews --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/get-pr-reviews .claude/skills/get-pr-reviews && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
get-pr-reviews
GitHub stars
904
Token cost
~562 tokens
SKILL.md length
112 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Get nicely formatted output of the last review comments on a PR.

  • Works in 2 steps: Determine PR number: If not provided,… → Get formatted review comments: Use the…
  • Tasks that involve Pull requests
  • SKILL.md covers Steps, Output Format, Key Features and Usage Example
  • Calls gh

What it does

Get PR Reviews is an agent skill from cashew-labs/libretto. Get nicely formatted output of the last review comments on a PR. Used internally by other skills.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. The repository describes itself as: The AI toolkit for building reliable browser automations. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/get-pr-reviews”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Determine PR number: If not provided, look up the associated PR for the current branch using
  2. Get formatted review comments: Use the GitHub API to fetch and format all line-specific review comments

What it can do on your machine

Read from SKILL.md and the folder at commit 41ab782. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Get PR Reviews loads about 562 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 112 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~562

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cashew-labs/libretto at commit 41ab782, republished under its MIT licence (© cashew-labs). 112 words, ~562 tokens.

Download SKILL.mdSave it as .claude/skills/get-pr-reviews/SKILL.md (or your agent's skills folder).
name
get-pr-reviews
description
Get nicely formatted output of the last review comments on a PR. Used internally by other skills.

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:

    bash
    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:

    bash
    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

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

© cashew-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/get-pr-reviews of cashew-labs/libretto.

Open the folder on GitHubat commit 41ab782

Compare with similar skills

Get PR Reviews next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Get PR Reviews compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Get PR Reviews this skillcashew-labs/libretto904—~562Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands91k—~2.4kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    91k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Record PR Demo

    payloadcms/payload

    A skill your agent uses when a Payload pull request needs a concise visual walkthrough for reviewers.

    45k GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from cashew-labs/libretto

All 21 skills in this repo
  • System Prompt Writing Guide

    cashew-labs/libretto

    Lays out a minimal, iteration-first approach to writing system prompts for LLM agents, with model-specific notes for Claude, GPT, Gemini, and Codex.

    904 GitHub stars~570 tokensUpdated 1 mo ago
    Auto-check passed
  • Address PR Review Comments

    cashew-labs/libretto

    Works through the review comments on a pull request one by one: fetches the threads, makes the fixes, runs type-check, build and lint, pushes, and resolves the threads.

    904 GitHub stars~532 tokensUpdated 1 mo ago
    Auto-check passed
  • CLI Development

    cashew-labs/libretto

    Design rules for command-line tools: subcommand-scoped help, actionable success output, debuggable failures, stable output, meaningful exit codes and a --json mode.

    904 GitHub stars~781 tokensUpdated 1 mo ago
    Auto-check passed
  • Drives desktop Electron apps already installed on your machine, such as Slack, Discord or VS Code, by relaunching them with a debugging port and using the Libretto CLI.

    904 GitHub stars~967 tokensUpdated 1 mo ago
    Auto-check passed
  • Merge Conflict Resolver

    cashew-labs/libretto

    Resolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash.

    904 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Feature Spec Generator

    cashew-labs/libretto

    Researches the codebase and relevant docs, asks clarifying questions, then writes a spec sheet in specs/ for a significant feature or complex fix.

    904 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Get PR Reviews

What does Get PR Reviews do?

Get nicely formatted output of the last review comments on a PR. Get PR Reviews is an agent skill from cashew-labs/libretto. Get nicely formatted output of the last review comments on a PR.

When should I use Get PR Reviews?

Get PR Reviews fits situations like: tasks that involve Pull requests.

How do I install Get PR Reviews in Claude Code?

Run `npx skills add cashew-labs/libretto --skill get-pr-reviews -a claude-code`. Or copy the skill folder (.agents/skills/get-pr-reviews in cashew-labs/libretto) into .claude/skills/get-pr-reviews in your project. Claude Code loads it when a task matches its description.

How do I install Get PR Reviews in Codex?

Run `npx skills add cashew-labs/libretto --skill get-pr-reviews -a codex`. Or copy the skill folder (.agents/skills/get-pr-reviews in cashew-labs/libretto) into .agents/skills/get-pr-reviews in your project. Codex loads it when a task matches its description.

Can I use Get PR Reviews in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cashew-labs/libretto --skill get-pr-reviews -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/get-pr-reviews, .gemini/skills/get-pr-reviews, .github/skills/get-pr-reviews and .opencode/skills/get-pr-reviews in your project.

What does Get PR Reviews need to run?

Going by SKILL.md and its folder, Get PR Reviews needs the command-line tools its instructions call (gh).

Does Get PR Reviews access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Get PR Reviews safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Get PR Reviews use?

Get PR Reviews is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Get PR Reviews use?

About 562 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Get PR Reviews?

Skills that share tags, products or a category with Get PR Reviews: Finishing a Development Branch (obra/superpowers, 297k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and PR Design Doc (OpenHands/OpenHands, 91k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Get PR Reviews?

cashew-labs (a GitHub organization) maintains it in cashew-labs/libretto, which has 904 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 21, 2026.

Source: cashew-labs/libretto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.