type-safety-validation
Installation
SKILL.md
Type Safety & Validation
Overview
When to use this skill:
- Building type-safe APIs (REST, RPC, GraphQL)
- Validating user input and external data
- Ensuring database queries are type-safe
- Creating end-to-end typed full-stack applications
- Implementing strict validation rules
Core Stack Quick Reference
| Tool | Purpose | Key Pattern |
|---|---|---|
| Zod | Runtime validation | z.object({}).safeParse(data) |
| tRPC | Type-safe APIs | t.procedure.input(schema).query() |
| Prisma | Type-safe ORM | Auto-generated types from schema |
| TypeScript 5.7+ | Compile-time safety | satisfies, const params, decorators |