What problem does it solve?
Provides opinionated, production-focused guidance to eliminate TypeScript and JavaScript type-driven bugs, unsafe patterns, and slow build/correctness workflows so teams ship predictable, maintainable code. It codifies conventions and checks that catch mistakes reviewers often miss: unsafe casts, runtime-enum surprises, mixed module systems, and missing runtime validation.
Core Features & Use Cases
- Type correctness & refactor guidance: Diagnose type errors, design generics, choose type vs interface, and restructure code for compiler performance.
- Opinionated conventions: Enforces no enums, no default exports, avoid
any/unsafe as casts, prefer Result-style errors-as-values, and kebab-case files.
- Tooling & validation: Recommends strict tsconfig flags, env validation with @t3-oss/env-core + Zod, using modern features (
as const, satisfies, using), and provides a ts-audit script for linting and checks.
- Use cases: Refactoring a legacy repo to strict flags, designing robust generics, fixing async patterns and resource cleanup, or auditing CI for TypeScript regressions.
Quick Start
Ask the skill to review a TypeScript file or pull request for type-safety, tsconfig and lint rule violations, and produce a prioritized refactor plan and code patches.