Type Safety & Validation Patterns
Implements end-to-end type safety and runtime validation using Zod, tRPC, and Prisma for robust TypeScript and Python applications.
This skill empowers Claude to build resilient, production-ready applications by leveraging advanced type-safety patterns across the entire stack. It focuses on Zod for runtime validation, tRPC for end-to-end typed APIs, and Prisma for type-safe database interactions. By incorporating strict TypeScript 5.7+ features, exhaustive switch statement checks, and branded types, it minimizes runtime errors and prevents logical confusion between similar data types. Additionally, it provides specialized patterns for Python type narrowing, making it an essential toolkit for developers prioritizing data integrity and strict contract enforcement.