api-endpoint-generator
Generates CRUD REST API endpoints with request validation, TypeScript types, consistent response formats, error handling, and documentation. Includes route handlers, validation schemas (Zod/Joi), typed responses, and usage examples. Use when building "REST API", "CRUD endpoints", "API routes", or "backend endpoints".
npx skills add majiayu000/claude-skill-registry --skill api-contract-normalizer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Endpoint Generator Generate production-ready CRUD API endpoints with validation and type safety. ## Core Workflow 1. **Define resource**: Entity name and schema 2. **Generate routes**: POST, GET, PUT/PATCH, DELETE endpoints 3. **Add validation**: Request body/query validation with Zod/Joi 4. **Type responses**: TypeScript interfaces for all responses 5. **Error handling**: Consistent error responses 6. **Documentation**: OpenAPI/Swagger specs 7. **Examples**: Request/response samples ## Express + TypeScript Pattern ```typescript // types/user.types.ts export interface User { id: string; email: string; name: string; role: "user" | "admin"; createdAt: Date; updatedAt: Date; } export interface CreateUserDto { email: string; name: string; password: string; } export interface UpdateUserDto { name?: string; email?: string; } export interface ApiResponse<T> { success: boolean; data?: T; error?: ApiError; meta?: PaginationMeta; } export interface ApiError { code: string; message: string; details?: Record<string, string[]>; } ``` ## Validation Schemas (Zod) ```typescript // schemas/user.schema.ts import { z } from "zod"; export const createUserSchema = z.object({ email: z.string().ema
- Core Workflow
- Express + TypeScript Pattern
- Validation Schemas (Zod)
- CRUD Route Handlers
- Controller Implementation
- Validation Middleware
- NestJS Pattern
- FastAPI Pattern (Python)
- Response Format Standards
- Status Codes
- Best Practices
- Output Checklist
What does the api-endpoint-generator skill do?
Generates CRUD REST API endpoints with request validation, TypeScript types, consistent response formats, error handling, and documentation. Includes route handlers, validation schemas (Zod/Joi), typed responses, and usage examples. Use when building "REST API", "CRUD endpoints", "API routes", or "backend endpoints".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-contract-normalizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
