What problem does it solve? TypeScript developers frequently hit cryptic compiler errors like "Type instantiation is excessively deep", circular type references, slow type checking, and generic constraint failures that are hard to diagnose and fix without deep type-system knowledge. ## Core Features & Use Cases - Error Pattern Resolution: Provides root-cause analysis and prioritized solutions for 18 advanced type system error patterns covering generics, conditional types, template literals, and module augmentation. - Type-Level Programming Patterns: Includes ready-to-use implementations of brand types, recursive types with depth limiting, distributive conditional control, and template literal parsing. - Performance Optimization: Offers diagnostic commands (tsc --extendedDiagnostics, --generateTrace) and refactoring strategies for slow compilation and out-of-memory failures. - Use Case: When a recursive mapped type triggers "Type instantiation is excessively deep and possibly infinite", apply the depth-limiting tuple counter pattern to cap recursion and restore compilation. ## Quick Start Ask the agent to diagnose and fix the TypeScript error "Type instantiation is excessively deep and possibly infinite" in your recursive type definition.