zod-boundaries

SKILL.md

Zod Boundaries Skill

When to use

  • Any time you accept external input (URL params, search params, form payloads, server-function inputs).

Workflow checklist

  1. Define a schema close to the boundary (route module or a domain validator).
  2. Parse early (parse/safeParse) and return typed data.
  3. Keep schemas reusable (export from a domain module when shared).
  4. Prefer explicit error messages suitable for UX; avoid leaking internals.
  5. In server code, validate before DB writes.

Notes

  • Use Zod as the single source of truth for both runtime validation and TS inference.
Weekly Installs
4
First Seen
Jan 22, 2026
Installed on
trae2
claude-code2
opencode1