openapi-typescript

Community

Type-safe API clients from OpenAPI specs.

Authorhjemmesidekongen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures your API clients and server code are always in sync with your OpenAPI specification, preventing runtime errors and improving developer confidence.

Core Features & Use Cases

  • Type Generation: Automatically generate TypeScript types from OpenAPI 3.x or Swagger 2.0 specs.
  • Type-Safe Clients: Use openapi-fetch to create clients that infer request/response types directly from generated schemas.
  • Runtime Validation: Integrate with Zod or TypeBox to validate API responses at runtime, bridging the gap between compile-time and runtime safety.
  • Use Case: Automatically generate all frontend API types from your backend's OpenAPI spec, ensuring that UI components consuming the API always have accurate type information, and catch breaking changes in CI.

Quick Start

Use the openapi-typescript skill to generate type definitions from the 'openapi.yaml' file in the current directory.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: openapi-typescript
Download link: https://github.com/hjemmesidekongen/ai/archive/main.zip#openapi-typescript

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.