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.

majiayu000 7c8b1b0 2 files · 1.6 KB Updated 567 repo stars

File contents

Skill: Types

Type generation and synchronization between frontend and backend.

Routing Logic

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

Generate Typesworkflows/generate.md

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

Type Usageworkflows/usage.md

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

Troubleshootingworkflows/troubleshoot.md

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

Configuration Questionscontext/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

majiayu000/claude-skill-registry-data/tree/main/design/types commit 7c8b1b0371

Frequently asked questions

npx skillmds add majiayu000/types