Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel e…
Part of cc-skills-golangPack · 46 skills
by samber· Developer toolsUnclaimed · Yours? Claim it
About
Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code. For samber/oops specifics → See `samber/cc-skills-golang@golang-samber-oops` skill; for slog handler ecosystem → See `samber/cc-skills-golang@golang-samber-slog` skill.
Skills people install alongside golang-error-handling.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.copilot/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.cursor/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.claude/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.agents/skills/golang-error-handling
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.gemini/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling .agents/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.openclaw/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.config/opencode/skills/golang-error-handling
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-error-handling ~/.hermes/skills/golang-error-handling
Scanned and passed · checked 2 h ago
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
No reviews yet. Used golang-error-handling? Say how it went.
Write a reviewTw93's engineering habits as eight skills: plan before you build, debug to root cause, review before you ship, and more.
Go skills for coding agents: idiomatic style, error handling, testing, concurrency, security and performance for production Go projects.
Test Double's coding skills: build test-first, refactor under green tests, review your branch and trace bugs to their root cause.
Nobody has shared how they use golang-error-handling yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.