hoangnguyen0403/common-error-handling
Cross-cutting standards for error design, response shapes, error codes, and boundary placement across API, domain, and infrastructure layers. Use when defining error hierarchies, wrapping exceptions, building standardized error responses, or placing error boundaries in layered architectures.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill common-error-handling
See implementation examples for standard error response shape.
fmt.Errorf("process: %w", err), new Error('msg', { cause })).SCREAMING_SNAKE_CASE IDs (ORDER_PAYMENT_FAILED).catch(e) {} without logging or re-throwing.400 with specific details for validation instead of 500.catch or silently ignore a failure. Log, wrap, rethrow, or map it deliberately at the correct boundary.Take hoangnguyen0403/common-error-handling from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.