generate-types
Code Quality84 downloads · by community
Derive TypeScript types from a JSON sample, OpenAPI spec, or database schema
Install
npx @claudeskill/cli install generate-typesWhat this skill does
Derives TypeScript types from real data: a JSON sample, an OpenAPI document, a GraphQL schema, or a database introspection. Produces well-named, narrowly-scoped types with discriminated unions where appropriate, and lands them in the right file alongside existing types.
Use cases
- Typing a third-party API response without guessing
- Keeping client types in sync with an OpenAPI spec
- Generating database row types from Postgres or SQLite
- Replacing `any` with real types in legacy code