- Wrap errors with context using fmt.Errorf and %w.
- Run golangci-lint with a strict config and format with gofmt.
- Write table-driven tests with t.Run.
- Accept interfaces, return structs.
Golang style guide is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Go style rules: error wrapping, linting and table-driven tests. Load when writing or reviewing Go code.
.claude/skills/golang-style-guide/SKILL.md.cursor/rules/golang-style-guide.md.agents/skills/golang-style-guide/SKILL.md