Agent Skills: go-error-handling

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).

ID: cxuu/golang-skills/go-error-handling

Repository

cxuuLicense: Apache-2.0
17419

Install this agent skill to your local

npx skills add cxuu/golang-skills --skill go-error-handling

Skill Files

The files that make up go-error-handling.

Download Skill

More agent skills