Skills for Real Engineers. Straight from my .agents directory.
openapi-to-typescript
Agent skill fromsoftaworks/agent-toolkit
Converts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards. This skill should be used when the user asks to generate types from OpenAPI, convert schema to TS, create API interfaces, or generate TypeScript types from an API specification.
How to install openapi-to-typescript
npx skills add softaworks/agent-toolkit# or add only this skill to Claude Code: copy the folder
skills/openapi-to-typescript/
# into
~/.claude/skills/openapi-to-typescript/ (all projects)
.claude/skills/openapi-to-typescript/ (one project)
1# OpenAPI to TypeScript23Converts OpenAPI 3.0 specifications to TypeScript interfaces and type guards.45**Input:** OpenAPI file (JSON or YAML)6**Output:** TypeScript file with interfaces and type guards78## When to Use910- "generate types from openapi"11- "convert openapi to typescript"12- "create API interfaces"13- "generate types from spec"1415## Workflow16171. Request the OpenAPI file path (if not provided)182. Read and validate the file (must be OpenAPI 3.0.x)193. Extract schemas from `components/schemas`204. Extract endpoints from `paths` (request/response types)215. Generate TypeScript (interfaces + type guards)226. Ask where to save (default: `types/api.ts` in current directory)237. Write the file2425## OpenAPI Validation2627Check before processing:2829```30- Field "openapi" must exist and start with "3.0"31- Field "paths" must exist32- Field "components.schemas" must exist (if there are types)33```3435If invalid, report the error and stop.3637## Type Mapping3839### Primitives4041| OpenAPI | TypeScript |42|-------------|--------------|43| `string` | `string` |44| `number` | `number` |45| `integer` | `number` |46| `boolean` | `boolean` |47| `null` | `null` |4849### Format Modifiers5051| Format | TypeScript |52|---------------|-------------------------|53| `uuid` | `string` (comment UUID) |54| `date` | `string` (comment date) |55| `date-time` | `string` (comment ISO) |56| `email` | `string` (comment email)|57…
Excerpt shown under the repository's MIT license.
More skills in agent-toolkit
Similar skill repositories
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
