go-error-handling

SKILLWorkflowcommunity
v0.0.0cxuuApache-2.0Updated 1mo agoSource →

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 use

Community-submitted skill. Not yet reviewed by the Forge team. Full prompt content may not be available.Request review →
142Repo stars
1Clients
1Formats
1mo agoLast update
Skill
Authorcxuu
Version0.0.0
LicenseApache-2.0
CategoryWorkflow
Formatsskill.md
PromptNot published
Compatibility
Claude✓ Supported
Cursor
Copilot
ChatGPT
Gemini
About

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).

Keywords
skillclaude