golang-error-handling
samber/cc-skills-golang
This skill provides comprehensive guidelines for writing idiomatic, robust, and production-ready error handling in Go. It covers best practices for error creation, proper wrapping using `%w`, inspection techniques with `errors.Is` and `errors.As`, adhering to the single handling rule, and utilizing structured logging with `slog`. Use it when auditing, reviewing, or writing new Go code to ensure reliable error propagation and logging.