golang-error-handling - Idiomatic Go Error Handling and Logging Best Practices
Idiomatic Go error handling and structured logging guidelines, covering error wrapping, inspection, audit modes, slog integration, and production practices.
Tags
Updated: 2026-09-18Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write idiomatic Go error handling
- Audit error handling practices
- Review error handling code changes
- Inspect error chains with errors.Is/As
- Wrap errors with contextual details
- Log structured errors using slog
Inputs
- Go source code
- Pull request diffs
- Git repository
Outputs
- Modified Go source files
- Error audit reports
- Code review feedback
Requirements
- Go toolchain
- Git binary
- golangci-lint binary
