add-trpc-router

Generate tRPC routers with CRUD procedures and Zod validation.

Updated May 23, 2026
One-click install
npx skills add https://github.com/devturco/thiago-dev-template --skill add-trpc-router
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-trpc-router
Source: https://github.com/devturco/thiago-dev-template/tree/main/.claude/skills/add-trpc-router
Command: npx skills add https://github.com/devturco/thiago-dev-template --skill add-trpc-router

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the repetitive setup work required to create a new tRPC router (CRUD-style endpoints plus validation) for a specific domain or feature.

Core Features & Use Cases

  • Zod validator scaffolding: Generates entity schemas, plus create/update variants to enforce input shape.
  • Router CRUD procedures: Creates a router with list, by-id, create, update, and delete procedures wired to protected/public patterns.
  • Root router wiring: Ensures the new domain router is connected to the app’s main tRPC router.
  • Use Case: When you add a new feature like managing a domain entity (e.g., “Projects” or “Tasks”), you can quickly generate the server endpoints and validations needed to start building the frontend and integration tests.

Quick Start

Ask the AI to create a tRPC router named projects for your next domain feature, including the required validators and router wiring.

Frequently Asked Questions about add-trpc-router

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

FAQPage Schema
How do I scaffold a tRPC router with CRUD procedures and Zod validation?

To scaffold a tRPC router, provide a domain feature name to automatically generate list, byId, create, update, and delete endpoints alongside Zod validator modules and integrate them into the root router.

What is the best way to generate tRPC validators for create and update operations?

Generating tRPC validators for create and update operations is best handled by scaffolding entity schemas with Zod, which produces distinct input shape variants to enforce validation across your CRUD procedures.

How do you wire a new domain router into an existing tRPC root router?

Wiring a new domain router into an existing tRPC root router happens automatically during scaffolding, ensuring your newly generated CRUD procedures connect directly to the main application router.

Can I use this to add tRPC backend endpoints for a Turborepo TypeScript project?

Yes, you can use this to add tRPC backend endpoints for a TypeScript project, generating consistent CRUD procedures and Zod input validation tailored for domain features within a Turborepo monorepo.

When do I need to scaffold a separate tRPC router for a domain feature?

You need to scaffold a separate tRPC router when adding a new domain entity like Projects or Tasks, eliminating repetitive setup by instantly generating the required endpoints and validations for frontend integration.