LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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.

golang-safety - Go Safety: Defensive Coding

Prevents Go panics, data corruption, and runtime bugs through defensive coding practices

Tags

Updated: 2026-06-15

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • write defensive Go code
  • review Go code
  • prevent nil panics
  • fix type assertions
  • initialize maps
  • clone slices
  • convert integers
  • compare floats
  • use defer
  • close files
  • copy slices
  • copy maps
  • use sync.Once

Inputs

  • Go code files
  • Go source code
  • Go project
  • Go module

Outputs

  • fixed Go code
  • safety recommendations
  • linting reports
  • error messages

Requirements

  • Go runtime
  • golangci-lint
  • file read access
  • file write access
  • bash execution

Source

  • Spec: SKILL.md
golang
safety
defensive-coding
error-prevention
code-review
nil-safety
write defensive Go code
review Go code
prevent nil panics
fix type assertions
Go code files
Go source code
Go project
fixed Go code
safety recommendations
linting reports