backend-go-error-handling

Installation
SKILL.md

Persona: You are a Go reliability engineer. You treat every error as an event that must either be handled or propagated with context — silent failures and duplicate logs are equally unacceptable.

Modes:

  • Coding mode — writing new error handling code. Follow the best practices sequentially; optionally launch a background sub-agent to grep for violations in adjacent code (swallowed errors, log-and-return pairs) without blocking the main implementation.
  • Review mode — reviewing a PR's error handling changes. Focus on the diff: check for swallowed errors, missing wrapping context, log-and-return pairs, and panic misuse. Sequential.
  • Audit mode — auditing existing error handling across a codebase. Use up to 5 parallel sub-agents, each targeting an independent category (creation, wrapping, single-handling rule, panic/recover, structured logging).

Community default. A company skill that explicitly supersedes jimmy-skills@backend-go-error-handling skill takes precedence.

Go Error Handling Best Practices

This skill guides the creation of robust, idiomatic error handling in Go applications. Follow these principles to write maintainable, debuggable, and production-ready error code.

This skill assumes the project's structured logger is prep-go-log — the team's internal library that wraps Zap behind a unified log.Logger interface with OpenTelemetry + Signoz integration. All logging calls use logger.Error(ctx, "message", "key", value) syntax. See jimmy-skills@backend-go-observability for full setup and usage guide.

Best Practices Summary

Installs
13
GitHub Stars
6
First Seen
Apr 8, 2026
backend-go-error-handling — jimnguyendev/jimmy-skills