What problem does it solve?
Large tRPC projects surface many decision points—server vs client setup, adapter selection, middleware composition, validation, error handling, caching, and real-time subscriptions—making it hard to know the next implementation step or best practice for a given goal. The trpc-router skill streamlines discovery by mapping a developer's intent to focused sub-skills and implementation patterns so the right guidance is delivered quickly.
Core Features & Use Cases
- Decision-tree routing: Map high-level goals (initialize server, create client, add middleware, enable subscriptions) to specialized guidance and examples.
- Adapter and integration guidance: Help choose and configure adapters (standalone, Express, Fastify, Edge/Lambda), client links, and SuperJSON transformers.
- Validation, errors, and caching: Direct to patterns for Zod validators, typed errors, global formatting, and response caching strategies.
- Use Case: Quickly determine how to wire up tRPC in a Next.js App Router with React Query, proper server context, and subscription support.
Quick Start
Use the trpc-router skill to route me to the correct sub-skill for setting up a Next.js App Router backend with React Query integration and subscription support.