Skip to content

/go-defensive

Use when hardening Go code at API boundaries: copy slices/maps on entry and return, defer cleanup, verify interface compliance at compile time, model time with time.Time/time.Duration, design enum zero values, prefer crypto/rand, and inject clocks for testability. Apply

shell
$ npx -y skills add muratmirgun/gophers --skill go-defensive --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/go-defensive
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when hardening Go code at API boundaries: copy slices/maps on entry and return, defer cleanup, verify interface compliance at compile time, model time with time.Time/time.Duration, design enum zero values, prefer crypto/rand, and inject clocks for testability. Apply
Ships withgophers

26 production-grade Go skills for Claude Code, Gemini CLI, and opencode. Battle-tested patterns from the Go community — codified as triggerable AI skills.

Get the whole plugin, auto-invoked
Stats
8
Stars
0
Views
0
Forks
Maintained
Maintenance
Shell
Language
MIT
License
1mo ago
Last commit
2mo ago
Created

Repo: muratmirgun/gophers

Other skills on gophers.