# Openapi Types

> Generate TypeScript types and client SDKs from OpenAPI specs

- Skill: `manastalukdar/openapi-types` (Agent Skill)
- Install (CLI): `npx skillmds@latest add manastalukdar/openapi-types`
- Raw SKILL.md: https://api.skillmd.com/api/skills/manastalukdar/openapi-types/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: manastalukdar (https://skillmd.com/u/manastalukdar)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/manastalukdar/openapi-types

---


# OpenAPI Type Generator

I'll generate TypeScript types, client SDKs, and Zod schemas from OpenAPI 3.0 specifications.

Arguments: `$ARGUMENTS` - path to OpenAPI spec file

**Features:**
- TypeScript types from OpenAPI schemas
- Type-safe fetch/axios client SDK
- Zod schemas for runtime validation
- React hooks for data fetching
- Integration with `/api-docs-generate`

## Token Optimization

**Expected range**: 2,000–3,000 tokens (initial), 100 tokens (types current)

**Caching**: No persistent caching — validates types against current spec on each run.

**Early exit**: Returns immediately if generated types are already in sync with the OpenAPI spec.

**Patterns used**: Grep-before-Read, early exit, Bash for system queries

