What problem does it solve? Writing tRPC routers without consistent conventions leads to duplicated model instantiation, inconsistent error handling, and N+1 request patterns between client and server. This Skill enforces a standardized structure for routers, procedures, middleware, and error handling in apps/server/src/routers. ## Core Features & Use Cases - Middleware-Based Model Injection: Injects database models into the tRPC context via middleware instead of constructing models inside every procedure. - Standardized Procedure Patterns: Provides query and mutation templates with zod input validation, TRPCError re-throwing, and consistent { data, success: true } return shapes. - Aggregated Detail Endpoints: Builds single detail procedures that fetch related data in parallel with Promise.all to avoid sequential client requests. - Use Case: When adding a new domain endpoint to the server, follow this guide to scaffold the router file, wire models through middleware, and return properly typed, error-handled responses. ## Quick Start Create a new tRPC router for the task domain following the conventions in this guide.