patricio0312rev avatar

Api Contract Normalizer

Normalizes API contracts across different specs and formats into a consistent structure. Use this when you're dealing with OpenAPI, Swagger, RAML, or API Blueprint files and need them in a unified format for tooling, documentation generation, or migration projects. It's the kind of utility that saves you from writing yet another parser when integrating with third-party APIs or consolidating microservices documentation. The name suggests it focuses purely on transformation rather than generation, so you're likely feeding it existing contracts rather than building new ones. Handy if you're building API gateways, developer portals, or just trying to wrangle inconsistent API definitions into something your CI pipeline can validate.

skills.sh installs
289
GitHub stars
63
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from patricio0312rev/skills

All 138
1davila7 avatarpubchem-databasedavila7/claude-code-templatesQuery PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for c288skills.sh installs
2secondsky avatardatabase-shardingsecondsky/claude-skillsDatabase sharding for PostgreSQL/MySQL with hash/range/directory strategies. Use for horizontal scaling, multi-tenant isolation, billions of records, or encount277skills.sh installs
3patricio0312rev avatarbackend-latency-profiler-helperpatricio0312rev/skillsIdentifies API latency hotspots and bottlenecks with profiling tools, slow endpoint detection, suspected causes, and fix roadmap. Use for "latency profiling", "272skills.sh installs
4rmyndharis avatarbackend-architectrmyndharis/antigravity-skillsExpert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven 270skills.sh installs
5davila7 avataruniprot-databasedavila7/claude-code-templatesDirect REST API access to UniProt. Protein searches, FASTA retrieval, ID mapping, Swiss-Prot/TrEMBL. For Python workflows with multiple databases, prefer bioser269skills.sh installs
6davila7 avatarmetabolomics-workbench-databasedavila7/claude-code-templatesAccess NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolo264skills.sh installs