go-defensive-coding
Installation
SKILL.md
Go Defensive Coding
Go has no exceptions and no null-safety in the type system. Every trap below compiles cleanly, passes review, and fails in production.
Detailed reference material, loaded on demand:
references/nil-and-aliasing.md— the full typed-nil rules, slice aliasing scenarios, and memory retention.references/numeric-safety.md— conversion range checks, overflow detection, float and time comparison.references/copies-and-lifecycle.md—copylocks/noCopy,deferin loops, checking deferredCloseerrors, usable zero values.
Read a reference file only when the section below is not enough.