zig-docs

zig-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 121 tokens per session (1,769 once invoked), scanned A, original, MIT.

A reference guide to Zig, a programming language and its build system, standard library, memory management, testing, and C integration.

In plain words
What is it for?
Use it to write or explain Zig programs, manage builds, handle memory, call C code, add tests, and compile for different targets.
Why use it?
It gives coding agents accurate details for Zig syntax and systems-programming concepts that differ from languages such as C or Rust.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write or explain Zig programs, manage builds, handle memory, call C code, add tests, and compile for different targets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/zig
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill zig
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zig-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/zig.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/zig)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/zig"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/zig.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,769 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01769
Opus 5 $0.00060 $0.00885
Sonnet 5 $0.00024 $0.00354
Haiku 4.5 $0.00012 $0.00177

Measured 4d ago against content hash d3a12d09d771, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

zig-docs scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L https://ziglang.org/download/0.16.0/zig-linux-x86_64-0.16.0.tar.xz | tar -xJ
skills/zig/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Zig Expert (v0.16.0)

Official Documentation: https://ziglang.org/documentation/0.16.0/

Quick Reference

Topic File
Primitive types, integers, floats, bool, values values-types.md
Arrays, slices, sentinel-terminated, vectors arrays-slices.md
Pointers, alignment, volatile, allowzero pointers.md
Structs, default fields, extern, packed, tuples structs.md
Enums, unions, tagged unions, non-exhaustive enums-unions.md
if, switch, while, for, blocks, defer, unreachable control-flow.md
Functions, inline fn, calling conventions, fn pointers functions.md
Error sets, error unions, try, catch, error return traces errors.md
Optionals, null, orelse, optional pointers optionals.md
Type coercion, explicit casts, peer type resolution casting.md
comptime, compile-time concepts, generic data structures comptime.md
All builtin @functions reference builtins.md
Memory management, allocators, ownership, lifetime memory-allocators.md
Build modes, build.zig, compilation model, compile variables build-system.md
C interop, @cImport, C types, exporting C libraries c-interop.md
Standard library modules, data structures, I/O std-library.md
Zig test, testing namespace, test output, leak detection testing.md
Targets, cross-compilation, WebAssembly targets-wasm.md
Style guide, naming conventions, keyword reference, grammar style-guide.md
Inline assembly, global assembly, constraints, clobbers assembly.md
opaque, result location semantics, zero bit types, atomics, async, containers advanced-concepts.md

Core Philosophy

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. Key principles:

  1. No hidden control flow — no hidden allocations, no hidden memory allocations
  2. No hidden memory allocations — no garbage collector, no runtime
  3. No preprocessor, no macros — comptime replaces macros
  4. No operator overloading — what you see is what you get
  5. Manual memory management — explicit allocators, no default allocator
  6. Compile-time metaprogramming — comptime code runs at compile time
  7. Safety by default — bounds checking, overflow detection in Debug mode
  8. C interop without FFI — direct C header import, no bindings needed

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 192 lines · 121 tokens per session scan A d3a12d09d771

Subscribe to this mod's changes

zig-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 121 tokens to every session and 1,769 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

zig-expert

Expert knowledge in Zig systems programming, comptime metaprogramming, manual memory management, and C interoperability. Use when the user mentions systems programming, comptime, memory management, c interop, low level, or performance, or when the task involves Comptime Metaprogramming, C Interoperability…

personamanagmentlayer/pcl · 76 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

dcg

Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.

Dicklesworthstone/destructive_command_guard · 42 tokens

rust-expert

Expert-level Rust development with ownership, lifetimes, async, error handling, and production-grade patterns. Use when the user mentions systems programming, memory safety, concurrency, or Cargo, or when the task involves Ownership and Borrowing, Type System, Async Programming, or Web Development.

personamanagmentlayer/pcl · 60 tokens

zig-versions

Use when installing Zig, switching Zig versions, setting up ZLS, or resolving a Zig version mismatch - covers zvm (Zig Version Manager) for installing, pinning, and running specific Zig toolchains in a repository.

tristanisham/zvm · 50 tokens

nim-expert

Expert knowledge in Nim language, metaprogramming, async/await, Python/C interoperability, and macro systems. Use when the user mentions metaprogramming, async, macros, Python interop, c interop, or compiled, or when the task involves Language Features, Async/Await, Interoperability, or Installation and Setup.

personamanagmentlayer/pcl · 73 tokens