What problem does it solve?
TypeScript codebases often suffer from inconsistent type patterns, misconfigured tsconfig settings, and unsafe type assertions that lead to avoidable compile errors and runtime bugs, slowing down development and increasing technical debt.
Core Features & Use Cases
- Standardized Type Patterns: Enforces consistent use of interfaces vs type aliases, proper null handling, and branded types for domain-specific safety.
- Strict Configuration Guidance: Provides validated tsconfig setups for strict mode, module resolution, and library project structure.
- Type Safety Best Practices: Covers generics, type narrowing, discriminated unions, and avoids common anti-patterns like overusing any or non-null assertions.
- Use Case: When refactoring a legacy JavaScript codebase to TypeScript, this skill ensures you follow type-safe patterns instead of introducing unsafe any types or incorrect project configuration.
Quick Start
Use the typescript skill to review the attached .tsx component file and suggest type safety improvements aligned with strict mode best practices.