trpc-router
Installation
SKILL.md
tRPC -- Skill Router
Decision Tree
What are you trying to do?
Define a tRPC backend (server)
-
Initialize tRPC, define routers, procedures, context, export AppRouter -> Load skill:
server-setup -
Add middleware (.use), auth guards, logging, base procedures -> Load skill:
middlewares -
Add input/output validation with Zod or other libraries -> Load skill:
validators -
Throw typed errors, format errors for clients, global error handling -> Load skill:
error-handling