Openapi To Typescript

🌐Community
by softaworks · vlatest · Repository

Generates TypeScript interfaces and types from OpenAPI specifications, streamlining API client development with Softaworks' tool.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add openapi-to-typescript npx -- -y @trustedskills/openapi-to-typescript
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "openapi-to-typescript": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/openapi-to-typescript"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill converts OpenAPI specifications into TypeScript interfaces, enabling developers to generate strongly-typed client code for REST APIs. It supports various OpenAPI versions and provides customizable output formats.

When to use it

  • You need to create TypeScript types from an existing OpenAPI specification file.
  • You're building a frontend application that interacts with a backend API defined in OpenAPI format.
  • You want to automate the generation of client-side type definitions for easier development and better tooling support.

Key capabilities

  • Converts OpenAPI 2.0, 3.0, and 3.1 specifications into TypeScript interfaces.
  • Supports custom configuration options like naming conventions and output formats.
  • Generates clean, maintainable code that integrates well with modern TypeScript projects.

Example prompts

  • "Convert the OpenAPI file at ./api-spec.yaml to TypeScript interfaces."
  • "Generate client types for my API using the OpenAPI 3.1 spec in the ./docs/api.json file."
  • "Create strongly-typed models from this OpenAPI document and output them as a module."

Tips & gotchas

  • Ensure your OpenAPI specification is valid before running conversion to avoid errors.
  • Customize configuration parameters for better alignment with project-specific naming or formatting conventions.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
softaworks
Installs
3.0k

🌐 Community

Passed automated security scans.