LogoClawIndex
CasesSkillsAbout
LogoClawIndex

golang-error-handling - Idiomatic Go Error Handling and Logging Best Practices

Idiomatic Go error handling and structured logging guidelines, covering error wrapping, inspection, audit modes, slog integration, and production practices.

Tags

Updated: 2026-09-18

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Write idiomatic Go error handling
  • Audit error handling practices
  • Review error handling code changes
  • Inspect error chains with errors.Is/As
  • Wrap errors with contextual details
  • Log structured errors using slog

Inputs

  • Go source code
  • Pull request diffs
  • Git repository

Outputs

  • Modified Go source files
  • Error audit reports
  • Code review feedback

Requirements

  • Go toolchain
  • Git binary
  • golangci-lint binary

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
go
error-handling
slog
logging
code-audit
Write idiomatic Go error handling
Audit error handling practices
Review error handling code changes
Inspect error chains with errors.Is/As
Go source code
Pull request diffs
Git repository
Modified Go source files
Error audit reports
Code review feedback