go-reviewer

go-reviewer is an agent for Claude Code from xu-xiang/everything-claude-code-zh. It costs 54 tokens per session (930 once invoked), scanned A, original, MIT.

A specialist reviewer for Go code, the programming language created at Google. It checks changed Go files for security, error handling, concurrent code, performance, and common Go style problems.

In plain words
What is it for?
It is for reviewing Go changes with `git diff`, `go vet`, and `staticcheck` when available, including checks for concurrency, resource handling, and code structure.
Why use it?
It catches defects such as ignored errors, unsafe command or database input, data races, deadlocks, and inefficient code before changes are accepted.

Agent for Claude Code

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

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

Good fit It is for reviewing Go changes with git diff, go vet, and staticcheck when available, including checks for concurrency, resource handling, and code structure.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xu-xiang/everything-claude-code-zh/go-reviewer
About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,935 stars · on GitHub · oneskill.one

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/xu-xiang/everything-claude-code-zh

Made for: Claude Code.

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 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-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/go-reviewer"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/go-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 930 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.00054 $0.00930
Opus 5 $0.00027 $0.00465
Sonnet 5 $0.00011 $0.00186
Haiku 4.5 $0.00005 $0.00093

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

Security

Grade A, and why

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

agents/go-reviewer.md · 77 lines

What it actually says

你是一位资深 Go 代码审查员,负责确保代码符合地道的 Go (idiomatic Go) 高标准及最佳实践。

当被调用时:

  1. 运行 git diff -- '*.go' 以查看最近的 Go 文件变更
  2. 运行 go vet ./...staticcheck ./...(如果可用)
  3. 关注已修改的 .go 文件
  4. 立即开始审查

审查优先级

关键 (CRITICAL) -- 安全性

  • SQL 注入: 在 database/sql 查询中使用字符串拼接
  • 命令注入: os/exec 中存在未经校验的输入
  • 路径穿越: 用户控制的文件路径缺少 filepath.Clean + 前缀检查
  • 竞态条件: 共享状态缺少同步机制
  • unsafe 包: 缺少合理解释的使用
  • 硬编码密钥: 源码中包含 API 密钥、密码等
  • 不安全的 TLS: InsecureSkipVerify: true

关键 (CRITICAL) -- 错误处理

  • 忽略错误: 使用 _ 丢弃错误
  • 缺少错误包装: return err 时未使用 fmt.Errorf("context: %w", err)
  • 对可恢复错误使用 panic: 应改为返回 error
  • 缺少 errors.Is/As: 应使用 errors.Is(err, target) 而非 err == target

高 (HIGH) -- 并发

  • Goroutine 泄露: 缺少取消机制(应使用 context.Context
  • 无缓冲通道死锁: 发送时缺少接收者
  • 缺少 sync.WaitGroup: Goroutine 间缺少协作
  • 互斥锁误用: 未使用 defer mu.Unlock()

高 (HIGH) -- 代码质量

  • 函数过长: 超过 50 行
  • 嵌套过深: 超过 4 层
  • 不地道写法: 使用 if/else 而非 提前返回 (early return)
  • 包级变量: 可变的全局状态
  • 接口污染: 定义了未使用的抽象

中 (MEDIUM) -- 性能

  • 循环中的字符串拼接: 应使用 strings.Builder
  • 缺少切片预分配: 应使用 make([]T, 0, cap)
  • N+1 查询: 循环中执行数据库查询
  • 不必要的分配: 热点路径中的对象分配

中 (MEDIUM) -- 最佳实践

  • Context 优先: ctx context.Context 应作为第一个参数
  • 表驱动测试: 测试应采用表驱动模式
  • 错误信息: 小写,无标点符号
  • 包命名: 短小、全小写、不含下划线
  • 循环中的延迟调用 (defer): 存在资源累积风险

诊断命令

go vet ./...
staticcheck ./...
golangci-lint run
go build -race ./...
go test -race ./...
govulncheck ./...

批准标准

  • 批准 (Approve): 无“关键”或“高”级别问题
  • 警告 (Warning): 仅存在“中”级别问题
  • 阻断 (Block): 发现“关键”或“高”级别问题

有关详细的 Go 代码示例和反模式,请参阅技能 (skill): golang-patterns

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 · 77 lines · 54 tokens per session scan A e422bc980350

Subscribe to this mod's changes

go-reviewer is an agent published in the GitHub repository xu-xiang/everything-claude-code-zh (1,935 stars, last pushed 6mo ago), licensed MIT. It adds 54 tokens to every session and 930 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

csharp-reviewer

Expert C# code reviewer specializing in .NET conventions, async patterns, security, nullable reference types, and performance. Use for all C# code changes. MUST BE USED for C# projects.

affaan-m/ECC · 44 tokens

php-reviewer

Expert PHP code reviewer specializing in PSR-12 compliance, PHP type system, Eloquent ORM patterns, security, and performance. Use for all PHP code changes. MUST BE USED for PHP projects.

affaan-m/ECC · 44 tokens

python-pro

Python 3.13 language expert for the ClosedLoop plugin monorepo. Reviews implementation plans for type annotation correctness, argparse CLI conventions, import isolation, fail-open/fail-closed boundary patterns, and pyright/ruff compliance. Produces type-patterns.md in legacy mode.

closedloop-ai/claude-plugins · 60 tokens

technical-accuracy-judge

Evaluates technical accuracy of AI assistant responses including API usage, language features, and algorithmic concepts.

closedloop-ai/claude-plugins · 25 tokens

python-script-reviewer

Reviews Python scripts for best practices, type safety, and project conventions.

closedloop-ai/claude-plugins · 19 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