Skip to main content
plugin

openapi-to-typescript — Claude Code plugin: overview and install

openapi-to-typescript turns OpenAPI 3.0 JSON and YAML schemas into TypeScript interfaces and type guards. Runs during API integration tasks to create strict contract typings.

MIT ★ 2,707 updated 2026-03-05

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add softaworks/agent-toolkit
/plugin install openapi-to-typescript@agent-toolkit
Open on GitHub

What openapi-to-typescript does

This plugin converts OpenAPI 3.0 contracts formatted as JSON or YAML into TypeScript declarations. It produces interfaces alongside type guards for runtime payload verification. All logic lives in the skills/openapi-to-typescript skill.

Input must adhere strictly to OpenAPI 3.0 specs, meaning the tool will fail on alternative API definitions. The code comes from the softaworks/agent-toolkit repository under the MIT license.

What it helps with

  • generate TypeScript interfaces from an OpenAPI 3.0 specification
  • build runtime type guards for API payloads
  • parse JSON and YAML endpoint definitions into TypeScript types

Example prompts for the agent

  • Convert our openapi.yaml file into TypeScript types and type guards
  • Generate TypeScript interfaces from the api-spec.json contract
  • Build client type guards based on the OpenAPI 3.0 schema

How to install openapi-to-typescript

Plugin marketplace

/plugin marketplace add softaworks/agent-toolkit
/plugin install openapi-to-typescript@agent-toolkit

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about openapi-to-typescript

How to install openapi-to-typescript in Claude Code?

First add the marketplace with /plugin marketplace add softaworks/agent-toolkit, then install the plugin by running /plugin install openapi-to-typescript@agent-toolkit.

What does openapi-to-typescript do?

It parses OpenAPI 3.0 definitions in JSON or YAML format to produce TypeScript interfaces and type guards.

Which file formats are supported by openapi-to-typescript?

The plugin handles OpenAPI 3.0 specifications stored as either JSON or YAML.

Source text

openapi-to-typescript · MIT
Converts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards. Use when generating types from OpenAPI or creating API interfaces.

Skills: skills/openapi-to-typescript

© softaworks · MIT · softaworks/agent-toolkit

Similar plugins

All plugins for Frontend and UI →

From the same set79

The whole set →
dependency-updater dependency-updater — a Claude Code plugin that updates dependencies for any language. Detects the project type, applies safe updates automatically, asks before major versions. ★ 2,707repo stars database-schema-designer The database-schema-designer Claude Code plugin designs SQL and NoSQL database schemas, with guidance on normalization, indexes, and migration patterns. ★ 2,707repo stars react-useeffect react-useeffect helps you write and review useEffect correctly by spotting dependency logic errors, memory leaks, and situations where an Effect is unnecessary. Based on React's official documentation. ★ 2,707repo stars react-dev react-dev builds type-safe React components with TypeScript. Enforces patterns for React 18-19, generic components, event typing, and routing integration. ★ 2,707repo stars mui Equips Claude Code with Material-UI v7 patterns covering sx prop styling, theme integration, responsive layouts, and MUI hooks. Guides React UI construction under library conventions. ★ 2,707repo stars design-system-starter design-system-starter — a Claude Code plugin that creates and evolves design systems: design tokens, component architecture, accessibility guidelines and documentation templates. ★ 2,707repo stars writing-clearly-and-concisely writing-clearly-and-concisely — a Claude Code plugin that improves prose quality in documentation, commit messages, error messages, and UI text. Runs whenever you write text that people will read. ★ 2,707repo stars mermaid-diagrams mermaid-diagrams — a plugin for Claude Code renders diagrams from Mermaid syntax directly in the editor. Build architecture charts, flowcharts, sequence diagrams, and process flows without switching tools. ★ 2,707repo stars

Project sponsors

Companies that keep this analytics open