SkillTrust

← All skills

golang-error-handling

97 / 100 · Low risk

Fine to try.

By samber/cc-skills-golang (GitHub) · coding · 3,824 stars · scanned at commit d68d80a

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

Works with any agent that supports SKILL.md skills.

What this skill can do

Connects to the internet

This is disclosed by the author in the skill's SKILL.md or README.

Found in 2 places.

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

The badge for samber/cc-skills-golang shows the score of its lowest-scoring skill.

SkillTrust badge for samber/cc-skills-golang

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/samber/cc-skills-golang.svg)](https://zalavijaysinh.github.io/skilltrust/repos/samber/cc-skills-golang/)

Score history

DateVersionScore
2026-11-11d68d80a97
2026-11-08bb1d43d97
2026-11-07bb1d43d97