zod-boundaries

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "zod-boundaries" with this command: npx skills add huynhsang2005/blog-tanstack/huynhsang2005-blog-tanstack-zod-boundaries

Zod Boundaries Skill

When to use

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

Workflow checklist

  • Define a schema close to the boundary (route module or a domain validator).

  • Parse early (parse /safeParse ) and return typed data.

  • Keep schemas reusable (export from a domain module when shared).

  • Prefer explicit error messages suitable for UX; avoid leaking internals.

  • In server code, validate before DB writes.

Notes

  • Use Zod as the single source of truth for both runtime validation and TS inference.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

framer-motion

No summary provided by upstream source.

Repository SourceNeeds Review
General

tanstack-form

No summary provided by upstream source.

Repository SourceNeeds Review
General

frontend-ui-ux

No summary provided by upstream source.

Repository SourceNeeds Review
General

tanstack-table

No summary provided by upstream source.

Repository SourceNeeds Review