# Error Handling

> Idiomatic Go error handling with wrapping and custom types.

- Skill: `shaddyx/error-handling` (Agent Skill)
- Install (CLI): `npx skillmds@latest add shaddyx/error-handling`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shaddyx/error-handling/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: shaddyx (https://skillmd.com/u/shaddyx)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/shaddyx/error-handling

---


# Error Handling

Idiomatic error handling in Go: wrap with %w, use errors.Is and errors.As,
and define typed errors for domain rejections.

Use goleak to avoid goroutine leak detection confusion.

