go-error-handling
Installation
SKILL.md
Go Error Handling
Go's explicit error handling is a feature, not a limitation. These patterns ensure errors are informative, actionable, and properly propagated.
Community default. A project skill or agent-config rule that explicitly supersedes
go-error-handlingtakes precedence over this one.
Detailed reference material, loaded on demand:
references/patterns-and-boundaries.md— checking patterns,Ismethods, translating errors at the HTTP boundary, low-cardinality logging, the Go 1.27 vet check on%wwith pointer errors.
Read a reference file only when the summary below is not enough.
1. Error Decision Tree
When creating or returning an error, follow this tree: