Skip to main content
Back to registry

openapi-to-typescript

softaworks/agent-toolkit

Converts OpenAPI 3.0 specifications to TypeScript interfaces and type guards.

Installs562
Install command
npx skills add https://github.com/softaworks/agent-toolkit --skill openapi-to-typescript
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Converts OpenAPI 3.0 specifications to TypeScript interfaces and type guards. Input: OpenAPI file (JSON or YAML) Output: TypeScript file with interfaces and type guards Check before processing: If invalid, report the error and stop. Object: Array: Enum: oneOf (Union): allOf (Intersection/Extends): For each schema in components/schemas : For each endpoint in paths : Naming convention: For each main interface, generate a type guard: Type guard rules: When encountering {"$ref": "#/components/schemas/Product"} : Input (OpenAPI): Output (TypeScript): - "generate types from openapi" - "convert openapi to typescript" - "create API interfaces" - "generate types from spec" - Request the OpenAPI file path (if not provided) - Read and validate the file (must be OpenAPI 3.0.x) - Extract schemas from components/schemas - Extract endpoints from paths (request/response types) - Generate TypeScript (interfaces + type guards) - Ask where to save (default: types/api.ts in current directory) - Write the file - Use OpenAPI description as JSDoc - Fields in required[] have no ? - Fields outside required[] have ? - {Method}{Path}Request for params/body - {Method}{Path}Response for response - Check typeof value === 'object' && value !== null - For each required field: check 'field' in value - For primitive fields: check typeof - For arrays: check Array.isArray() - For enums: check .includes() -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does openapi-to-typescript do?

Converts OpenAPI 3.0 specifications to TypeScript interfaces and type guards.

Is openapi-to-typescript good?

openapi-to-typescript does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does openapi-to-typescript work with?

openapi-to-typescript currently lists compatibility with codex, gemini-cli, opencode, cursor, cline, claude-code.

What are alternatives to openapi-to-typescript?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install openapi-to-typescript?

npx skills add https://github.com/softaworks/agent-toolkit --skill openapi-to-typescript

Related skills

More from softaworks/agent-toolkit

Related skills

Alternatives in Software Engineering