unify-types
Installation
SKILL.md
Prefer Unifying Types to Modeling Differences
Overview
Minor differences often don't warrant separate types.
When types are almost identical, unifying them simplifies your code. The cost of handling small differences is usually less than maintaining parallel type hierarchies.
When to Use This Skill
- Types that differ by one or two properties
- Union types that are mostly the same
- Considering separate types for variants
- Simplifying complex type relationships