What problem does it solve?
This Skill eliminates fragile type boundaries and runtime type errors by designing and implementing advanced TypeScript type systems and build configurations that enforce compile-time safety across applications and libraries.
Core Features & Use Cases
- Advanced type design: Create generics, mapped types, conditional types, branded types, and template literal types to express domain invariants.
- End-to-end safety: Design type-safe APIs and tRPC integrations, implement discriminated unions and type guards, and ensure library consumers receive correct declaration files.
- Build and tooling: Configure strict tsconfig settings, project references, incremental compilation, and declaration file generation to optimize build performance and developer DX.
- Use Case: Convert a loosely typed monorepo into a strictly typed full-stack project by adding branded domain types, migrating runtime checks to type predicates, and ensuring tRPC endpoints surface accurate types.
Quick Start
Use the typescript-pro skill to audit a repository for type-safety issues and produce a plan to enforce strict TypeScript types across APIs, libraries, and build configs.