What problem does it solve?
TypeScript performance issues and confusing type errors slow down development by causing slow compilation, expensive type-checking, and inefficient async/module patterns.
Core Features & Use Cases
- Type system performance rules: reduce compilation cost from deep generics, large unions, complex mapped/conditional types, and type recursion.
- tsconfig performance tuning: configure include/exclude, incremental compilation, project references, isolated transpilation/declarations, skipLibCheck, and stricter compiler options that catch issues earlier.
- Code-level performance and correctness patterns: improve async/await behavior (avoid loop waterfalls, parallelize independent work, defer awaits), and optimize module organization (avoid barrel imports/circular deps, prefer type-only imports).
- Use cases: applying targeted fixes when encountering TypeScript errors (e.g., is not assignable) and when refactoring performance-sensitive .ts/.tsx/.d.ts code involving types, module boundaries, or memory behavior.
Quick Start
Use the typescript skill to optimize your tsconfig and refactor the reported TypeScript performance hotspot in your codebase based on the rule categories.