What problem does it solve?
This Skill prevents inconsistencies and runtime errors caused by schema drift between different codebases (e.g., frontend, backend, database) by using a single source of truth for type definitions.
Core Features & Use Cases
- Single Source of Truth: Define your data models once using TypeSpec.
- Automated Code Generation: Automatically generate OpenAPI specs, TypeScript types, and Python Pydantic models from your TypeSpec definitions.
- Cross-Layer Type Safety: Ensures that your API contracts remain consistent across all layers of your application, preventing "schema drift bugs."
- Use Case: When your Python backend and TypeScript frontend start throwing errors because the
loraId field is expected as a string in one place and can be null in another, this skill enforces a unified definition.
Quick Start
Run the command to generate all contract types from your TypeSpec files.