google-go-style
Skill9 starsChanged 3 days agoMITView on GitHub
按 Google Go Style 编写、重构或审查 Go 代码。用于命名、注释、接口、错误处理、并发、包组织与可维护性决策。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- shawn-maybush/google_style_guide_agent_skillstheir own version, first seen Jan 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
- shawn-maybush/google_style_guide_agent_skills★ 2same 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 repository17 other files it gives its agents.
- brief-outputSkill
- insight-collectorSkill
- insights-reportSkill
- json-canvasSkill
- md2wechatSkill
- note-creatorSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- peleSkill
- portpilot-assistantSkill
- publication-ready-docs-jevSkill
- publication-ready-docsSkill
- readme-maintainerSkill
- sync-to-githubSkill
- tech-articleSkill
- wechat2mdSkill
- wechat-archiverSkill
The file
Files
Google Go Style
以 Google Go Style 为风格依据,独立处理代码设计与可读性。
文档等级
| 文档 | 作用 |
| Guide | 核心原则,具有规范性和权威性 |
| Decisions | 具体裁决,从属于 Guide |
| Best Practices | 补充建议,按场景取舍 |
工作方式
- 阅读项目要求和相关代码,确定调用方、现有契约与修改范围。
- 依次考虑清晰性、简单性、简洁性、可维护性和一致性。
- 按 主题索引 读取本地参考文档的相关章节,结合适用条件与例外作出决策。
- 优先使用语言内置机制,其次使用标准库。根据实际需求选择抽象和依赖。
- 按项目要求验证行为,简化实现,删除无用抽象与重复解释。
检查项
- 命名与格式:使用
gofmt。名称在调用位置应清楚、简洁。长行优先通过调整结构改善。 - 注释与文档:说明原因、契约和不明显的行为。
- 错误:提供有用的上下文。调用方需要检查底层错误时使用
%w。明确错误返回和日志责任。 - 接口与包:围绕实际行为组织代码。通常由使用方定义接口,具体类型提供实现。
- 并发与资源:明确 goroutine 的停止方式、等待责任和资源清理责任。
- 值与状态:按语义选择零值、接收器和参数,核对复制、序列化与调用契约。
- 测试代码:按项目选定的测试方式检查结构和失败信息。
输出
交付本次范围内的代码或审查结论。审查结论包含具体位置、实际影响和对应官方章节,并区分行为缺陷、规范性裁决与可选建议。
来源
依据 Google LLC 的 Go Style 文档进行中文概括与主题索引整理。原文采用 CC BY 3.0 许可。本地副本的来源与版本见 来源记录。
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.

