gh-review

gh-review is a command for Claude Code from synaptiai/synapti-marketplace. It costs 0 tokens per session (1,627 once invoked), scanned A, original, Apache-2.0.

A pull-request review procedure for GitHub, where a pull request is a proposed code change awaiting review. It checks the correct branch, related issues, existing discussion, changed files, and project conventions.

In plain words
What is it for?
Use it to inspect a pull request, retrieve linked issue requirements and comments, check repository conventions, and prepare or submit a review after confirmation.
Why use it?
It gives reviewers the surrounding context needed to judge a change instead of looking only at the code diff. It also asks for confirmation before review decisions are submitted.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit Use it to inspect a pull request, retrieve linked issue requirements and comments, check repository conventions, and prepare or submit a review after confirmation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/synaptiai/synapti-marketplace/gh-review
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.

Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

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 gh-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-review/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-review)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-review"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-review/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 gh-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-review"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,627 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.00000 $0.01627
Opus 5 $0.00000 $0.00813
Sonnet 5 $0.00000 $0.00325
Haiku 4.5 $0.00000 $0.00163

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

Security

Grade A, and why

gh-review 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.

.claude/commands/gh-review.md · 223 lines

How it starts

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

Review PR #$ARGUMENTS

Review a pull request with proper branch checkout and convention checks.

Tool Usage: This workflow uses the AskUserQuestion tool to confirm review decisions, clarify ambiguous findings, and get approval before submitting reviews.

Process

  1. Save current branch:

    git branch --show-current
    
  2. Fetch PR details and any existing reviews/comments:

    gh pr view $ARGUMENTS --json title,body,headRefName,baseRefName,additions,deletions,changedFiles,commits,files,reviews
    gh api repos/synaptiai/synapti-marketplace/pulls/$ARGUMENTS/comments
    
  3. Fetch PR conversation (general discussion comments):

    gh api repos/{owner}/{repo}/issues/$ARGUMENTS/comments
    
  4. Extract and fetch linked issue:

    # Extract issue number from PR body (looks for "closes #X", "fixes #X", etc.)
    gh pr view $ARGUMENTS --json body --jq '.body' | grep -oiE '(closes|fixes|resolves)\s*#[0-9]+' | grep -oE '[0-9]+'
    

    If linked issue found:

    # Fetch full issue with acceptance criteria
    gh issue view {linked-issue} --json title,body,comments
    
    # Fetch all issue comments
    gh api repos/{owner}/{repo}/issues/{linked-issue}/comments
    
  5. Cross-reference checklist: Create a verification list from issue acceptance criteria to check against implementation

  6. If previous reviews or comments exist: This is a follow-up review. You MUST:

    • Read through ALL previous review comments
    • Track each piece of feedback that was given
    • Later verify each item was addressed (fixed or explained)
    • Note: You're still doing a FULL review - previous reviewers may have missed things
  7. Checkout the PR branch (CRITICAL - never review from wrong branch):

    git fetch origin {headRefName}
    git checkout {headRefName}
    
  8. Get the full diff:

    gh pr diff $ARGUMENTS
    
  9. Read all changed files - use the Read tool on each modified file to understand the full context

Read the full file on GitHub · 223 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 · 223 lines · 0 tokens per session scan A d388a6baefbd

Subscribe to this mod's changes

gh-review is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,627 tokens. 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-31.