Write, review, explain, and update Zig code using current official Zig language and standard-library APIs. Use when Codex needs up-to-date Zig guidance for language features, typing, enums, control flow, allocators, data structures, `std`, `std.posix`, `std.fs`, `std.Io`, testing, `build.zig`, packages, C interop, or cross-platform systems programming.
Use current official Zig sources, not stale model memory.
This skill snapshot is written against Zig sources current on 2026-04-15:
0.16.0 released 2026-04-14master: use the download page for the exact current dev snapshotDefault to stable 0.16.0 unless the repo clearly pins master or a specific dev snapshot.
zig version, CI, Dockerfiles, build.zig.zon, README snippets, and download URLs.master, use the exact dev snapshot when possible; do not assume master APIs from memory.Sort the task into one or more of these buckets:
std modules such as mem, fmt, json, testing, and Randomstd.fs, std.Io, std.process, std.net, and std.posixbuild.zig or package/import wiringcomptime, and builtin usage.ArrayList, maps, enum collections, strings, formatting, JSON, and testing helpers.std.posix, file descriptors, sockets, child processes, std.net, and cross-platform boundaries.build.zig, modules, dependencies, tests, and C interop.switch, for, while, labeled blocks, defer, and errdefer are being used idiomatically rather than imitating C or Rust control flow.std.mem, std.fmt, std.json, std.testing, and std.posix helpers already solve the problem before inventing custom utilities.std.net or higher-level std APIs before dropping to raw std.posix.build.zig is using current std.Build patterns instead of cargo-like or cmake-like abstractions.comptime, and control flow.std.posix, file descriptors, sockets, and OS-facing APIs.build.zig, modules, dependencies, tests, and C interop.