What problem does it solve? Go code often contains latent bugs that compile fine but crash or corrupt data at runtime: nil pointer dereferences, typed-nil interface traps, slice aliasing from append, silent integer truncation, and defer accumulation in loops. This Skill guides AI coding agents to write defensive Go code that avoids these pitfalls before they reach production. ## Core Features & Use Cases - Nil Safety: Covers the typed-nil interface trap, nil map write panics, nil function values, and nil pointer receivers, with a deep-dive reference for generics and lazy initialization. - Slice & Map Safety: Addresses append aliasing, subslice backing-array retention, defensive copying with slices.Clone/maps.Clone, and randomized map iteration order. - Numeric & Resource Safety: Enforces bounds checks before integer narrowing, epsilon-based float comparison, division-by-zero guards, and per-iteration resource cleanup instead of defer-in-loop. - Use Case: When reviewing a Go function that returns an error built from a typed nil pointer, or appending to a caller-supplied slice, the Skill flags the trap and provides the corrected pattern with code examples. ## Quick Start Review this Go function for nil-safety issues, slice aliasing bugs, and integer overflow risks, then rewrite it defensively.