Openapi To Typescript
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.
Run in terminal (recommended)
claude mcp add openapi-to-typescript npx -- -y @trustedskills/openapi-to-typescript
Or manually add to ~/.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.yamlto TypeScript interfaces." - "Generate client types for my API using the OpenAPI 3.1 spec in the
./docs/api.jsonfile." - "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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.