onewave-ai avatar

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-code

Installs into .claude/skills of the current project.

Files

API Endpoint Scaffolder

Instructions

When creating a new API endpoint:

  1. Identify the framework (Express, Next.js, FastAPI, etc.)
  2. Determine HTTP method (GET, POST, PUT, PATCH, DELETE)
  3. Define request/response types
  4. 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
1nice-wolf-studio avatarsupabase-databasenice-wolf-studio/claude-code-supabase-skillsPerform database operations (CRUD) on Supabase tables using the REST API. Use for querying, inserting, updating, and deleting data in your Supabase database.300skills.sh installs
2cinience avataralicloud-database-rds-supabase-testcinience/alicloud-skillsMinimal smoke test for RDS Supabase skill. Validate endpoint reachability and one list/detail API.298skills.sh installs
3wix avatarwix-cli-backend-apiwix/skillsCreates HTTP endpoints for Wix CLI apps. Use only when the user specifically asks for a backend endpoint. Use when building REST API endpoints, backend HTTP han287skills.sh installs
4patricio0312rev avatarrest-to-graphql-migratorpatricio0312rev/skillsMigrates REST APIs to GraphQL incrementally with schema stitching, REST datasources, and gradual endpoint migration. Use when users request "migrate to GraphQL"274skills.sh installs
5cinience avataralicloud-database-analyticdb-mysql-testcinience/alicloud-skillsSmoke test for alicloud-database-analyticdb-mysql. Validate minimal authentication, API reachability, and one read-only query path.164skills.sh installs
6firebase avatarfirebase-auth-basicsfirebase/agent-skillsGuide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using a182.2Kskills.sh installs