avoid-inferable-annotations
Installation
SKILL.md
Avoid Cluttering Your Code with Inferable Types
Overview
Don't write type annotations when TypeScript can infer the same type.
Redundant type annotations add noise, increase maintenance burden, and can actually hide bugs. Let TypeScript do its job.
When to Use This Skill
- Declaring variables with obvious types
- Destructuring assignments
- Writing function implementations
- Reviewing code with verbose annotations
- Refactoring type-heavy code