limit-optional-properties
Installation
SKILL.md
Limit the Use of Optional Properties
Overview
Optional properties are convenient but costly.
Every optional property creates uncertainty. Readers must check if it exists. Code paths multiply. Consider whether required properties or separate types are better.
When to Use This Skill
- Adding new properties to existing types
- Designing interfaces with optional fields
- Migrating types from JavaScript
- Choosing between optional and required