trpc-router

Design and maintain scalable TRPC routers with zod schemas and TRPCProcedure usage.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/mabdulrauf/wazone-back --skill trpc-router-mabdulrauf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trpc-router
Source: https://github.com/mabdulrauf/wazone-back/tree/main/.agents/skills/trpc-router
Command: npx skills add https://github.com/mabdulrauf/wazone-back --skill trpc-router-mabdulrauf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TRPC router development guide: Design and maintain scalable TRPC routers for server-side APIs, including router creation, procedure implementation, and endpoint tasks.

Core Features & Use Cases

  • Structured router module patterns: imports, middleware, and conventions for consistent server APIs.
  • Procedure guidelines: queries, mutations, error handling, and TRPCError usage.
  • Aggregated detail endpoints: efficient data aggregation for related models and endpoints.

Quick Start

Create or modify a TRPC router file under src/server/routers/lambda and implement procedures according to this guide.

Frequently Asked Questions about trpc-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a scalable tRPC router for a backend API?

Implement tRPC procedures by defining queries, mutations, and error handling within your router module, utilizing TRPCError usage and zod schemas to validate inputs and maintain reliable endpoint behavior.

What is the best way to handle errors in tRPC procedures?

Handle errors in tRPC procedures by utilizing TRPCError usage alongside zod schemas, codifying error handling patterns within your router implementation to ensure consistent and reliable API responses.

How do I aggregate data for related models in a tRPC endpoint?

Aggregate data for related models by implementing aggregated detail endpoints within your tRPC router, allowing efficient data aggregation for related endpoints and models in a single procedure call.

Does this tRPC router guide work with TypeScript and Zod schemas?

Yes, this tRPC router guide works with TypeScript and Zod schemas, codifying conventions, error handling, and patterns with zod schemas and TRPCProcedure usage to ensure consistent router implementations.