🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Go Error Handler

by @charlie-morrison

Analyze Go error handling patterns — detect swallowed errors, missing error wrapping, sentinel vs custom error usage, type assertions, and idiomatic error pr...

Versionv1.0.0
📋 Tips & Best Practices

  • Run errcheck ./... to catch unchecked errors mechanically
  • Use golangci-lint with wrapcheck, errcheck, goerr113 linters
  • For multi-error scenarios use errors.Join (Go 1.20+) or go.uber.org/multierr
  • Always handle defer Close() errors for writers — flushed data may fail to write
  • View on ClawHub
    TERMINAL
    clawhub install go-error-handler

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →