scaffold-route
CommunityScaffold a Next.js route with tRPC and validation
Authorcerico
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates scaffolding of a complete Next.js route with a tRPC router and Zod validation, delivering a standardized file structure for rapid feature bootstrapping.
Core Features & Use Cases
- Generate a fully structured feature scaffold including app/[feature]/ with page.tsx, loading.tsx, error.tsx, and components/index.ts
- Create server/api/routers/[feature]/index.ts with a tRPC router and a Zod-based validation layer
- Update core project routing and validation barrels to integrate the new feature with a standard pattern
- Use case: kick off a new feature by automatically bootstrapping the route, UI, API, and validation scaffolds
Quick Start
- Ask for the feature name (singular, lowercase, e.g., "project", "booking", "invoice")
- Ask which CRUD operations are needed: list, get, create, update, delete
- Generate files following the patterns below
- Update barrel exports and root router
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: scaffold-route Download link: https://github.com/cerico/macfair/archive/main.zip#scaffold-route 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.