Zig Programming Language
Entry point for Zig development. Provides an overview, version awareness, and routes to focused skills.
Anti-fabrication
This skill follows core:anti-fabrication. Zig is pre-1.0 with every minor release
breaking std and build APIs, so version-migration claims are the highest-risk content
in this plugin. Verified against zig 0.16.0 (locally installed, claude-skills-204) by
compiling the documented snippets: references/migration-0.16.md's claim that
std.c.arc4random_buf is BSD/Darwin-only was refuted by its own citation (lib/std/c.zig
covers Linux/Android too) and corrected to a compile-probed target table, and
references/version-history.md's listing of fmt.bufPrintZ under "Renamed" was
corrected — it is still present, deprecated in favor of bufPrintSentinel. Re-verify
against a locally installed zig version before asserting a std API claim this skill
doesn't cover — see plugins/languages/zig/skills/sources.md for the full per-claim
record.
Available Skills
This plugin provides focused skills for specific Zig topics:
- zig:language - Core language: comptime, error handling, data types, slices, defer
- zig:build - Build system: build.zig, cross-compilation, dependencies, CI
- zig:allocators - Memory management: allocator types, patterns, leak detection
- zig:testing - Built-in test framework, test allocator, build integration
- zig:c-interop - C interoperability: @cImport, type mappings, translate-c, linking
- zig:troubleshooting - Common errors, debugging, runtime panics, memory issues
Version Awareness
Zig is pre-1.0: every minor release carries breaking changes. Run zig version
first and match guidance to the installed toolchain. This plugin documents
0.16.0 (current stable, released 2026-04-13); 0.15.x and 0.14.x notes are
retained for migration. Check https://ziglang.org/download/index.json for the
release list — GitHub tags lag behind (they stop at 0.15.2).
When borrowing an upstream example, compare it with that project's source and
compiler manifest at a pinned commit. Report any disagreement with general or
official documentation and follow the consuming project's existing pin; do not
silently change its toolchain. For example, Ghostty commit