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.
More from huynhsang2005/blog-tanstack
zustand
Use Zustand for client state in this repo. Use when you need shared client state, derived selectors, or cross-component UI coordination.
4shadcn-ui
Build UI with shadcn/ui primitives and Tailwind, using consistent variants and accessible patterns.
4tanstack-query
Use TanStack Query with SSR/hydration in this repo. Use when creating queries/mutations, defining query keys, integrating loaders, or troubleshooting cache/hydration issues.
4feature-dev
End-to-end workflow for building a new feature (context -> plan -> code -> verify) using the repo’s docs index and skills.
3frontend-design
Create distinctive, production-grade frontend interfaces with a bold, memorable aesthetic. Use when building UI components, pages, or layouts.
3cloudinary
Integrate Cloudinary for media uploads and delivery. Use when implementing image/video upload flows, transformations, or storage strategy.
3