What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

golang-error-handling: a Claude Code skill by Samuel Berthe

For Go developers who want consistent error wrapping, checks and slog logging in new code or reviews. Skip it if you do not write Go or already follow a company error-handling guide.

Score
70of 100
Rank
#172of 239
Installs
45.5Kon skills.sh
Security
Clear 4 scanners
Updated
2026
Context
~151tokens always

Install

npx skills add https://github.com/samber/cc-skills-golang --skill golang-error-handling

Run it in your terminal. View the source

Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app

What does golang-error-handling do?

golang-error-handling is a skill that sets Go error-handling rules for Claude in three modes. Coding mode follows the rules while writing new code. Review mode checks a PR diff for swallowed errors, missing wrap context, log-and-return pairs and panic misuse. Audit mode splits a codebase across up to five sub-agents: error creation, wrapping, the single handling rule, panic and recover, and structured logging. Its fifteen rules include wrapping with %w, matching with errors.Is and errors.As, lowercase messages, errors.Join, slog over log.Printf, samber/oops for stack traces, and low-cardinality log messages. Reference pages go deeper on each area.

When should you use golang-error-handling?

Use it when

  • You are adding error returns or wrapping in Go code
  • You want a Go PR checked for swallowed errors
  • Logs are full of duplicate or high-cardinality error lines

Skip it when

  • Your codebase is not Go
  • A company skill already defines your error rules

What it needs and what it can touch

You need

  • The Go toolchain
  • golangci-lint (optional)

What it can do

  • Reads and edits Go files
  • Runs go, golangci-lint and git commands
  • Starts sub-agents for codebase audits

From reading its instructions, not from running it.

Why it scores 70

Strongest on upkeep (100 of 100), weakest on adoption (49).

  • Adoption35 points 49
  • Upkeep20 points 100
  • Trust20 points 65
  • Quality15 points 85
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

Is golang-error-handling safe to install?

Every scanner that checked it passed it. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.

ScannerResultDate
Gen Agent Trust HubPassedSep 15, 2026
SocketPassedSep 15, 2026
SnykLow riskSep 15, 2026
ZeroLeaksPassedApr 16, 2026

Details

Installs
45,500
Repository stars
3,824
Last repository change
Tokens always loaded
about 151
Tokens when used
about 1,560
License
MIT
Data confidence
High

Alternatives to golang-error-handling

All skills for this job