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.
Read a reference file only when the section below is not enough.
Operating Modes
- Harden β you are writing or changing code. Apply every rule as you go.
- Review β you are auditing existing code. Report findings with severity (π΄ panic or corruption, π‘ latent bug, π’ style) and cite file:line.