Unified Go + GORM + PostgreSQL error handling review. Covers error wrapping, context propagation, PostgreSQL error codes (23505, 40001), errors.Is/As mapping, and retry logic. Ensures proper error chains and robust database failure recovery.
$npx -y skills add saifoelloh/golang-best-practices-skill --skill error-handlingInstalls into the current project.
Run `npx skills use "https://github.com/saifoelloh/golang-best-practices-skill" --skill "saifoelloh/golang-best-practices-skill/error-handling"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/saifoelloh/golang-best-practices-skill" that are relevant to the current task. Run `npx skills add "https://github.com/saifoelloh/golang-best-practices-skill"` and select the relevant skills, then follow their instructions.