golang-fullstack-error-handling
Installation
SKILL.md
Error Handling (Unified Go & DB)
Expert-level review for error handling in Go services using GORM and PostgreSQL. Ensures errors are correctly identified, preserved via wrapping, mapped to domain errors, and retried where appropriate.
When to Apply
Use this skill when:
- Reviewing general Go error propagation and context usage
- Debugging database errors (e.g., duplicate keys, serialization failures)
- Auditing error wrapping with
%wvs%v - Ensuring correct use of
errors.Is/errors.As - Adding retry logic for serializable transactions or deadlocks