zig-docs

zig-docs is a skill for Claude Code, Codex from gbrlpzz/zig-docs-mcp. It costs 69 tokens per session (483 once invoked), scanned A, original, MIT.

A set of working rules for writing and reviewing Zig, a systems programming language. It requires checking current Zig documentation and the local compiler version before making technical decisions.

In plain words
What is it for?
Use it to check Zig versions and documentation, review language behavior, plan performance-sensitive code, and measure optimization results.
Why use it?
Zig APIs can change between releases, so relying on memory can lead to incorrect code or outdated advice.

Skill for Claude CodeCodex

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

Good fit Use it to check Zig versions and documentation, review language behavior, plan performance-sensitive code, and measure optimization results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gbrlpzz/zig-docs-mcp/zig-docs
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 gbrlpzz/zig-docs-mcp --skill zig-docs
Clone the repo
git clone --depth 1 https://github.com/gbrlpzz/zig-docs-mcp

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/gbrlpzz/zig-docs-mcp/zig-docs/github.svg)](https://agentmods.dev/skills/gbrlpzz/zig-docs-mcp/zig-docs)
Your own site
<a href="https://agentmods.dev/skills/gbrlpzz/zig-docs-mcp/zig-docs"><img src="https://agentmods.dev/badge/skills/gbrlpzz/zig-docs-mcp/zig-docs/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/gbrlpzz/zig-docs-mcp/zig-docs"><img src="https://agentmods.dev/badge/skills/gbrlpzz/zig-docs-mcp/zig-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00069 $0.00483
Opus 5.5 $0.00028 $0.00193
Sonnet 5.5 $0.00014 $0.00097
Haiku 4.5 $0.00007 $0.00048

Measured 1mo ago against content hash 9e8f1dec211e, 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 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/zig-docs/SKILL.md · 38 lines

What it actually says

Zig work rules (fresh docs + lightweight-performance discipline)

Use with the zig-docs-mcp skill (zdoc singleton). The point: never trust memory about Zig APIs (they churn between minor releases), always serve the LATEST release's truth, and default to high-performance lightweight patterns.

Workflow

  1. Version gate — await zdoc.zig_version_status() at the start of any Zig task that touches the local toolchain. If up_to_date is false:
    • tell the user plainly: local X < latest Y,
    • run await zdoc.zig_update() and summarize the dry-run plan,
    • update only after they agree: await zdoc.zig_update(dry_run=False, confirm=True).
  2. Docs before code — for any non-trivial API use:
    • await zdoc.zig_std(symbol="std.the.Symbol") for exact signatures/docs,
    • await zdoc.zig_langref(section=...) for language semantics,
    • await zdoc.zig_changelog() when upgrading across versions.
  3. Performance by default — consult await zdoc.perf_guidance(topic=...) when designing modules: allocation strategy first, data layout second, comptime third.
  4. Claims need mechanics — justify performance claims mechanically (bytes copied, cache misses, syscalls, pages mapped). Cite the doc version you used.
  5. Lightweight bias — prefer fewer dependencies, smaller binaries, lazy init, zero-copy parsing, arena lifecycles. Delete work; don't optimize it.

Anti-patterns

  • Answering Zig API questions from training memory without checking zdoc.
  • Writing Zig against an old release's std layout after seeing up_to_date:false.
  • Running zig_update with confirm without explicit user consent.
  • Micro-optimizing before checking allocation/layout choices.
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. 1mo ago First seen · 38 lines · 69 tokens per session scan A 9e8f1dec211e

Subscribe to this mod's changes

zig-docs is a skill published in the GitHub repository gbrlpzz/zig-docs-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 483 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dignified-python

Load ONLY for Python code Use when writing, reviewing, or refactoring Python to ensure adherence to LBYL exception handling patterns, modern type syntax (list[str], str | None), pathlib operations, ABC-based interfaces, absolute imports, and explicit error boundaries at CLI level. Also provides production-tested code…

open-metadata/ai-sdk · 92 tokens

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

opentelemetry-net-instrumentation

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

Aaronontheweb/dotnet-skills · 56 tokens

JMeter Load Testing

Load and performance testing skill using Apache JMeter, covering test plans, thread groups, assertions, listeners, timers, and distributed testing.

PramodDutta/qaskills · 32 tokens

quantum-vqls

A runnable guide to the variational quantum linear solver (VQLS), a quantum method that estimates a solution to a system of linear equations by optimizing a parameterized circuit. It uses Qiskit and reports the numerical residual and why optimization stopped.

xi-zhao/OpenQuantum · 56 tokens

frontmcp-production-readiness

Pre-production audit, hardening, and go-live checklists for FrontMCP servers. Use before shipping to verify security hardening, performance, reliability, and observability, and for target-specific production checklists: Node server (Docker, graceful shutdown, Redis session scaling), Vercel and edge (cold-start…

agentfront/frontmcp · 176 tokens