BigHugger
sk Skill · samber

golang-samber-oops

Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports github.com/samber/oops.

installs 8w
3,576
30-day movement
starts with the next reading
Related entries
1
Connections
0
goGo

A SKILL.md that teaches an AI coding agent how to use the samber/oops library for structured error handling in Go. It covers the fluent error builder chain, wrapping practices, panic recovery, context propagation, and logger/APM integration.

Reach for it when your project uses or is adopting github.com/samber/oops and you want the agent to follow its idioms correctly.

Use it to

  • Build structured errors with the oops builder chain
  • Add context when wrapping errors across package boundaries
  • Convert panics to structured errors at goroutine boundaries
  • Keep error messages low-cardinality for APM grouping
  • Separate user-facing messages from developer details

For Go developers using samber/oops with an AI coding agent

Host repository
samber/cc-skills-golang
Version
1.2.1
Installs, lifetime
36k
Installs, 8 weeks
3,576
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,261
Host language
Go
topicsgolangerror-handlingsamber-oopsobservabilityagent-skillbest-practices