go-code-quality
Installation
SKILL.md
Go code quality
Production-oriented Go standards. The shape is: this file is the entry point with workflow + non-negotiables; the deep checklist lives in references/go-practices.md and should be loaded when the task is non-trivial (review, refactor, API design, error/concurrency design, or any case where a detailed rule is needed).
Related skills (load alongside as needed):
- [[go-best-practices]] — Rob Pike's Go Proverbs. Reach for it when the question is philosophical/architectural ("is this idiomatic", "channels or mutex", "small vs large interface", "should I use Cgo/unsafe/reflect").
- [[go-modern]] — version-aware modern Go syntax. Reach for it when deciding which feature to use (
slices/maps/cmp,t.Context(),omitzero,b.Loop(),wg.Go(),errors.AsType, etc.).
This skill is the one to reach for when the question is "is this code production-ready" or "review this PR".
Operating workflow
- Classify the task.
- Generate code — design the API and the error contract first, then write code and tests.
- Review code — surface correctness and maintainability risks before style.
- Refactor code — preserve behavior, improve types/errors/boundaries, then simplify.
- Debug code — explain the root cause, propose a minimal fix, mention quality improvements only when relevant.