zod-4

zod-4 is a skill for Claude Code from prowler-cloud/prowler. It costs 46 tokens per session (1,487 once invoked), scanned A, original, Apache-2.0.

Guidance for creating and updating Zod 4 schemas. Zod is a TypeScript library that checks and parses data such as form values and request payloads.

In plain words
What is it for?
Use it when validating forms, API request data, adapters, emails, URLs, UUIDs, objects, numbers, or other typed input with Zod 4.
Why use it?
It helps keep validation code compatible with Zod 4 and avoids older Zod 3 syntax during new work or migrations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when validating forms, API request data, adapters, emails, URLs, UUIDs, objects, numbers, or other typed input with Zod 4.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prowler-cloud/prowler/zod-4
About the project

Prowler is an open-source cloud security platform that checks cloud environments for security issues and compliance with standards such as CIS, NIST, and GDPR. Security teams use it to assess configurations, prioritize findings, produce reports, and guide remediation.

prowler-cloud/prowler · 15,347 stars · on GitHub · prowler.com

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 prowler-cloud/prowler --skill zod-4
Clone the repo
git clone --depth 1 https://github.com/prowler-cloud/prowler

Made for: Claude Code.

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-4

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/zod-4"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/zod-4.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,487 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. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.01487
Opus 5.5 $0.00018 $0.00595
Sonnet 5.5 $0.00009 $0.00297
Haiku 4.5 $0.00005 $0.00149

Measured 25d ago against content hash 92677bfd0412, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

zod-4 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 25d 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/zod-4/SKILL.md · 227 lines

How it starts

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

Breaking Changes from Zod 3

// ❌ Zod 3 (OLD)
z.string().email()
z.string().uuid()
z.string().url()
z.string({ required_error: "Required", invalid_type_error: "Not a string" })
z.string().min(1, { message: "Required" })
schema.merge(other)
z.object({...}).strict()
z.ZodIssueCode.custom

// ✅ Zod 4 (NEW)
z.email()
z.uuid()
z.url()
z.string({ error: "Required" })          // single `error` param (string or function)
z.string().min(1, { error: "Required" }) // `message` still works but is deprecated
schema.extend(other.shape)
z.strictObject({...})
"custom"                                  // issue code literal in ctx.addIssue

z.ZodIssueCode.custom still compiles in Zod 4 (deprecated) and is used in ui/types/formSchemas.ts and ui/types/integrations.ts; use code: "custom" in new code.

Prowler UI schemas live in ui/types/formSchemas.ts, ui/types/authFormSchema.ts, ui/types/integrations.ts and next to the feature that uses them.

Basic Schemas

import { z } from "zod";

// Primitives
const stringSchema = z.string();
const numberSchema = z.number();
const booleanSchema = z.boolean();
const dateSchema = z.date();

// Top-level validators (Zod 4)
const emailSchema = z.email();
const uuidSchema = z.uuid();
const urlSchema = z.url();

// With constraints
const nameSchema = z.string().min(1).max(100);
const ageSchema = z.number().int().positive().max(150);
const priceSchema = z.number().min(0).multipleOf(0.01);

Object Schemas

const userSchema = z.object({
  id: z.uuid(),
  email: z.email({ error: "Invalid email address" }),
  name: z.string().min(1, { error: "Name is required" }),
  age: z.number().int().positive().optional(),
  role: z.enum(["admin", "user", "guest"]),
  metadata: z.record(z.string(), z.unknown()).optional(),
});

type User = z.infer<typeof userSchema>;

// Parsing
const user = userSchema.parse(data);  // Throws on error
const result = userSchema.safeParse(data);  // Returns { success, data/error }

if (result.success) {
  console.log(result.data);
} else {
  console.log(result.error.issues);
}

Read the full file on GitHub · 227 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. 25d ago Changed · +10 lines 92677bfd0412
  2. 3mo ago First seen · 217 lines · 46 tokens per session scan A 17ecc0dceef0

Subscribe to this mod's changes

zod-4 is a skill published in the GitHub repository prowler-cloud/prowler (15,347 stars, last pushed 3d ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,487 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-08-30.

Related

zod-4 compared with skills from other repositories

zod-4 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zod-4prowler-cloud/prowlerSkill15k3d agoApache-2.0A46Claude Code
performing-aws-account-enumeration-with-scout-suitexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A39Claude Code, Codex
shannonKeygraphHQ/shannonSkill52k4d agoAGPL-3.0A51Claude Code
ponytail-sec-auditandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-secandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-sec-triageandypitcher/ponytail-secSkill62todayMITA60Claude Code
cis-aws-database-3.11CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex