zig-best-practices

Installation
SKILL.md

Zig Best Practices

Type-First Development

Types define the contract before implementation. Follow this workflow:

  1. Define data structures - structs, unions, and error sets first
  2. Define function signatures - parameters, return types, and error unions
  3. Implement to satisfy types - let the compiler guide completeness
  4. Validate at comptime - catch invalid configurations during compilation

Make Illegal States Unrepresentable

Use Zig's type system to prevent invalid states at compile time.

Installs
1
GitHub Stars
109
First Seen
Jan 30, 2026
zig-best-practices — neversight/skills.sh_feed