Registry / samber

samber/cc-skills-golang/golang-error-handling

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; f

Agent skill · version 2.0.1-main.1794413031.gd68d80a · from samber/cc-skills-golang

Install

npx yarkr-cli add skill:samber/cc-skills-golang/golang-error-handling

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:samber/cc-skills-golang/golang-error-handling
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:samber/cc-skills-golang/golang-error-handling

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:samber/cc-skills-golang/golang-error-handling

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.