What problem does it solve?
This Skill reviews type definitions and data models to find places where invalid states, hidden assumptions, or weak constraints can slip through. It helps you redesign APIs so the type system carries more of the real business rules.
Core Features & Use Cases
- Type Quality Review: Evaluates interfaces, type aliases, classes, enums, and discriminated unions for how well they express and enforce constraints.
- Invariant Analysis: Identifies required relationships between fields, allowed value ranges, exclusivity rules, and structural requirements.
- Design Improvements: Recommends stronger patterns such as discriminated unions, branded types, opaque types, readonly fields, and wrapper types.
- Use Case: A domain model for orders, payments, or user profiles can be reviewed to reveal where impossible combinations are currently allowed and how to prevent them.
Quick Start
Ask the type-design-analyzer skill to review the attached file or folder and report the key invariants, risks, ratings, and concrete type improvements.