What problem does it solve?
Manually setting up tRPC routers, procedures, and Zod schemas is a repetitive and error-prone process that can lead to inconsistencies and type-safety issues. This Skill automates the boilerplate, ensuring consistent, type-safe API development.
Core Features & Use Cases
- Router Scaffolding: Quickly create new tRPC router files with the correct structure and boilerplate.
- Procedure Generation: Add type-safe query or mutation procedures to existing routers, complete with input/output schema placeholders.
- Zod Schema Creation: Generate Zod validation schemas with automatic type inference, ensuring robust runtime validation for your API.
- Use Case: You need to add a new API endpoint for user profile updates. Use this skill to scaffold the Zod schema, add the mutation procedure to the
user router, and ensure all type exports are correctly set up, saving significant development time and preventing common errors.
Quick Start
Use the trpc-scaffolder skill to create a new 'user' router and add a 'getProfile' query procedure.