
Api Endpoint Scaffolder
This scaffolds REST API endpoints with validation, error handling, and proper TypeScript types baked in. You get templates for Next.js App Router and Express that include Zod schema validation, appropriate HTTP status codes, and structured error responses. It's opinionated about the basics like logging errors without exposing internals and using consistent response formats. If you're tired of writing the same boilerplate every time you add a new route, or you want your team's endpoints to follow the same patterns, this gives you a solid starting structure. The templates are practical starting points, not production-ready code, but they handle the tedious parts correctly.
- skills.sh installs
- 312
- GitHub stars
- 422
- last updated
- Aug 21, 2026
Install
$ npx -y skills add onewave-ai/claude-skills --skill api-endpoint-scaffolder --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Endpoint Scaffolder
Instructions
When creating a new API endpoint:
- Identify the framework (Express, Next.js, FastAPI, etc.)
- Determine HTTP method (GET, POST, PUT, PATCH, DELETE)
- Define request/response types
- Implement with best practices
Templates
Next.js App Router (TypeScript)
// app/api/[resource]/route.ts
import { NextRequest, NextResponse } from 'next/server';
import { z } from 'zod';
const RequestSchema = z.object({
// Define your schema
});
export async function GET(request: NextRequest) {
try {
const { searchParams } = new URL(request.url);
// Implementation
return NextResponse.json({ data }, { status: 200 });
} catch (error) {
console.error('[API] Error:', error);
return NextResponse.json(
{ error: 'Internal server error' },
{ status: 500 }
);
}
}
Sponsors
Details
- Repository
- github.com/onewave-ai/claude-skills
- Categories
- Backend & APIs, Debugging
- First seen
- Jun 3, 2026
More from onewave-ai/claude-skills
All 108- Error Boundary Creator311
- Docker Debugger309
- Scout309
- Test Coverage Improver306
- Env Setup Wizard303
- Regex Visual Debugger302
- Landing Page Copywriter6.6K
- Code Review Pro2.6K
- Screenshot To Code1.5K
- Csv Excel Merger1.2K
- Technical Writer1.1K
- Sports Betting Analyzer850
- Css Animation Creator830
- Social Media Content Repurposer775
- Job Application Optimizer721
- Workout Program Designer707
- Knowledge Base Builder684
- Color Palette Extractor649
- Stock Photo Finder613
- Font Pairing Suggester601
- Itinerary Optimizer598
- Presentation Design Enhancer596
- Quiz Maker539
- Cold Email Sequence Generator519