openapi-types

Generate TypeScript types, client SDKs, and Zod schemas from OpenAPI 3.0 specifications.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/claude-devstudio --skill openapi-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi-types
Source: https://github.com/manastalukdar/claude-devstudio/tree/main/skills/openapi-types
Command: npx skills add https://github.com/manastalukdar/claude-devstudio --skill openapi-types

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of TypeScript types, client SDKs, and Zod schemas directly from OpenAPI specifications, eliminating manual type creation and ensuring API consistency.

Core Features & Use Cases

  • TypeScript Type Generation: Creates type definitions from your OpenAPI 3.0 schema.
  • Client SDK Generation: Builds type-safe fetch or axios client libraries for your API.
  • Zod Schema Generation: Generates Zod schemas for runtime validation of API requests and responses.
  • React Hooks: Provides pre-built React Query hooks for seamless data fetching.
  • Use Case: When you have an OpenAPI specification file (e.g., openapi.yaml), you can use this skill to instantly generate all the necessary TypeScript types, a ready-to-use API client, and validation schemas, significantly speeding up frontend development.

Quick Start

Use the openapi-types skill to generate TypeScript types and a client SDK from the file 'api-spec.yaml'.

Frequently Asked Questions about openapi-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate TypeScript types from an OpenAPI spec?

To generate TypeScript types from an OpenAPI spec, provide your OpenAPI 3.0 specification file. The skill processes the schema to automatically create type definitions, eliminating manual type creation and ensuring API consistency.

Can I generate Zod schemas for runtime validation from OpenAPI 3.0?

Yes, you can generate Zod schemas from OpenAPI 3.0 specifications. The skill creates Zod schemas directly from your API schema to provide runtime validation for API requests and responses.

How do I create a type-safe API client SDK from an OpenAPI yaml file?

You can create a type-safe API client SDK from an OpenAPI yaml file by using the generation skill. It builds ready-to-use fetch or axios client libraries directly from your OpenAPI 3.0 specification.

Does openapi-types support generating React hooks for API data fetching?

Yes, openapi-types supports generating React hooks. It provides pre-built React Query hooks from your OpenAPI specifications to enable seamless and type-safe data fetching in frontend development.

What is the best way to automate SDK generation without exceeding token limits?

To automate SDK generation efficiently, the skill optimizes token usage through caching, bash validation, template-based generation, and incremental updates. This approach minimizes token consumption while building client libraries.

Do I need a specific OpenAPI version to generate TypeScript types and clients?

You need an OpenAPI 3.0 specification file to generate TypeScript types, client SDKs, and Zod schemas. The skill processes your 3.0 schema to automatically create the necessary frontend assets.