这是给Go项目用的AI代理技能包,一条命令装完,支持Claude Code、Cursor、Codex、GitHub Copilot等37种以上的代理。内容基于Uber Go风格指南、Effective Go和大型Go服务的实战经验。为啥需要它?因为AI代理没Go特定指导时,会写出Java味儿的Go,忽略惯用的错误处理,搞出goroutine泄漏,还乱用interface{}。装上这些技能,AI就能学会Go工程师的写法——正确的错误包装、消费方定义接口、表驱动测试这些。技能会根据上下文自动加载,适合想用AI写正宗Go代码的开发者。
查看英文原文
go agent skills Curated AI agent skills for Go projects. Install with one command, works everywhere. [安装/使用命令见下方] Supports Claude Code , Cursor , Codex , GitHub Copilot , Windsurf , OpenCode , and 37+ more agents. Compatible with the open Agent Skills ecosystem and npx skills CLI. Built on the Uber Go Style Guide, Effective Go, and hard won production experience with large scale Go services. Why AI coding agents are as good as the context you give them. Without Go specific guidance, they'll write Java flavored Go, ignore idiomatic error handling, create goroutine leaks, and use interface{} where generics belong. These skills teach your agent how to write Go the way experienced Go engineers do — with proper error wrapping, consumer side interfaces, table driven tests, and all the idioms that make Go code maintainable at scale. Skills Catalog Skills load automatically based on context. You can also invoke them directly via slash command (e.g., /go code review ). Code Quality Skill What it does Triggers go coding standards/go coding standards/) Style conventions, naming, imports, struct init, formatting "check Go style", "fix formatting" go code review/go code review/) Structured review process with severity classification "review this code", "check this PR" go error handling/go error handling/) Error wrapping, sentinels, custom types, errors.Is / As "handle errors", "error wrapping" go context/go context/) Context propagation, cancellation, timeouts, values "context usage", "timeout", "context cancellation" go modernize/go modernize/) Generics, slog, errors.Join, slices/maps, range over func "modernize", "use generics", "update Go" go data structures/go data structures/) Slices, maps, sets, aliasing, preallocation, nil vs empty "nil slice", "map iteration", "slice aliasing" go documentation/go documentation/) Godoc conventions, testable examples, deprecation notices "add godoc", "document this package" Architecture & Design Skill What it does Triggers go architecture