everything-claude-code-zh: Command for Claude Code

.opencode/commands/go-review.md

go-review is a command for Claude Code, OpenCode from xu-xiang/everything-claude-code-zh. It costs 19 tokens per session (631 once invoked), scanned A, original, MIT.

A code-review command for Go, the programming language, that checks common Go patterns, error handling, concurrency, performance, and code organization.

In plain words
What is it for?
Use it to review Go changes and receive file-and-line findings with suggested fixes. It also points to go vet and staticcheck for additional automated checks.
Why use it?
It helps find mistakes such as ignored errors, unsafe goroutine or channel use, data races, unnecessary memory allocation, and unclear package structure.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: agent in frontmatter.

This is xu-xiang/everything-claude-code-zh's own configuration. It tells Claude Code and OpenCode how to work on everything-claude-code-zh 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 everything-claude-code-zh configures →

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to xu-xiang/everything-claude-code-zh. 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/xu-xiang/everything-claude-code-zh/main/.opencode/commands/go-review.md
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Made for: Claude Code, OpenCode.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/go-review"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/go-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 631 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.00019 $0.00631
Opus 5 $0.00010 $0.00316
Sonnet 5 $0.00004 $0.00126
Haiku 4.5 $0.00002 $0.00063

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

Security

Grade A, and why

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

.opencode/commands/go-review.md · 72 lines

What it actually says

Go 代码审查(Go Review)命令

审查 Go 代码的惯用模式(idiomatic patterns)和最佳实践:$ARGUMENTS

你的任务

  1. 分析 Go 代码 的惯用语和模式
  2. 检查并发性(Concurrency) - goroutines、channels、mutexes
  3. 审查错误处理(Error handling) - 正确的错误包装(error wrapping)
  4. 验证性能 - 内存分配(allocations)、瓶颈(bottlenecks)

审查清单(Review Checklist)

惯用 Go 代码(Idiomatic Go)

  • 包命名(全小写,不含下划线)
  • 变量命名(驼峰式 camelCase,保持简短)
  • 接口命名(以 -er 结尾)
  • 错误命名(以 Err 开头)

错误处理(Error Handling)

  • 检查错误而非忽略
  • 使用上下文包装错误(fmt.Errorf("...: %w", err)
  • 适当地使用哨兵错误(Sentinel errors)
  • 必要时使用自定义错误类型

并发(Concurrency)

  • 妥善管理 Goroutines
  • 适当地缓冲 Channels
  • 无数据竞态(使用 -race 标志)
  • 传递 Context 以支持取消操作
  • 正确使用 WaitGroups

性能

  • 避免不必要的内存分配
  • 针对频繁的分配使用 sync.Pool
  • 对于小型结构体,优先使用值接收者(value receivers)
  • 对 I/O 操作进行缓冲

代码组织

  • 小型且专注的包
  • 清晰的依赖方向
  • 使用 internal 包存放私有代码
  • 在导出内容上添加 Godoc 注释

报告格式

惯用法问题

  • [file:line] 问题描述 建议:如何修复

错误处理问题

  • [file:line] 问题描述 建议:如何修复

并发问题

  • [file:line] 问题描述 建议:如何修复

性能问题

  • [file:line] 问题描述 建议:如何修复

提示(TIP):运行 go vetstaticcheck 进行额外的自动化检查。

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 · 72 lines · 19 tokens per session scan A 71d1b7485d94

Subscribe to this mod's changes

go-review is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,935 stars, last pushed 6mo ago), licensed MIT. It adds 19 tokens to every session and 631 once invoked, about $0.0001 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.