trpc-router-generator
Generate tRPC router files with procedures and validation. Triggers on "create trpc router", "generate trpc procedure", "trpc api", "typesafe api".
When & Why to Use This Skill
This Claude skill automates the creation of type-safe tRPC router files, complete with procedures and Zod-based input validation. It streamlines backend development by generating boilerplate code for CRUD operations and complex API endpoints, ensuring full type safety and architectural consistency across the TypeScript stack.
Use Cases
- Rapidly bootstrapping new backend modules by generating full CRUD procedures for entities like 'Users', 'Orders', or 'Products'.
- Ensuring robust API security and data integrity by automatically integrating Zod schemas for request validation within tRPC procedures.
- Accelerating the development of type-safe APIs in T3 stack or modern TypeScript projects by reducing manual boilerplate and repetitive coding tasks.
| name | trpc-router-generator |
|---|---|
| description | Generate tRPC router files with procedures and validation. Triggers on "create trpc router", "generate trpc procedure", "trpc api", "typesafe api". |
tRPC Router Generator
Generate tRPC routers with type-safe procedures and Zod validation.
Output Requirements
File Output: *.router.ts tRPC router files
Format: Valid tRPC v11
Standards: tRPC 11.x, Zod
When Invoked
Immediately generate a complete tRPC router.
Example Invocations
Prompt: "Create tRPC router for users"
Output: Complete users.router.ts with CRUD procedures.