type-sharing
Installation
SKILL.md
Type Sharing
Discovery
Before generating anything, ask (or infer from context):
- Architecture: Monorepo (Turborepo/Nx/pnpm workspaces) or separate repos?
- Schema source of truth: Database schema (Prisma), API spec (OpenAPI/GraphQL), or hand-written TypeScript?
- Stack: What's the backend (Express, tRPC, Fastify, NestJS)? What's the frontend (Next.js, React, Vite)?
- Existing drift problem? — Are types already duplicated, or is this greenfield?
Strategy: Pick One Pattern
Choose based on answers above. Don't mix patterns.