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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zig-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/zig"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/zig.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00048 $0.00708
Sonnet 5.5 $0.00024 $0.00354
Haiku 4.5 $0.00012 $0.00177

Measured 2mo ago against content hash d3a12d09d771, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (11 stars, last pushed 4mo ago), licensed MIT. It adds 121 tokens to every session and 1,769 once invoked, about $0.0005 per session on Opus 5.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

zig-docs compared with skills from other repositories

zig-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zig-docspledgeandgrow/pledge-skillsSkill114mo agoMITA121Claude Code, Codex
zig-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0B76Claude Code
dev-browserMemTensor/MemOSSkill13k3d agoApache-2.0A84Claude Code, Codex
zig-versionstristanisham/zvmSkill1.1kyesterdayMITC32Claude Code
rust-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A60Claude Code
bluebubblesSafeAI-Lab-X/ClawKeeperSkill1.0kyesterdaynoneA38Claude Code, Codex
nim-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A73Claude Code