OpenAgentSkill Registry Manifest Skill: golang-error-handling Slug: samber-golang-error-handling Category: research Description: 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. Agent fit: - Decision: 93/100 Production-ready - Primary fit: Coding agents - Role: Primary pick Supply profile: - Track: Coding and developer agents - Scenario: Coding agents - Applicable agents: Claude Code, OpenAI Agents, CLI, Codex, Cursor - Maintenance: 1d since push - Risk: Safe to try Trust: - Trust score: 81/100 Strong shortlist - Audit: 85/100 Safe to try Attribution: - Status: Registry indexed - Source: recursive skill source sync - Creator: samber - Claim URL: https://www.openagentskill.com/skills/samber-golang-error-handling#claim-this-skill Install: npx skills add samber/cc-skills-golang --skill golang-error-handling URLs: - Web: https://www.openagentskill.com/skills/samber-golang-error-handling - API: https://www.openagentskill.com/api/agent/skills/samber-golang-error-handling - Install API: https://www.openagentskill.com/api/skills/samber-golang-error-handling/install - Repository: https://github.com/samber/cc-skills-golang/tree/main/skills/golang-error-handling