This converts OpenAPI 3.0 specs into TypeScript interfaces and runtime type guards. It reads your JSON or YAML spec, pulls out schemas and endpoint definitions, then generates properly typed interfaces with optional fields marked correctly, plus type guard functions for runtime validation. The output includes request and response types for each endpoint, handles refs and complex types like oneOf and allOf, and adds JSDoc comments from your spec descriptions. Saves you from manually writing types and keeps them in sync with your API contract. The type guards are especially handy since TypeScript's types disappear at runtime but you still need to validate API responses.
npx skills add https://github.com/davila7/claude-code-templates --skill openapi-to-typescript