Skip to content
patricio0312rev avatar

Api Contract Normalizer

Generates typed Express and NestJS CRUD endpoints with Zod or Joi validation and consistent error responses.

CCM score
43 of 100
skills.sh installs
295
GitHub stars
64
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers route handlers, controllers, and validation schemas for create, list, get, update, and delete on a single resource
  • Includes TypeScript DTOs, a shared ApiResponse<T> envelope, pagination meta, and a reusable validateRequest middleware
  • Enforces input rules such as password strength, a non-empty update body, and capped page sizes through schema constraints
  • Designed for backend developers scaffolding REST endpoints in Express or NestJS projects with TypeScript

Install

$ npx -y skills add patricio0312rev/skills --skill api-contract-normalizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

// 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)

// schemas/user.schema.ts
import { z } from "zod";

Details

Repository
github.com/patricio0312rev/skills
Category
Backend & APIs
First seen
Jun 3, 2026

Questions

What does the api-contract-normalizer skill do?

It generates CRUD REST API endpoints with request validation, TypeScript types, consistent response formats, error handling, and documentation. The skill includes route handlers, Zod or Joi validation schemas, typed responses, and usage examples for Express and NestJS.

How do I install the api-contract-normalizer skill?

Run npx -y skills add patricio0312rev/skills --skill api-contract-normalizer -y in your project. After that, the agent can help you build REST API routes and backend endpoints.

Where does api-contract-normalizer rank in the Backend and APIs category?

It sits in the Backend and APIs category on Claude Marketplaces, next to entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Its focus is generating typed CRUD endpoints with validation and consistent error responses.

When should I use the api-contract-normalizer skill?

Use it when you are building a REST API, CRUD endpoints, API routes, or backend endpoints. It covers route handlers, request validation, typed responses and documentation in one workflow.

More from patricio0312rev/skills

All 138

Similar to Api Contract Normalizer

More Backend & APIs