opencode-gui: Skill for Claude Code

.agents/skills/get-pr-reviews/SKILL.md

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

A formatter for the latest comments on a GitHub pull request, grouped by file, line, and reply thread.

In plain words
What is it for?
Finding the current pull request and presenting its line-specific review comments in a structured format.
Why use it?
It makes review feedback easier to read and follow than raw API output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is saffron-health/opencode-gui's own configuration. It tells Claude Code and Codex how to work on opencode-gui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opencode-gui configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saffron-health/opencode-gui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saffron-health/opencode-gui/main/.agents/skills/get-pr-reviews/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/saffron-health/opencode-gui

Made for: Claude Code, Codex.

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/opencode-gui/get-pr-reviews/github.svg)](https://agentmods.dev/skills/saffron-health/opencode-gui/get-pr-reviews)
Your own site
<a href="https://agentmods.dev/skills/saffron-health/opencode-gui/get-pr-reviews"><img src="https://agentmods.dev/badge/skills/saffron-health/opencode-gui/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/opencode-gui/get-pr-reviews"><img src="https://agentmods.dev/badge/skills/saffron-health/opencode-gui/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.
Origin 100% copy Near-identical to another mod 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 9d ago against content hash 90ca15172448, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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

This is a copy

100% identical to get-pr-reviews — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 9d 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/opencode-gui (58 stars, last pushed 6mo 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. It is 100% identical to get-pr-reviews, differing in 0 lines, and is treated as a copy.