typescript-expert

Diagnose TypeScript type system issues and propose type-safe fixes.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/0xkynz/codekit --skill typescript-expert-0xkynz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-expert
Source: https://github.com/0xkynz/codekit/tree/main/templates/skills/typescript-expert
Command: npx skills add https://github.com/0xkynz/codekit --skill typescript-expert-0xkynz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript experts help teams diagnose and fix complex type errors, optimize compiler settings, and enforce robust typing practices to reduce runtime issues.

Core Features & Use Cases

  • Type system mastery: generics, conditional types, mapped types, and utility types to produce safe, scalable APIs.
  • Module resolution and configuration: path aliases, TSConfig tuning, and interop between ESM and CommonJS.
  • Practical guidance and refactors: real-world patterns to improve maintainability, readability, and type-safety across codebases.

Quick Start

Explain a TypeScript issue in my project and propose a type-safe fix with rationale.

Frequently Asked Questions about typescript-expert

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

FAQPage Schema
How do I fix complex TypeScript generic constraints and conditional type errors?

Fix TypeScript generic constraints and conditional type errors by analyzing code patterns and applying type-safe refactors using mapped types and utility types to produce safe, scalable APIs.

How do I configure path aliases and module resolution in tsconfig.json?

Configure path aliases and module resolution in tsconfig.json by tuning your compiler settings to handle interop between ESM and CommonJS, ensuring modules resolve correctly across your project.

What is the best way to refactor a large codebase for strict type safety?

The best way to refactor a large codebase for strict type safety is to apply real-world TypeScript patterns that improve maintainability and readability while enforcing robust typing practices to reduce runtime issues.

Does TypeScript strict mode work with both ESM and CommonJS module systems?

TypeScript strict mode works with both ESM and CommonJS module systems by tuning tsconfig.json settings to ensure proper interop and module resolution across varying codebase sizes.

Why does my TypeScript path mapping configuration fail to resolve modules?

TypeScript path mapping fails to resolve modules when tsconfig.json settings are misconfigured, requiring an analysis of your compiler configuration to correct path aliases and module resolution rules.