type-generation
Installation
SKILL.md
Type Generation - Quick Reference
When NOT to Use This Skill
- Manual type writing - Use TypeScript skills
- Contract validation - Use
openapi-contractskill - GraphQL queries - Use
graphql-contractskill
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:typescriptfor advanced type patterns.
Tool Comparison
| Tool | Source | Output | Use Case |
|---|---|---|---|
| openapi-typescript | OpenAPI 3.x | TypeScript types | REST APIs |
| openapi-fetch | OpenAPI 3.x | Type-safe client | REST + fetch |
| graphql-codegen | GraphQL schema | Types + hooks | GraphQL APIs |
| orval | OpenAPI 3.x | Types + client | REST + Axios/fetch |
| swagger-typescript-api | OpenAPI/Swagger | Types + class client | REST APIs |