What problem does it solve? TypeScript codebases often accumulate loose typing (any, non-null assertions, lying casts), inconsistent paradigms, and architecture leaks where domain logic depends on infrastructure. This Skill provides a systematic framework for writing, reviewing, and refactoring TypeScript so code stays type-safe, maintainable, and scalable. ## Core Features & Use Cases - Code Auditing: Scan existing TypeScript against a catalog of 30+ named anti-patterns (T# type smells, P# design smells, A# architecture smells), each with a fix and before/after example. - Type-System Design Guidance: Apply discriminated unions, branded types, generics, narrowing, satisfies, and mapped/conditional types to make illegal states unrepresentable. - Architecture & Paradigm Decisions: Get concrete rules for module boundaries, ports and dependency injection, composition roots, layer mappers, and choosing between OOP and functional styles per unit of code. - Use Case: Ask for a review of a service module and receive grouped findings (Types / Design / Architecture) with smell codes, severity ordering by blast radius, and incremental refactoring steps. ## Quick Start Ask the assistant to review your TypeScript file or module for type safety, design smells, and architecture issues, and to suggest fixes with before-and-after examples.