api-route-scaffold
CommunityCreate Next.js API routes following project patterns.
AuthorAppleLamps
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a proven blueprint for scaffolding Next.js API routes with consistent structure (OPTIONS, POST handlers), CORS, and error handling.
Core Features & Use Cases
- Route scaffold: create app/api/<endpoint-name>/route.ts following project pattern
- CORS & error handling: standard preflight handling and robust error responses
- Database patterns: guidelines for importing from @/db and using drizzle
Quick Start
Create app/api/<endpoint-name>/route.ts using the template and adapt the fields, then wire it to your data model and API.
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: api-route-scaffold Download link: https://github.com/AppleLamps/xpic2/archive/main.zip#api-route-scaffold 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.