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-handling takes precedence over this one.

Detailed reference material, loaded on demand:

  • references/patterns-and-boundaries.md — checking patterns, Is methods, translating errors at the HTTP boundary, low-cardinality logging, the Go 1.27 vet check on %w with 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:

Installs
188
GitHub Stars
82
First Seen
Mar 27, 2026