trpc-router-creating
OfficialScaffold robust tRPC routers with clean structure
AuthorDayopt
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Dayopt projects require consistent, scalable tRPC v11 routers with proper separation of concerns, input validation, and uniform error handling. This skill provides a repeatable scaffold to bootstrap routers, schemas, and tests that align with the project's architecture, reducing boilerplate and onboarding time.
Core Features & Use Cases
- Standardized tRPC v11 router scaffolding under src/server/api/routers/{entity}/ with index.ts, crud.ts, and optional files for bulk/statistics.
- Zod-based validation templates placed in src/schemas/{entity}.ts to enforce strict input shape and multi-tenant filtering.
- Centralized error handling and authentication patterns via protectedProcedure and a service layer, enabling reliable CRUD workflows across entities.
- Use Case: Rapidly bootstrap a new resource with a consistent routing and validation pattern, then extend with additional routes without rewriting boilerplate.
Quick Start
Scaffold a new tRPC v11 router following the repository conventions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trpc-router-creating Download link: https://github.com/Dayopt/app/archive/main.zip#trpc-router-creating Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.