limit-any-type
Installation
SKILL.md
Limit Use of the any Type
Overview
The any type effectively disables TypeScript's type checker for the code that uses it.
While any can be useful as an escape hatch, it eliminates the benefits of TypeScript: type safety, developer experience, refactoring confidence, and bug prevention.
When to Use This Skill
- Reaching for any to silence a type error
- Migrating JavaScript code to TypeScript
- Working with third-party libraries without types
- Feeling frustrated with complex type errors
- Adding type annotations to existing code