trpc-scaffolder

Community

Build type-safe APIs faster, with Zod validation.

AuthorArieGoldkin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually setting up tRPC routers, procedures, and Zod schemas is a repetitive and error-prone process that can lead to inconsistencies and type-safety issues. This Skill automates the boilerplate, ensuring consistent, type-safe API development.

Core Features & Use Cases

  • Router Scaffolding: Quickly create new tRPC router files with the correct structure and boilerplate.
  • Procedure Generation: Add type-safe query or mutation procedures to existing routers, complete with input/output schema placeholders.
  • Zod Schema Creation: Generate Zod validation schemas with automatic type inference, ensuring robust runtime validation for your API.
  • Use Case: You need to add a new API endpoint for user profile updates. Use this skill to scaffold the Zod schema, add the mutation procedure to the user router, and ensure all type exports are correctly set up, saving significant development time and preventing common errors.

Quick Start

Use the trpc-scaffolder skill to create a new 'user' router and add a 'getProfile' query procedure.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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-scaffolder
Download link: https://github.com/ArieGoldkin/devPrepAi/archive/main.zip#trpc-scaffolder

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository