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 kriscard/Skills --skill zodgit clone --depth 1 https://github.com/kriscard/SkillsWrote 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/kriscard/skills/zod)<a href="https://agentmods.dev/skills/kriscard/skills/zod"><img src="https://agentmods.dev/badge/skills/kriscard/skills/zod/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/kriscard/skills/zod"><img src="https://agentmods.dev/badge/skills/kriscard/skills/zod.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.00062 | $0.01109 |
| Opus 5.5 | $0.00025 | $0.00444 |
| Sonnet 5.5 | $0.00012 | $0.00222 |
| Haiku 4.5 | $0.00006 | $0.00111 |
Grade A, and why
zod 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.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Zod 4
Make untrusted values earn a trusted type once. Start this workflow only when the requested outcome changes, diagnoses, or verifies a Zod contract. Keep unrelated form lifecycle, authorization, UI, and transport failures with their owners even when Zod is nearby.
Workflow
1. Establish the effective contract
Inspect the resolved zod version, actual import path, TypeScript configuration, and affected
adapter declarations. This skill targets Zod 4. Use the package root or zod/v4 for Classic and a
Mini entrypoint only when the code intentionally uses Mini's functional API. Capability-check APIs
introduced during Zod 4 instead of treating the major as a promise that every minor exposes them.
Complete when: the exact Zod 4 version, entrypoint, TypeScript version, and adapter versions are known, and every proposed API exists in those installed declarations.
2. Write the boundary contract
Before code, record:
- the untrusted producer and raw representation;
- the parsed output and whether it is still a wire model or a domain value;
- strip, reject, preserve, or catchall behavior for unknown object keys;
- synchronous or asynchronous parsing;
- whether invalid input throws, branches locally, or becomes an adapter error;
- whether reverse encoding or a published JSON Schema artifact is required.
Use unknown at external boundaries. Parse once, then pass the parsed output inward until another
trust boundary is crossed. Keep independent domain rules outside schemas unless they are part of the
boundary's validity.
Complete when: input, output, object policy, failure consumer, and artifact direction are explicit.
3. Load the matching reference
| Priority | Load when | Reference |
|---|---|---|
| 1 — Critical | Imports, package capabilities, adapters, Standard Schema, or optional/newer Zod 4 APIs | references/imports-and-capabilities.md |
| 1 — Critical | Boundary parsing, Query fetchers, input/output types, form conversion, coercion, transforms, defaults, codecs, or async schemas | references/types-and-parsing.md |
| 1 — High | Object policy, composition, PATCH schemas, refinements, or cross-field rules | references/objects-and-refinements.md |
| 1 — High | Custom messages, issues, error formatting, localization, logging, or API/form projections | references/errors.md |
| 1 — High | Tagged unions, ordinary unions, enums, exhaustive records, or sparse enum maps | references/unions-records-and-enums.md |
| 2 — Conditional | Metadata, registries, JSON Schema, structured outputs, documentation, or code generation | references/metadata-and-json-schema.md |
| 2 — Conditional | Classic versus Mini, bundle size, compiler/validate APIs, CSP, or parse performance | references/mini-and-performance.md |
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 95 lines · 62 tokens per session scan A aff18fe27003
zod is a skill published in the GitHub repository kriscard/Skills (16 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 1,109 once invoked, about $0.0002 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-10-28.
zod compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zodkriscard/Skills | Skill | 16 | 3d ago | MIT | A | 62 | Claude Code, Codex |
| nestjsericrisco/rsc-harness | Skill | 695 | today | MIT | A | 81 | Claude Code, Codex |
| node-modernWrongStack/WrongStack | Skill | 447 | today | MIT | A | 123 | Claude Code, Codex |
| bun-runtime-expertroedyrustam/vibes-plug | Skill | 131 | 5d ago | MIT | A | 51 | Cursor |
| js-backend-expertroedyrustam/vibes-plug | Skill | 131 | 5d ago | MIT | A | 48 | Cursor |
| node-typescript-servicemakifbaysal/tasktrooper | Skill | 123 | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| nodejs-backendiliaal/ai-skills | Skill | 48 | 3d ago | MIT | A | 69 | Claude Code |