go-error-handling
95 / 100 · Low risk
Fine to try.
Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).
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/'go-error-handling' ] || [ -L ~/.agents/skills/'go-error-handling' ]; then echo 'A skill folder named go-error-handling already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/cxuu/golang-skills' "$d" && git -C "$d" checkout --quiet '91f0c2eef559a3168f9d3c38f5f99936d472b508' -- 'skills/go-error-handling' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/go-error-handling' ~/.agents/skills/'go-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/'go-error-handling' ~/.claude/skills/'go-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/cxuu/golang-skills/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-07 | 91f0c2e | 95 |