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.
In this repository24 other files it gives its agents.
- codex-architectureSkill
- codex-brainSkill
- ai-codex-c-cppSkill
- ai-codex-csharp-dotnetSkill
- codex-debugSkill
- codex-deepSkill
- codex-elixirSkill
- codex-flutter-dartSkill
- codex-goalSkill
- ai-codex-goSkill
- ai-codex-java-kotlinSkill
- ai-codex-phpSkill
- codex-plansSkill
- ai-codex-pythonSkill
- codex-reviewSkill
- ai-codex-rustSkill
- codex-skillsSkill
- codex-solidity-web3Skill
- codex-sql-databaseSkill
- codex-startSkill
- ai-codex-swiftSkill
- codex-testSkill
- ai-codex-typescript-reactSkill
- ai-codex-ui-ux-designSkill
The file
Files
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 styleRecommended Combinations
| What You Are Doing | Files to Load | Why |
| Designing Memory & Allocator Topologies | 01 + 03 + 04 | Identity + Comptime / Memory mechanics + Systems patterns |
| Writing Production Zig Code | 01 + 02 + 06 | Identity + Zig 0.13 standards + clean output format |
| Diagnosing Memory Leaks & UB | 01 + 03 + 05 | Identity + memory safety + std.testing.allocator / Tracy |
| Full Systems Architecture Invention | All 6 Files | Maximum context across systems, compilers, and toolchains |
Key Capabilities
- Explicit Memory Allocation:
std.mem.Allocatorparameter passing, Arena, FixedBuffer, GPA. - Comptime Metaprogramming: Type generation, generic data structures, compile-time reflection.
- Error Unions & Defer Discipline: Explicit
!Terror handling,errdeferrollback, 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).
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
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.

