Provides Zig patterns for type-first development with tagged unions, explicit error sets, comptime validation, and memory management. Must use when reading or writing Zig files.
90
Quality
86%
Does it follow best practices?
Impact
94%
1.13xAverage score across 3 eval scenarios
Passed
No known issues
Type-safe state modeling
Tagged union for states
100%
100%
Distinct ID types
70%
100%
Explicit error sets
60%
100%
Non-exhaustive enum
0%
100%
Exhaustive switch handling
100%
100%
Comptime validation
12%
0%
Explicit comptime T type
0%
100%
Prefer const over var
100%
100%
Error union return types
100%
100%
Tests with testing allocator
100%
83%
No anyerror in signatures
100%
100%
Design notes present
100%
100%
Without context: $0.3717 · 2m 10s · 12 turns · 17 in / 9,056 out tokens
With context: $0.7794 · 3m 45s · 26 turns · 79 in / 13,602 out tokens
Memory management and cleanup
Explicit allocator parameter
100%
100%
Arena allocator for batch
0%
100%
defer for resource cleanup
100%
100%
errdefer on error paths
100%
100%
std.testing.allocator in tests
100%
100%
No global allocation state
100%
100%
Slices over raw pointers
100%
100%
Explicit error set
25%
100%
const over var
100%
100%
Tests cover error path
100%
100%
NOTES.md memory explanation
87%
100%
Without context: $0.7799 · 4m 25s · 29 turns · 32 in / 15,392 out tokens
With context: $1.0976 · 4m 9s · 39 turns · 156 in / 14,729 out tokens
Generic functions and scoped logging
comptime T: type over anytype
100%
100%
std.log.scoped used
100%
100%
Module-level log constant
100%
100%
err level for failures
100%
0%
debug level for tracing
100%
100%
catch block for error handling
100%
100%
No anytype in generic signatures
100%
100%
Explicit allocator parameter
100%
100%
Slices in signatures
100%
100%
Tests with testing allocator
100%
100%
const over var
100%
100%
Without context: $0.3873 · 1m 42s · 17 turns · 19 in / 7,012 out tokens
With context: $1.1857 · 5m 47s · 40 turns · 79 in / 20,135 out tokens
5342bca
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.