What problem does it solve? TypeScript projects accumulate hard-to-diagnose issues: cryptic type errors, slow compilation, module resolution failures, and inconsistent tooling across monorepos. This Skill provides expert-level guidance to analyze project setup, fix type-level problems, optimize compiler performance, and execute migrations without breaking existing code. ## Core Features & Use Cases - Project Diagnostics: Runs an automated diagnostic script that checks TypeScript/Node versions, tsconfig strictness flags, tooling ecosystem (Biome, ESLint, Vitest, Nx, Turborepo), monorepo setup, any usage, and type-check performance. - Type-Level Programming Guidance: Covers branded types, conditional types, template literal types, deep readonly patterns, and type testing with Vitest, backed by a reusable utility-types reference library. - Migration & Tooling Decisions: Provides decision matrices for Biome vs ESLint, Nx vs Turborepo, CJS-to-ESM migration, and incremental JavaScript-to-TypeScript migration strategies. - Framework Patterns: Includes opinionated patterns for MedusaJS v2 modules/workflows and Payload CMS collections with Zod validation. - Use Case: A developer hits "Type instantiation is excessively deep" in a 50-package monorepo. The Skill diagnoses the recursive type, suggests interface-based fixes, verifies project references configuration, and validates with tsc --noEmit. ## Quick Start Ask the agent to diagnose your TypeScript project setup and fix the type errors in your current repository.