Curated Go skills for AI coding agents.
Idiomatic by default, loaded only when they matter.
Quick start ·
Usage ·
Skills ·
How it works ·
Evaluations ·
Customizing ·
FAQ ·
Contributing
npx skills add eduardo-sl/go-agent-skills
Why
AI coding agents write Go that compiles. Writing Go that reads like Go takes
more than that. Left to defaults, an agent returns errors with no context,
declares interfaces next to their only implementation, starts goroutines nothing
ever stops, and reaches for interface{} where a type parameter belongs.
go-agent-skills gives the agent the judgment an experienced Go reviewer
brings: 35 focused skills grounded in Effective Go,
Go Code Review Comments, and patterns
from large-scale production Go services. They follow the open
Agent Skills standard, work in any compatible agent,
and load on demand. Until a skill is relevant, it costs about 135 tokens.
// ❌ Before: the caller gets "sql: no rows in result set" and nothing else
func (s *Service) User(id int) (*User, error) {
u, err := s.repo.Find(id)
if err != nil {
return nil, err
}
return u, nil
}
// ✅ After (go-error-handling + go-context): cancellable, wrapped, still matchable
func (s *Service) User(ctx context.Context, id int) (*User, error) {
u, err := s.repo.Find(ctx, id)
if err != nil {
return nil, fmt.Errorf("find user %d: %w", id, err)
}
return u, nil
}
Highlights
- 🎯 35 skills across six areas. Code quality, architecture, data, safety and performance, testing, and workflow.
- 🪶 Progressive disclosure. About 4,800 tokens of descriptions at startup. Bodies and 62 reference files load only when a task needs them.
- 🧭 A router for overlap.
go-skills-router maps a task to the skill that owns it and draws the line where two overlap.
- 🧪 Measured, not asserted. 159 eval cases you run with and without the skills. The difference between the two runs is the result.
- 🔐 Least privilege. Every skill declares scoped
allowed-tools. Review and audit skills cannot write.
- 🔄 Current with Go. Covers Go 1.21 through 1.27. A weekly workflow opens an issue when a new Go release ships that
go-modernize doesn't cover yet.
- 🔌 Agent-agnostic. Works in Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, OpenCode, Cline, and more.
🚀 Quick start
Install with the npx skills CLI. It detects the agents you
have and puts each skill where that agent looks for it. That covers Claude Code,
Cursor, Codex, GitHub Copilot, Windsurf, OpenCode, Cline,
and 37+ more agents.
# Everything, interactive
npx skills add eduardo-sl/go-agent-skills
# Look before you install
npx skills add eduardo-sl/go-agent-skills --list
# Only the skills you want
npx skills add eduardo-sl/go-agent-skills --skill go-code-review --skill go-defensive-coding
# Globally, for every project
npx skills add eduardo-sl/go-agent-skills -g
# Non-interactive, for CI and dotfiles
npx skills add eduardo-sl/go-agent-skills --all -y
Claude Code: plugin marketplace
/plugin marketplace add eduardo-sl/go-agent-skills
/plugin install go-agent-skills@eduardo-sl
Or install the files directly: npx skills add eduardo-sl/go-agent-skills -a claude-code
Cursor