golang-samber-oops

golang samber oops

samber ↓ 33k
Claude Code
View source ↗

What it does

  • Structured context — key-value attributes on any error
  • Stack traces — automatic call stack capture
  • Error codes — machine-readable identifiers
  • Public messages — user-safe messages separate from technical details
  • Low-cardinality messages — variable data in .With() attributes, not the message string, so APM tools group errors properly
  • .Errorf(format, args...) — create a new error
  • .Wrap(err) — wrap an existing error

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang samber oops

Source

Repository: https://github.com/samber/cc-skills-golang

golang-samber-oops FAQ

What does the golang-samber-oops skill do?

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. Structured context — key-value attributes on any error Stack traces — automatic call stack capture

How do I install golang-samber-oops?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-samber-oops --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-samber-oops?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-samber-oops on getagentictools
[![golang-samber-oops on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-samber-oops.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-samber-oops?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-samber-oops

The second line is the CLI lookup for this page — handy in READMEs and docs.