go-pr-reviewer

go-pr-reviewer is an agent for Claude Code from muratmirgun/gophers. It costs 105 tokens per session (1,618 once invoked), scanned A, original, MIT.

A coding agent that reviews Go pull requests, patches, or staged changes before they are merged. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to review Go diffs for errors, concurrency, security, naming, interfaces, data structures, logging, imports, and other code-quality concerns.
Why use it?
It finds likely problems in the changed code and explains them before human reviewers or production systems have to discover them.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the gophers plugin — 26 skills, 4 agents shipped together

Good fit Use it to review Go diffs for errors, concurrency, security, naming, interfaces, data structures, logging, imports, and other code-quality concerns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/muratmirgun/gophers/go-pr-reviewer
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/muratmirgun/gophers

Made for: Claude Code.

Or install gophers, the plugin that ships this one along with the rest of its 26 skills, 4 agents.

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 go-pr-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/muratmirgun/gophers/go-pr-reviewer/github.svg)](https://agentmods.dev/agents/muratmirgun/gophers/go-pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/muratmirgun/gophers/go-pr-reviewer"><img src="https://agentmods.dev/badge/agents/muratmirgun/gophers/go-pr-reviewer/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 go-pr-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/muratmirgun/gophers/go-pr-reviewer"><img src="https://agentmods.dev/badge/agents/muratmirgun/gophers/go-pr-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 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,618 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.00105 $0.01618
Opus 5 $0.00053 $0.00809
Sonnet 5 $0.00021 $0.00324
Haiku 4.5 $0.00011 $0.00162

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

Security

Grade A, and why

go-pr-reviewer 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 10d 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.

agents/go-pr-reviewer.md · 148 lines

How it starts

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

go-pr-reviewer

A focused subagent that produces a community-style Go review for a single diff. It does not edit code, does not push commits, does not approve or block PRs — it returns a structured review payload the dispatcher can post.

When to Dispatch

Dispatch this agent when:

  • A PR diff is available locally (git diff, gh pr diff, a .patch file)
  • Author wants a review before requesting human reviewers
  • Pre-merge gate in CI/CD pipelines
  • Periodic audit of recent commits

Do not dispatch when:

  • Reviewing a non-Go diff (return immediately if files are not .go)
  • The diff is a pure rename, generated code (*.pb.go, mock_*.go), or vendored
  • The change is < 5 lines of trivial whitespace/comment fixes (overkill)

Input Contract

Dispatcher must supply one of:

Input Format Example
diff_source local | pr_number | patch_path pr_number
target path / PR number / file path 42 for PR #42
base_ref (optional) git ref origin/main
focus (optional) comma-separated topics concurrency,errors

If focus is omitted, walk all topics in the skill.

Process

  1. Load the underlying skill. Invoke the go-code-review skill — its checklist drives the review.
  2. Fetch the diff.
    • localgit diff $base_ref...HEAD -- '*.go'
    • pr_numbergh pr diff <n> -- '*.go'
    • patch_path → read the file
  3. Run mechanical checks first on the touched packages (do not block on style):
    gofmt -l <files>
    go vet ./...
    golangci-lint run --new-from-rev=$base_ref ./... 2>/dev/null || true
    
  4. Walk the diff file-by-file, topic-by-topic. For each touched .go file:
    • Read the file (post-change version) to see context around modified lines
    • For each topic in the go-code-review skill (Errors → Naming → … → Testing), flag matching findings
    • Every finding: file:line + rule citation + one-line description
  5. Re-read your own findings. Drop any finding you cannot defend with a project rule. Cite the rule by name (go-naming: initialisms, go-error-handling: wrap-with-real-context).
  6. Group by severity using the rubric:
    • Must Fix — race, security, swallowed error, broken contract, data loss
    • Should Fix — wrong layer for interface, panic in library, leaky goroutine
    • Nit — name preference, comment phrasing, ordering
  7. Add praise for at least one non-trivial improvement, when warranted.

Read the full file on GitHub · 148 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. 10d ago First seen · 148 lines · 105 tokens per session scan A b87d17b2726a

Subscribe to this mod's changes

go-pr-reviewer is an agent published in the GitHub repository muratmirgun/gophers (8 stars, last pushed 29d ago), licensed MIT. It adds 105 tokens to every session and 1,618 once invoked, about $0.0005 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-31.

Related

Other agents, from other repositories

go-reviewer

Run Go static analysis tools and generate a categorized review report. Use before committing or creating PRs for Go code.

NYTC69/review-loop · 27 tokens

go-backend

Go Backend Execution Agent.

PlanVault/ai-engineering-playbook · 8 tokens

go-reviewer

Expert Go code reviewer specializing in idiomatic Go, concurrency patterns, error handling, and performance. Use for all Go code changes. MUST BE USED for Go projects.

sjarmak/coding-agent-workflows · 37 tokens

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

anthropics/claude-plugins-official · 55 tokens

java-refactor-expert

Expert Java and Spring Boot code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Spring Boot best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.

giuseppe-trisciuoglio/developer-kit · 61 tokens

go-concurrency-reviewer

Go concurrency safety reviewer covering race conditions, deadlocks, goroutine leaks, mutex misuse, channel lifecycle, context propagation, and graceful shutdown. Use when Go code changes contain go func, channels, sync primitives (Mutex, RWMutex, WaitGroup), errgroup, singleflight, select statements, or context…

johnqtcg/awesome-skills · 85 tokens