back
loading skill details...
Use when reading or writing Zig files (.zig, build.zig, build.zig.zon).
Zig Best Practices
Follows type-first, functional, and error handling patterns from CLAUDE.md. This skill covers Zig-specific idioms only.
Type System Patterns
Tagged unions for mutually exclusive states — prevents invalid combinations that a struct with multiple nullable fields would allow:
const RequestState = union(enum) {
idle,
loading,
success: []const u8,
failure: anyerror,
};don't have the plugin yet? install it then click "run inline in claude" again.