typescript

Provide expert TypeScript guidance for advanced type-level programming and migrations.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/mguinada/ai-coding-toolkit --skill typescript-mguinada
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/mguinada/ai-coding-toolkit/tree/main/skills/typescript
Command: npx skills add https://github.com/mguinada/ai-coding-toolkit --skill typescript-mguinada

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript expert guidance that helps developers master advanced type syntax, performance tuning, and migration strategies across large codebases.

Core Features & Use Cases

  • Proactive TypeScript coaching for type-level programming, generics, and declaration-file best practices.
  • Guidance for monorepo setups, tsconfig configuration, and project structure to maximize type safety and build performance.
  • Real-world scenarios including TS errors, code migration, and type testing workflows with Vitest.

Quick Start

Analyze a complex TypeScript project and request targeted guidance on a tricky generic type.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I configure a TypeScript monorepo with tsconfig for maximum type safety?

TypeScript monorepo configuration requires strategic tsconfig setup using project references to maximize type safety across packages. Proper tsconfig structuring enables isolated module compilation, ensuring type dependencies are validated during builds while optimizing performance.

What are branded types and when should I use them in TypeScript?

Branded types are advanced TypeScript type patterns creating distinct nominal types from primitives to prevent invalid assignments. Use branded types when enforcing domain constraints at compile-time, preventing values like UserId from being assigned to PostId.

How do I migrate a JavaScript project to TypeScript incrementally?

JavaScript to TypeScript migration is best executed incrementally by configuring tsconfig with allowJs enabled, allowing mixed JS and TS files. Gradually rename files to .ts or .tsx, resolve type errors, and leverage declaration files to bridge untyped dependencies.

Can I test TypeScript types directly with Vitest?

Yes, type testing with Vitest allows you to assert TypeScript type behavior directly using specialized testing workflows. This approach validates complex conditional types and generics at compile-time, ensuring type-level logic functions correctly without runtime execution overhead.

Why is my TypeScript build performance slow in a large monorepo?

TypeScript build performance suffers in large monorepos when tsconfig lacks composite settings or project references. Optimizing type checking scope through isolated modules and incremental compilation significantly reduces build times by preventing full project re-evaluation.

How do template literal types work in TypeScript?

Template literal types in TypeScript construct complex string types by combining literal strings via union syntax to enforce strict string formats. They enable compile-time validation of string patterns, allowing you to derive types like API route paths or event names from static templates.