What problem does it solve? TypeScript's structural typing allows any string or number to be passed where a specific kind of string or number is expected, causing bugs like swapped IDs, unsanitized HTML, or mixed-up units. This Skill adds nominal typing through brands so the compiler rejects semantically wrong values. ## Core Features & Use Cases - Branded Primitive Patterns: Define types like UserId, Email, Meters, or AbsolutePath using intersection types with a phantom _brand property. - Type Guards and Factories: Validate values with type predicates (path is AbsolutePath) or factory functions so only checked values receive the brand. - Use Case: Prevent cross-assignment bugs such as passing a PostId where a UserId is required, unsanitized strings into innerHTML, or swapping distance and time arguments in a speed calculation. ## Quick Start Ask the AI to refactor a function that accepts plain strings or numbers so it uses branded types with a validating type guard instead.