create-api-endpoint
CommunityBuild type-safe API routes with auth
Software Engineering#authentication#error handling#rate limiting#App Router#Next.js 15#pagination#Zod validation
AuthorPeterCowling
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers implement robust, type-safe API endpoints in Next.js 15 using the App Router, with integrated validation, authentication, and error handling, reducing boilerplate and runtime errors.
Core Features & Use Cases
- Type-safe API route handlers using Next.js App Router
- Zod-based input validation for request bodies and params
- Authentication checks and conditional responses
- Structured error handling with explicit HTTP status codes
- Pagination and rate-limiting scaffolding for public endpoints
- Use Case: quickly scaffold a GET/POST API for resources under app/api/<path>/route.ts
Quick Start
Create app/api/<path>/route.ts with GET and POST handlers, apply a Zod schema for validation, and add a simple authentication check.
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: create-api-endpoint Download link: https://github.com/PeterCowling/base-shop/archive/main.zip#create-api-endpoint 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.