gopherstack: Command for Claude Code

.gemini/commands/review.md

review is a command for Claude Code, Gemini CLI from BlackbirdWorks/gopherstack. It costs 10 tokens per session (865 once invoked), scanned A, original, MIT.

A command that reviews code changes and gives a structured assessment with an A-to-F grade. It can inspect local changes, staged changes, a branch difference, or a GitHub pull request.

In plain words
What is it for?
Use it to review uncommitted or staged work, compare a branch with its base branch, or inspect the changes in a GitHub pull request.
Why use it?
It provides a repeatable way to find problems in a change before it is merged. A pull request is a proposed change submitted for review.

Command for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: $ARGUMENTS substitution, but also installed under .gemini/.

This is BlackbirdWorks/gopherstack's own configuration. It tells Claude Code and Gemini CLI how to work on gopherstack 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 gopherstack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BlackbirdWorks/gopherstack. 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/BlackbirdWorks/gopherstack/main/.gemini/commands/review.md
Clone the repo
git clone --depth 1 https://github.com/BlackbirdWorks/gopherstack

Made for: Claude Code, Gemini CLI.

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 review

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/blackbirdworks/gopherstack/review"><img src="https://agentmods.dev/badge/commands/blackbirdworks/gopherstack/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 865 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.00010 $0.00865
Opus 5.5 $0.00004 $0.00346
Sonnet 5.5 $0.00002 $0.00173
Haiku 4.5 $0.00001 $0.00086

Measured yesterday against content hash 2779922de1a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

.gemini/commands/review.md · 114 lines

How it starts

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

Review code and provide a structured assessment with grading.

Arguments: $ARGUMENTS

Diff Source Resolution

Determine the diff to review based on arguments:

Argument Diff command Use case
(none) git diff + git diff --staged Review uncommitted + staged changes
--staged git diff --staged Review only staged changes
--branch git diff origin/<base>...HEAD Review branch diff vs base branch
--pr <url> gh pr diff <url> Review a GitHub PR

Step 1: Get the diff

Based on the arguments, run the appropriate diff command:

# Default (no args): uncommitted + staged
DIFF=$(git diff; git diff --staged)

# --staged: only staged
DIFF=$(git diff --staged)

# --branch: branch diff (detect base branch)
BASE=$(git rev-parse --abbrev-ref HEAD@{upstream} 2>/dev/null | sed 's|origin/||' || git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||' || echo "main")
DIFF=$(git diff origin/$BASE...HEAD)

# --pr <url>: PR diff
DIFF=$(gh pr diff <url>)

If the diff is empty, report "No changes to review" and stop.

Step 2: Review the diff

Review the diff systematically. For each issue found, classify by severity:

CRITICAL - Must fix before merge:

  • Security vulnerabilities (injection, auth bypass, secrets in code)
  • Data loss risks (missing transactions, unsafe deletes)
  • Correctness bugs (race conditions, nil dereference, logic errors)

MAJOR - Should fix before merge:

  • Logic errors that may not crash but produce wrong results
  • Missing error handling on external calls
  • API contract violations
  • Missing tests for critical paths

MINOR - Nice to fix:

  • Style inconsistencies with surrounding code
  • Naming issues (unclear or misleading names)
  • Missing comments on non-obvious logic
  • Minor code smells

For each issue, note:

  • File and line number
  • Severity (CRITICAL, MAJOR, MINOR)
  • Description of the issue
  • Suggested fix (specific, actionable)

Read the full file on GitHub · 114 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. yesterday First seen · 114 lines · 10 tokens per session scan A 2779922de1a5

Subscribe to this mod's changes

review is a command published in the GitHub repository BlackbirdWorks/gopherstack (17 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 865 once invoked, about $0.0000 per session on Opus 5.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-11-07.

Related

review compared with commands from other repositories

review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewBlackbirdWorks/gopherstackCommand17yesterdayMITA10Claude Code, Gemini CLI
review_prsaws-samples/sample-autonomous-cloud-coding-agentsCommand172todayMIT-0A0Claude Code
review_praws-samples/sample-autonomous-cloud-coding-agentsCommand172todayMIT-0A0Claude Code
review-branchdamusix/atomic-claudeCommand1165d agoMITA35Claude Code
refactorRchGrav/claudeboxCommand1.2k1mo agoMITA9Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand49todayMITA0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand49todayMITA0GitHub Copilot