Sign inGet started
–

Helps Go developers avoid accidental bugs and panics like nil map writes, typed-nil interfaces, append aliasing, silent integer truncation, and defer-in-loop resource leaks through defensive coding pr

Lift · GLM-5.3-flash—not yet benchmarked
91
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

Defensive Golang coding against accidental bugs — nil panics, typed-nil interfaces, `append` backing-array aliasing, silent int64-to-int32 truncation, float `==` comparison, `defer` inside loops, defensive copies of slices and maps, and usable zero values. Use when a Go program panics on a nil map write or nil pointer dereference, when reviewing code for nil-safety, numeric conversion overflow, or resource lifecycle, or when designing a type whose zero value must be safe. Not for designing concurrent access with goroutines, channels, or sync primitives (→ See `samber/cc-skills-golang@golang-concurrency` skill), not for exploitable vulnerabilities such as injection, weak crypto, or leaked secrets (→ See `samber/cc-skills-golang@golang-security` skill), and not for debugging an already-failing program (→ See `samber/cc-skills-golang@golang-troubleshooting` skill).

#code-review#defensive-coding#golang#linting#nil-safety#panics

Quality judgment

completeness
9.0/10
clarity
9.0/10
trigger quality
9.0/10
examples
9.0/10
structure
9.0/10
overall
9.0/10

Excellent coverage of Go safety pitfalls with correct, well-commented good/bad examples, a behavior table, common-mistakes table, and precise trigger/description boundaries with cross-references to sibling skills. Minor deductions for a few unverifiable claims (reflect.TypeAssert in Go 1.25) and reliance on external reference files not shown.

allowed-tools

Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent

Files (5)

evals/evals.json · 47.4 KBLICENSE · 1.0 KBreferences/nil-safety.md · 5.6 KBreferences/slice-map-safety.md · 6.2 KBSKILL.md · 10.5 KB