What problem does it solve?
Dayopt projects require consistent, scalable tRPC v11 routers with proper separation of concerns, input validation, and uniform error handling. This skill provides a repeatable scaffold to bootstrap routers, schemas, and tests that align with the project's architecture, reducing boilerplate and onboarding time.
Core Features & Use Cases
- Standardized tRPC v11 router scaffolding under src/server/api/routers/{entity}/ with index.ts, crud.ts, and optional files for bulk/statistics.
- Zod-based validation templates placed in src/schemas/{entity}.ts to enforce strict input shape and multi-tenant filtering.
- Centralized error handling and authentication patterns via protectedProcedure and a service layer, enabling reliable CRUD workflows across entities.
- Use Case: Rapidly bootstrap a new resource with a consistent routing and validation pattern, then extend with additional routes without rewriting boilerplate.
Quick Start
Scaffold a new tRPC v11 router following the repository conventions.