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.
npx skills add gbrlpzz/zig-docs-mcp --skill zig-docsgit clone --depth 1 https://github.com/gbrlpzz/zig-docs-mcpWrote 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.
[](https://agentmods.dev/skills/gbrlpzz/zig-docs-mcp/zig-docs)<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.
<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>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.
| Model | Per session | Once 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 |
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 3mo 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.
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
- Version gate —
await zdoc.zig_version_status()at the start of any Zig task that touches the local toolchain. Ifup_to_dateis 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).
- 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.
- Performance by default — consult
await zdoc.perf_guidance(topic=...)when designing modules: allocation strategy first, data layout second, comptime third. - Claims need mechanics — justify performance claims mechanically (bytes copied, cache misses, syscalls, pages mapped). Cite the doc version you used.
- 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_updatewith confirm without explicit user consent. - Micro-optimizing before checking allocation/layout choices.
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.
- 3mo ago First seen · 38 lines · 69 tokens per session scan A 9e8f1dec211e
zig-docs is a skill published in the GitHub repository gbrlpzz/zig-docs-mcp (1 stars, last pushed 3mo 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.
zig-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zig-docsgbrlpzz/zig-docs-mcp | Skill | 1 | 3mo ago | MIT | A | 69 | Claude Code, Codex |
| dignified-pythonopen-metadata/ai-sdk | Skill | 16 | 19d ago | none | A | 92 | Claude Code |
| opentelemetry-net-instrumentationAaronontheweb/dotnet-skills | Skill | 1.3k | today | MIT | A | 56 | Claude Code |
| hotpath_initpawurb/hotpath-rs | Skill | 1.9k | 9d ago | MIT | A | 88 | Claude Code |
| xeepy-python-twitter-guidenirholas/three.ws | Skill | 289 | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| solana-toolkit-guidenirholas/three.ws | Skill | 289 | yesterday | Apache-2.0 | A | 50 | Claude Code, Codex |
| compiler-a8399248FuRongJun-1999/dsh-memory | Skill | 763 | today | MIT | A | 110 | Claude Code |