Alternatives to golang-safety
200 apps like golang-safety, closest match first.
Top picks
- G

golang-security
Getgolang-security is an agent skill from the samber cc-skills-golang collection that brings security practice to Go code. It covers vulnerability prevention for injection, including SQL, command and cross-site scripting injection, as well as
- G

golang-error-handling
Getgolang-error-handling is an agent skill from the samber cc-skills-golang collection that guides a coding agent to write idiomatic, debuggable error handling in Go. It covers creating errors, wrapping them with %w to keep context, checking t
- G

golang-design-patterns
Getgolang-design-patterns is an agent skill from the samber cc-skills-golang collection that guides a coding agent to idiomatic Go design. It covers functional options, constructor APIs, avoiding init functions and global state, enums, the cho
- G

golang-troubleshooting
Getgolang-troubleshooting is an agent skill from the samber cc-skills-golang collection for finding and fixing the root cause of bugs in Go programs, including crashes, deadlocks, data races and unexpected behaviour. Its persona is a Go system
- G

golang-data-structures
Getgolang-data-structures is an agent skill from the samber cc-skills-golang collection for choosing and using Go's built-in and standard library data structures. Its persona is a Go engineer who understands data structure internals and picks
- G

golang-patterns
Getgolang-patterns is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out idiomatic Go practice for building robust, efficient and maintainable applications. Its first principle is simplicity and clarity, since
More like golang-safety
About golang-safety

golang-safety
Defensive Golang coding against accidental bugs
golang-safety is an agent skill from the samber cc-skills-golang collection that guides a coding agent to write defensive Go code that avoids accidental bugs in normal, non-adversarial code. The skill distinguishes safety from security: security handles attackers, while safety protects against the programmer's own mistakes, such as panics, silent data corruption and surprising behaviour. Its practical rules include preferring generics over any when the set of types is known, using comma-ok type assertions, and knowing that a typed nil pointer stored in an interface is not equal to nil. It warns that writing to a nil map panics, so maps must be initialised before use, and that append can reuse a backing array, so two slices may silently share memory. It advises returning defensive copies from exported functions, extracting loop bodies that use defer into their own functions, and checking integer conversions, since int64 values wrap silently when converted to int32. It also notes that float arithmetic is not exact, so comparisons should use an epsilon or math/big, that zero values should be useful, and that sync.Once guarantees one-time initialisation under concurrency. The skill is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results, all passing. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-safety.
- Price
- Free
- Made by
- samber
- Category
- AI Skills
- Website
- github.com/samber/cc-skills-golang/golang-safety






