Agent skill · Backend & API

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".

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/api/api-contract-normalizer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Core Workflow
  2. Express + TypeScript Pattern
  3. Validation Schemas (Zod)
  4. CRUD Route Handlers
  5. Controller Implementation
  6. Validation Middleware
  7. NestJS Pattern
  8. FastAPI Pattern (Python)
  9. Response Format Standards
  10. Status Codes
  11. Best Practices
  12. Output Checklist
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going