Agent skill

go-nil

Go nil safety patterns. Routes to specific traps.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/go-nil

SKILL.md

Nil Safety

Route by Type

Quick Check

  • Check pointers before deref
  • Check maps before write
  • Typed nil != nil interface

Common Gotcha

go
var p *int
if p == nil {  // true
    fmt.Println("nil pointer")
}

Didn't find tool you were looking for?

Be as detailed as possible for better results