types

TypeScript type generation and synchronization between backend OpenAPI and frontend. Auto-generates types from /openapi.json using openapi-typescript. Critical after any API change.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill automates the generation and synchronization of TypeScript types from backend OpenAPI specifications. By leveraging openapi-typescript, it ensures that frontend developers always work with up-to-date type definitions, eliminating manual errors and maintaining strict type safety across the entire development stack. It is an essential tool for maintaining consistency between backend API changes and frontend implementation.

Use Cases

  • Automated Type Synchronization: Instantly update frontend TypeScript definitions whenever the backend openapi.json is modified to prevent integration bugs.
  • Type-Safe API Integration: Generate accurate interfaces for new API endpoints, providing developers with immediate IDE auto-completion and compile-time checks.
  • Troubleshooting Type Mismatches: Quickly identify and resolve discrepancies between backend responses and frontend expectations when types fall out of sync.
  • Standardizing Development Workflows: Establish a consistent pattern for handling API data structures across large teams using centralized type generation.
nametypes
descriptionTypeScript type generation and synchronization between backend OpenAPI and frontend. Auto-generates types from /openapi.json using openapi-typescript. Critical after any API change.

Skill: Types

Type generation and synchronization between frontend and backend.

Routing Logic

Analyze the user's intent and route to the appropriate workflow:

Generate Types → workflows/generate.md

  • "Generate types"
  • "Update frontend types"
  • "Sync types from backend"
  • "Regenerate API types"

Type Usage → workflows/usage.md

  • "How do I use the generated types?"
  • "Import types for [endpoint]"
  • "Type the API response"

Troubleshooting → workflows/troubleshoot.md

  • "Types are out of sync"
  • "TypeScript error with API"
  • "Type doesn't match response"

Configuration Questions → context/config.md

  • "Where are types generated?"
  • "How does type generation work?"

Workflows

  • workflows/generate.md - Generate TypeScript types from OpenAPI
  • workflows/usage.md - How to use generated types
  • workflows/troubleshoot.md - Fix type issues

Context

  • context/config.md - Type generation configuration
  • context/patterns.md - Type usage patterns