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
- #156of 200
- Installs
- 44.9Kon 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
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)
It can
- 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
- 44,854
- Repository stars
- 3,796
- 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 supabase-postgres-best-practicessupabase-postgres-best-practices
For developers writing SQL, schemas or row level security policies on any Postgres database.
-
Get PrismaPrisma
For TypeScript developers on Prisma ORM who want correct queries, CLI commands and database setup.
-
Get neon-postgresneon-postgres
For developers whose Postgres runs on Neon and who want help with connection strings, branches and slow queries.
-
Get supabasesupabase
For developers building on Supabase who want auth, RLS and migrations handled with care.