What problem does it solve? TypeScript codebases accumulate any types, cryptic compiler errors, and weak inference that erode type safety. This Skill diagnoses the root cause of type issues and rewrites them using generics, conditional types, type guards, and utility types so code compiles cleanly under strict mode. ## Core Features & Use Cases - Type Error Diagnosis: Runs tsc --noEmit before and after changes to capture full error output, identify root causes like unsound inference or missing constraints, and verify fixes compile cleanly. - any Elimination: Replaces any with precise generics, unknown plus type guards, or branded/opaque types while validating that call sites still type-check. - Advanced Type-Level Programming: Provides reference rules for conditional types, infer, template literal types, mapped types, function overloads, builder patterns, and deep inference with const type parameters. - Use Case: A function like getProperty(obj: any, key: string): any is rewritten as getProperty<T, K extends keyof T>(obj: T, key: K): T[K], giving full autocomplete and compile-time key validation. ## Quick Start Ask the assistant to fix the TypeScript errors in your project and replace all any types with strict, type-safe alternatives.