npx skills add https://github.com/cxuu/golang-skills --skill go-code-review基于 Go Wiki CodeReviewComments。本清单提供快速审查要点,并附有详细技能的参考链接。
gofmt 或 goimports 格式化 → go-linting广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
_ 丢弃错误;应处理、返回或(在极少数情况下)引发恐慌 → go-error-handlingMixedCaps 或 mixedCaps,永远不要使用下划线;未导出的名称用 maxLength 而不是 MAX_LENGTH → go-namingURL/url、ID/id、HTTP/http(例如,ServeHTTP、xmlHTTPRequest) → go-namingi、r、c);较宽作用域使用较长名称 → go-namingc 代表 Client);不要使用 this、self、me;跨方法保持一致 → go-namingchubby.File 而不是 chubby.ChubbyFile);避免使用 util、common、misc → go-packagesvar t []string(nil)而不是 t := []string{}(非 nil 零长度) → go-data-structures*T 方法的接收器 → go-data-structurescrypto/rand 生成密钥,而不是 math/rand → go-defensivestring 而不是 *string → go-performanceimport _ "pkg" 仅用于主包或测试 → go-packagesExample 函数或展示用法的测试 → go-documentationgot != want → go-testing# 格式化并组织导入
goimports -w .
# 运行 linter 套件
golangci-lint run
# 检查常见问题
go vet ./...
每周安装数
256
仓库
GitHub 星标数
35
首次出现
2026年1月27日
安全审计
安装于
codex241
opencode241
github-copilot240
gemini-cli238
kimi-cli235
amp234
Based on Go Wiki CodeReviewComments. This checklist provides quick review points with references to detailed skills.
gofmt or goimports → go-linting_; handle, return, or (exceptionally) panic → go-error-handlingMixedCaps or mixedCaps, never underscores; unexported is maxLength not MAX_LENGTH → go-namingURL/url, ID/id, HTTP/http (e.g., , ) → var t []string (nil) over t := []string{} (non-nil zero-length) → go-data-structures*T methods' receivers by value → go-data-structurescrypto/rand for keys, not math/rand → go-defensivestring not *string for small fixed-size types → go-performanceimport _ "pkg" only in main package or tests → go-packagesExample functions or tests demonstrating usage → go-documentationgot != want → go-testing# Format and organize imports
goimports -w .
# Run linter suite
golangci-lint run
# Check for common issues
go vet ./...
Weekly Installs
256
Repository
GitHub Stars
35
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex241
opencode241
github-copilot240
gemini-cli238
kimi-cli235
amp234
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
105,000 周安装
ServeHTTPxmlHTTPRequesti, r, c); longer names for wider scope → go-namingc for Client); no this, self, me; consistent across methods → go-namingchubby.File not chubby.ChubbyFile); avoid util, common, misc → go-packages