Go Defensive

Use when hardening Go code at API boundaries — copying slices/maps, verifying interface compliance, using defer for cleanup, time.Time/time.Duration, or avoiding mutable globals. Also use when reviewing for robustness concerns like missing cleanup or unsafe crypto usage, even if the user doesn't mention "defensive programming." Does not cover error handling strategy (see go-error-handling).

aneviaro 6f471c7 6 files · 21.6 KB Updated

File contents

aneviaro/pipack/tree/main/agent/skills/go-defensive commit 6f471c7870

Frequently asked questions

npx skillmds@latest add aneviaro/go-defensive