trpc-conventions
CommunitytRPC router patterns for Otaku Odyssey.
Authorleonardoacosta
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a set of tRPC router conventions for Otaku Odyssey, including pagination, CRUD-like operations, error handling, and consistent client usage patterns.
Core Features & Use Cases
- Router Structure: Standardized router structure with input validation via Zod and protectedProcedure usage.
- Error Handling: Consistent TRPCError usage and codes such as NOT_FOUND, UNAUTHORIZED, FORBIDDEN, BAD_REQUEST.
- Client Usage Pattern: Examples for calling routers from React components using the api hooks.
Quick Start
Create a new tRPC router following the conventions shown, including input validation and protected procedures.
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-conventions Download link: https://github.com/leonardoacosta/Installfest/archive/main.zip#trpc-conventions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.