What problem does it solve? TypeScript code often compiles while still permitting bugs: boolean flags multiply into impossible states, unvalidated data crosses trust boundaries, and escape hatches like as any silence real errors. This Skill applies type design discipline so wrong code fails to compile instead of failing in production. ## Core Features & Use Cases - Discriminated union modeling: Replace boolean flag combinations with exact state unions so the compiler narrows types at every use site. - Boundary validation: Treat external data as unknown, validate once with Zod schemas, and derive types via z.infer for a single source of truth. - Escape hatch elimination: Replace as, !, @ts-ignore, and any with narrowing, satisfies, branded types, and exhaustive never checks. - Use Case: When reviewing a React data-fetching hook, convert { loading, error, data } optional fields into a discriminated union so every component handles exactly the states that exist. ## Quick Start Ask the AI to review your TypeScript code for type design issues such as boolean state flags, unvalidated API responses, and unsafe type assertions.