typescript

Configure tsconfig and refine type definitions to reduce compile times.

2|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/haotool/app --skill typescript-haotool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/haotool/app/tree/main/.agents/skills/typescript
Command: npx skills add https://github.com/haotool/app --skill typescript-haotool

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The TypeScript Best Practices Skill provides structured guidance to improve type safety, reduce compile times, and optimize runtime performance in TypeScript projects, helping teams write more reliable and maintainable code.

Core Features & Use Cases

  • 45 rules across 8 categories, prioritized to guide automated refactoring and code generation.
  • Focus areas include type system performance, compiler configuration, async patterns, module organization, type safety patterns, memory management, runtime optimization, and advanced patterns.
  • Use cases include configuring tsconfig, optimizing complex type definitions, avoiding heavy generic constructions, and improving import organization for large codebases.

Quick Start

Begin by auditing your TypeScript project against the guide and apply the top-priority rules to your codebase.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I reduce TypeScript compile times in a large codebase?

Reduce TypeScript compile times by configuring tsconfig properly, refining complex type definitions, and organizing imports to avoid heavy generic constructions in medium-to-large projects.

What are the best practices for organizing TypeScript modules to improve type safety?

Best practices for organizing TypeScript modules involve applying structured rules across module organization and type safety patterns to catch type errors early and maintain code reliability.

How do I optimize complex TypeScript type definitions for better performance?

Optimize complex TypeScript type definitions by avoiding heavy generic constructions and applying type system performance rules to reduce compiler overhead and catch errors early.

Can I use these TypeScript guidelines for medium-to-large projects with async patterns?

Yes, the guidelines satisfy requirements across async patterns, compiler configuration, and memory management specifically tailored for medium-to-large TypeScript projects.

What is the best way to configure tsconfig to catch type errors early?

The best way to configure tsconfig is applying prioritized compiler configuration rules that enforce type safety patterns and reduce compile times during project audits.

Why does TypeScript performance degrade with heavy generic constructions?

TypeScript performance degrades with heavy generic constructions because complex type definitions increase compiler overhead, requiring type system performance optimizations to resolve efficiently.