go-nil

Community

Nil safety patterns in Go.

AuthorJamesPrial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill introduces nil-safety patterns for interfaces, maps, slices, and pointer receivers to prevent panics and subtle bugs.

Core Features & Use Cases

  • Nil Interfaces: Pattern for typed-nil contained in interfaces.
  • Nil Maps: Safe initialization before writes.
  • Nil Slices: Understanding nil vs empty in encoding and iteration.

Quick Start

Apply nil-safety patterns to a sample Go module and verify with unit tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-nil
Download link: https://github.com/JamesPrial/claudefiles/archive/main.zip#go-nil

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.