zod

zod is a skill for Claude Code, Codex from bgauryy/octocode. It costs 49 tokens per session (968 once invoked), scanned A, original, MIT.

A guide for writing, reviewing, and testing Zod schemas in the Octocode repository. Zod is a library for defining and checking the shape of data; the guide also covers generating JSON Schema, a standard format for describing that shape.

In plain words
What is it for?
Use it when changing Zod definitions, checking Zod 4 behavior, regenerating contract files, or testing generated schemas.
Why use it?
It helps keep source schemas, generated files, tool contracts, configuration contracts, and tests consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when changing Zod definitions, checking Zod 4 behavior, regenerating contract files, or testing generated schemas.

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

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 zod

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgauryy/octocode/zod/github.svg)](https://agentmods.dev/skills/bgauryy/octocode/zod)
Your own site
<a href="https://agentmods.dev/skills/bgauryy/octocode/zod"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/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.

agentmods 80×15 button for zod

Your own site · 80×15
<a href="https://agentmods.dev/skills/bgauryy/octocode/zod"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/zod.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 968 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.00049 $0.00968
Opus 5.5 $0.00020 $0.00387
Sonnet 5.5 $0.00010 $0.00194
Haiku 4.5 $0.00005 $0.00097

Measured today against content hash 6057f8013ab1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 today.

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-dev/zod/SKILL.md · 45 lines

How it starts

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

Zod in Octocode

Every workspace resolves one Zod 4 (rg -n '^"zod@' -A1 yarn.lock; 4.6.7 when written). Settle an API question in node_modules/zod/v4/classic/schemas.d.ts (it marks deprecations) or a short node probe, not from memory.

Sources and outputs

Edit the Zod source and run its generator ($DEV as AGENTS.md defines it); never edit the output.

Zod source Output Regenerate
Tool schemas in core (../octocode-mcp-host/packages/octocode-core) packages/octocode-config/contract/ $DEV contracts:regen (pipeline)
packages/octocode-config/scripts/config-contract/ (schema.ts validates declaration/) config-contract.json and .schema.json, src/config/contract.generated.ts (package root), <repo>/docs/CONFIGURATION.md yarn workspace @octocodeai/config generate:config-contract (adding config)
packages/octocode-agents-communication/src/catalog/ <pkg>/assets/catalog.json, src/runtime/catalog-types.generated.ts yarn workspace @octocodeai/octocode-agents-communication types
packages/octocode-browser-tools/src/contract/ <pkg>/dist/contract.js, <pkg>/dist/engine/chrome-contract.mjs, <pkg>/dist/runtime.js yarn workspace @octocodeai/octocode-browser-tools build
packages/mcp-to-cli: defineCommand({ schema }) CLI flags and help, MCP inputSchema none: built at run time
  • agents-communication: Zod is a devDependency; nothing in src/runtime, src/entries or src/hosts may import it (tests/catalog-source.test.ts). A shared shape goes through define() in catalog/registry.ts (one $defs entry, $ref at each use); keywords Zod cannot state ride in .meta(); catalog/json-schema.ts maps Zod's output to the dialect src/runtime/validation.ts enforces.
  • mcp-to-cli: flags come from z.toJSONSchema(schema, { io: 'input', unrepresentable: 'any' }). MCP SDK v2 takes the Zod schema itself as a Standard Schema; a JSON Schema tool is wrapped by jsonSchemaStandard.

Read the full file on GitHub · 45 lines

Files

What ships with it

2 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.

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. today First seen · 45 lines · 49 tokens per session scan A 6057f8013ab1

Subscribe to this mod's changes

zod is a skill published in the GitHub repository bgauryy/octocode (971 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 968 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-12-01.

Related

zod compared with skills from other repositories

zod next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zodbgauryy/octocodeSkill971todayMITA49Claude Code, Codex
backend-pro-maxshashankswe2020-ux/backend-pro-max-skillSkill71mo agoMITA109Claude Code
create-handlergirijashankarj/cursor-handbookSkill333mo agoMITA28Cursor
component-creationgirijashankarj/cursor-handbookSkill333mo agoMITA28Cursor
api-docsgirijashankarj/cursor-handbookSkill333mo agoMITA21Cursor
coverage-improvementgirijashankarj/cursor-handbookSkill333mo agoMITA30Cursor
debug-issuegirijashankarj/cursor-handbookSkill333mo agoMITA34Cursor