validators
OfficialEnforce robust input/output validation for tRPC
AuthorPlazaCC
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Many tRPC procedures return or accept data that can drift from expected shapes, causing runtime type mismatches, unclear errors, and unreliable APIs; this Skill clarifies how to validate inputs and outputs to prevent those failures and surface appropriate errors.
Core Features & Use Cases
- Input Validation: Use Zod, Yup, Superstruct, ArkType, Valibot, Effect, or custom validator functions to validate procedure inputs.
- Input Chaining: Merge multiple object schemas across chained .input() calls so base procedures and derived procedures combine shapes correctly.
- Output Validation: Validate server responses and surface INTERNAL_SERVER_ERROR when the server produces invalid output, protecting clients from inconsistent data.
- Custom Validators & Patterns: Support custom validator functions and standard schema protocol; covers common pitfalls like non-object input chaining and cursor nullability for infinite queries.
- Use Case: Harden a publicProcedure that composes middleware and derived inputs while ensuring paginated queries accept nullish cursors and return validated payloads.
Quick Start
Use the validators skill to add Zod input schemas and output validators to your tRPC procedures.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: validators Download link: https://github.com/PlazaCC/antes-da-tela/archive/main.zip#validators Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.