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, defer in loops, checking deferred Close errors, usable zero values.

Read a reference file only when the section below is not enough.

Operating Modes

Installs
78
GitHub Stars
83
First Seen
Aug 18, 2026