What problem does it solve?
This Skill automates the creation and maintenance of type-safe API clients, ensuring consistency between backend API contracts and frontend implementations, thereby reducing integration errors and improving developer velocity.
Core Features & Use Cases
- Spec-First Contract Design: Enforces the OpenAPI specification as the single source of truth for API contracts.
- Automated Code Generation: Generates TypeScript types and a typed fetch client from OpenAPI specifications.
- Monorepo Integration: Provides a structure for managing API clients within a monorepo.
- Use Case: When a new backend endpoint is added or an existing one is modified, this Skill ensures the frontend client is automatically updated and type-checked against the new contract.
Quick Start
Use the openapi-codegen skill to generate the API client types from the OpenAPI specification located at ./apps/api/openapi.yaml.