What problem does it solve? Writing complex TypeScript type logic without guidance leads to unsafe casts, overuse of any, and missed compile-time guarantees. This Skill provides patterns and reference implementations for building type-safe applications using TypeScript's advanced type system. ## Core Features & Use Cases - Advanced Type Patterns: Covers generics with constraints, conditional types with infer, mapped types with key remapping, and template literal types for string manipulation. - Production Patterns: Includes type-safe event emitters, API clients, builder patterns, deep readonly/partial utilities, form validation, and discriminated union state machines. - Type Inference & Testing: Demonstrates type guards, assertion functions, the infer keyword, and compile-time type assertion tests. - Use Case: When building a type-safe API client where request bodies, params, and responses must be inferred from an endpoint configuration map, apply the conditional type extraction patterns to enforce correctness at compile time. ## Quick Start Ask the AI to help you implement a type-safe event emitter or generic utility type in TypeScript using the advanced type patterns from this skill.