go-review
Skill0 starsChanged 5 months agoMITView on GitHub
Go code review guidance for idiomatic Go, Effective Go, concurrency safety, error handling, resource leaks, tests, and performance. Use when reviewing .go files, Go diffs, goroutines, channels, APIs, or Go tooling output.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- TheKREATORS/my-claude-skillstheir own version, first seen Mar 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- TheKREATORS/my-claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-designSkill
- architecture-consultantSkill
- backend-patternsSkill
- ci-cdSkill
- code-reviewSkill
- containersSkill
- database-migrationsSkill
- doc-generatorSkill
- git-workflowSkill
- luaSkill
- markdownSkill
- nginxSkill
- nodejsSkill
- observabilitySkill
- product-managerSkill
- project-standards-initSkill
- prompt-designSkill
- python-reviewSkill
- reactSkill
- redisSkill
- relay-imagegenSkill
- releaseSkill
- security-baselineSkill
- semi-mcp-setupSkill
- tailwindcssSkill
- test-engineeringSkill
- tibishu-note-searchSkill
- tibishu-notesSkill
- typescript-reviewSkill
- unity-csharpSkill
- validation-lintSkill
- vueSkill
The file
Files
Skill: Go Review
针对 Go 语言代码进行深度审查,确保其符合 Effective Go 哲学及 Go Code Review Comments 规范。
🎯 触发条件
当以下情况发生时启用:
- "审查这段 Go 代码"
- "这段代码够不够 Idiomatic Go?"
- "帮我看看这个并发处理有没有死锁风险"
- "优化这个 Go 函数的性能"
👉 自动启用本 Skill
🎯 Purpose
提供地道的 (Idiomatic) Go 代码审查,识别潜在的 Bug、性能隐患、并发不安全模式及可读性问题。
🧩 Capabilities
- Idiomatic Go 校验:
- 命名规范:审查变量、函数、包名是否符合 Go 惯例(简洁、避免 Stuttering)。
- 接口设计:遵循“接收接口,返回结构”原则;只在必要时定义接口。
- 错误处理:确保错误被恰当包装(Wrap)而非仅返回;严禁静默忽略错误。
- 并发安全审查:
- Goroutine 生命周期:每个 Goroutine 必须有明确的生命周期管理(Context 取消或退出信号)。
- 竞态检测:识别对共享资源的未同步访问。
- Channel 使用:审查 Channel 是否有缓冲需求,避免阻塞导致的 Goroutine 泄漏。
- 性能与资源评估:
- 内存分配:识别高频路径下的对象逃逸、切片容量预分配不足等问题。
- 标准库应用:优先使用标准库提供的同步原语(Sync 库)及原子操作。
- 测试质量检查:
- 表格驱动测试:推荐使用 Table-Driven Tests 模式以增强测试覆盖面及清晰度。
- 竞态测试:确认是否执行了
-race检测。
🧠 Usage
当以下情况发生时调用:
- 作为 code-review 流程的第二阶段,针对 Go 代码进行深度评估。
- 提交 Go 代码 PR 前进行的自我审查或交叉审查。
- 自动化流水线捕获到 Lint 或 Staticcheck 异常时。
- 针对高性能或高并发模块的代码审阅。
📥 Input
- 待审查的
.go文件或 Diff。 - 如果涉及业务逻辑,需提供背景说明。
📤 Output
结构化的 Go 审查报告(参见 code-review 的 Output 格式),并增加:
- Idiomatic Examples: 展示如何用更地道的方式重写非 Go 风格的代码。
- Optimization Suggestions: 具体的代码性能优化建议。
⚠️ Constraints
- ❌ 不得强制要求特定第三方库(如强制要求使用 sonic 等),应优先保证对标准库的兼容性,除非项目有明确约定。
- ❌ 不重复 Lint 任务:不指正
gofmt或goimports能够自动解决的格式问题。 - ✅ 优先考虑简洁性:Go 的设计哲学是 Simple & Explicit。
- ✅ 关注 Panic 风险:严禁在未恢复的情况下产生非预期的 Panic。
能力溯源 (Source Mapping)
| 能力 | 来源 | 类型 |
| Idiomatic Go 校验 | effective-go | ✅ 语言官方地道指南 |
| 并发安全审计 | go-code-review-comments | ✅ 核心团队审查准则 |
| 性能与内存评估 | uber-go-style-guide | ✅ 工业界高性能实践 |
| 接口设计准则 | effective-go | ✅ 语言官方架构建议 |
📚 参考资料 (References)
🔗 Related Skills
- code-review: 基础审查哲学与流程。
- api-design: 涉及 API 层面的设计审查。
- backend-patterns: 涉及后端架构层面的设计审查。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

