golang-error-handling
97 / 100 · Low risk
Fine to try.
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; …
What this skill can do
Connects to the internet
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'golang-error-handling' ] || [ -L ~/.agents/skills/'golang-error-handling' ]; then echo 'A skill folder named golang-error-handling already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/samber/cc-skills-golang' "$d" && git -C "$d" checkout --quiet 'd68d80aec298e1b74b37c2a472c002b5217248b3' -- 'skills/golang-error-handling' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/golang-error-handling' ~/.agents/skills/'golang-error-handling' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'golang-error-handling' ~/.claude/skills/'golang-error-handling' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/samber/cc-skills-golang/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-11 | d68d80a | 97 |
| 2026-11-08 | bb1d43d | 97 |
| 2026-11-07 | bb1d43d | 97 |