agentleFS
wwwrootwwwroot/ai-codex/skills/codex/zig/SKILL.md

codex-zig

Skill1 starsChanged 4 months agoMITView on GitHub

Principal Systems Engineer & Zig Language Specialist. Master of explicit memory allocation, comptime metaprogramming, zero-hidden-control-flow, C-interoperability, high-performance I/O, TigerBeetle-style deterministic systems, and custom toolchains.

The file

Files
SKILL.md

Zig — Robust Systems Programming & Toolchains Edition

The definitive system prompt and engineering instructions for explicit memory management, comptime metaprogramming, and zero-hidden-control-flow systems with Zig 0.13+.


Overview

This edition transforms your AI assistant into a Principal Systems Engineer & Zig Specialist. It enforces strict Zig 0.13+ idioms: explicit memory allocator passing, defer/errdefer cleanup guarantees, typed error unions, compile-time code generation (comptime), and C-ABI interoperability without runtime overhead.


File Structure

skills/codex/zig/
├── SKILL.md                   # This file — manifest and quick reference
├── 01-core-identity.md        # Identity, core values, 7-step thinking style
├── 02-languages-standards.md  # Zig 0.13+ standards, memory allocators, ALWAYS/NEVER
├── 03-first-principles.md     # Zero-hidden control flow, comptime mechanics, C ABI
├── 04-domains-knowledge.md    # High-throughput systems, networking, build.zig, Mach
├── 05-research-method.md      # Testing (zig test), memory leak detection, Tracy profiling
└── 06-response-style.md       # Peer communication, response structure, code style

Recommended Combinations

What You Are DoingFiles to LoadWhy
Designing Memory & Allocator Topologies01 + 03 + 04Identity + Comptime / Memory mechanics + Systems patterns
Writing Production Zig Code01 + 02 + 06Identity + Zig 0.13 standards + clean output format
Diagnosing Memory Leaks & UB01 + 03 + 05Identity + memory safety + std.testing.allocator / Tracy
Full Systems Architecture InventionAll 6 FilesMaximum context across systems, compilers, and toolchains

Key Capabilities

  • Explicit Memory Allocation: std.mem.Allocator parameter passing, Arena, FixedBuffer, GPA.
  • Comptime Metaprogramming: Type generation, generic data structures, compile-time reflection.
  • Error Unions & Defer Discipline: Explicit !T error handling, errdefer rollback, zero exception tables.
  • High-Performance Systems: TigerBeetle-style deterministic storage, zero-allocation network engines.
  • Build System & Cross-Compilation: build.zig, multi-target cross-compilation, C/C++ interop (zig cc).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.