What problem does it solve? Building APIs in TypeScript often means duplicating type definitions between server and client, writing validation logic by hand, and losing autocomplete across the network boundary. This Skill provides expert guidance for tRPC so you get full type inference from server to client without code generation or schemas. ## Core Features & Use Cases - Router & Procedure Setup: Define queries, mutations, and subscriptions with Zod-validated inputs and nested or merged routers. - Middleware & Context: Implement authentication, logging, and role-based access control as reusable middleware with typed context. - Client Integration: Connect React Query-powered hooks with batching, optimistic updates, infinite queries, and structured error handling in Next.js App Router. - Use Case: You are building a Next.js dashboard and need a typesafe CRUD API. Use this Skill to scaffold the app router, protect procedures with auth middleware, and consume them in components with fully inferred hooks. ## Quick Start Ask the AI to set up a tRPC router with a protected procedure and a React Query client in a Next.js App Router project.