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).
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.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Sep 15, 2026 |
| Socket | Passed | Sep 15, 2026 |
| Snyk | Low risk | Sep 15, 2026 |
| ZeroLeaks | Passed | Apr 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
Did it do the job for you?
Alternatives to golang-error-handling
All skills for this job-
Get nodejs-backend-patternsnodejs-backend-patterns
For developers starting a Node.js API on Express or Fastify who want a checklist of production habits.
-
Get rust-best-practicesrust-best-practices
For Rust developers who want code written and reviewed against Apollo GraphQL's handbook.
-
Get nestjs-best-practicesnestjs-best-practices
For NestJS developers who want Claude to follow set rules on modules, injection and security.
-
Get mcp-buildermcp-builder
For developers turning an API or service into tools Claude can call through MCP.