Skip to content
G

golang-error-handling

Idiomatic Golang error handling

by samberFree

#3331in AI Skills
0In stores

Description

golang-error-handling is an agent skill from the samber cc-skills-golang collection that guides a coding agent to write idiomatic, debuggabl…

Highlights

  • Wrapping errors with %w for context
  • errors.Is, errors.As and errors.Join
  • Custom error types and sentinel errors
  • Single-handling rule against log-and-return
  • Coding, review and audit modes
  • Installs from skills.sh

Ratings & Reviews

No ratings yet

Be the first to rate golang-error-handling.

People also visit

G

golang-samber-oops

Structured error handling in Golang with samber/oops

AI Skills
Get
G

golang-design-patterns

Idiomatic Golang design patterns

AI Skills
Get
G

go-error-handling

Writing Go code that returns, wraps, or handles errors

AI Skills
Get
G

golang-troubleshooting

Troubleshoot Golang programs systematically - find and fix the root cause

AI Skills
Get
G

go-code-review

Reviewing Go code or checking code against community style standards

AI Skills
Get
E

error-handling

Patterns for robust error handling across TypeScript, Python, and Go

AI Skills
Get

golang-error-handling FAQ

What does this skill cover?

Idiomatic Go error handling: creating and wrapping errors, errors.Is and errors.As, errors.Join, custom and sentinel errors, and panic and recover.

What are the three modes?

Coding mode for writing new error handling, review mode for pull request diffs, and audit mode for auditing a whole codebase with parallel sub-agents.

What is the single-handling rule?

An error should either be handled or returned with added context, not logged and returned at the same time.

How do I install it?

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

What are the security audit results?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

How popular is it?

The page shows about 41.4K installs, and the cc-skills-golang repository has 3.5K GitHub stars.

What are the best golang-error-handling alternatives?

Popular alternatives to golang-error-handling include golang-samber-oops, golang-design-patterns and go-error-handling. See all golang-error-handling alternatives

Developer Stuff

Badges