typescript-expert

Diagnose TypeScript type errors and optimize build performance in monorepos.

3|1|Updated Nov 5, 2015
One-click install
npx skills add https://github.com/Flowm/dotfiles --skill typescript-expert-flowm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-expert
Source: https://github.com/Flowm/dotfiles/tree/main/home/.agents/skills/typescript-expert
Command: npx skills add https://github.com/Flowm/dotfiles --skill typescript-expert-flowm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves common and complex TypeScript development challenges, including type errors, slow build performance, JavaScript-to-TypeScript migration, monorepo configuration issues, and inconsistent code quality across TypeScript projects.

Core Features & Use Cases

  • Advanced Type System Expertise: Implements branded types, conditional types, and template literal types for robust domain modeling and compile-time safety.
  • Performance Optimization: Diagnoses and fixes slow type checking, configures incremental builds and project references for large codebases and monorepos.
  • Migration & Tooling Guidance: Supports incremental JavaScript-to-TypeScript migration, helps select appropriate linting/formatting tools (Biome vs ESLint), and configures monorepo setups with Nx or Turborepo. For example, if you have a large TypeScript monorepo experiencing slow type checking and type instantiation depth errors, this Skill will identify problematic recursive types, optimize your tsconfig, and configure project references to speed up builds.

Quick Start

Invoke this Skill to get expert guidance on resolving TypeScript type errors, optimizing build performance, migrating JavaScript projects to TypeScript, or configuring TypeScript monorepos.

Frequently Asked Questions about typescript-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix slow TypeScript build performance in a large monorepo?

Fix slow TypeScript build performance by diagnosing slow type checking, optimizing recursive types, and configuring incremental builds with project references to speed up compilation for large monorepos.

What is the best way to migrate a JavaScript project to TypeScript incrementally?

The best way to migrate JavaScript to TypeScript involves an incremental approach, allowing gradual adoption while configuring tsconfig and enforcing type safety. This ensures consistent code quality throughout the migration process without halting development.

How do I resolve TypeScript type instantiation depth errors caused by recursive types?

Resolve TypeScript type instantiation depth errors by identifying problematic recursive types and refactoring them. This Skill diagnoses slow type checking and optimizes complex type structures to prevent compilation failures.

Should I use Biome or ESLint for TypeScript linting and formatting?

Choosing between Biome and ESLint for TypeScript linting depends on your project's performance and configuration needs. This Skill provides tooling selection guidance to help standardize best practices and enforce code quality across your codebase.

How do I configure project references in a TypeScript monorepo with Nx or Turborepo?

Configure TypeScript project references in a monorepo by setting up tsconfig files for Nx or Turborepo. This optimizes build performance and ensures proper type checking across interdependent packages.

When do I need branded types and conditional types for TypeScript domain modeling?

You need branded types and conditional types for TypeScript domain modeling when enforcing strict compile-time safety and robust business logic. These advanced type system features prevent invalid state representations at the code level.