This skill should be used when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to").
This skill should be used when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to").
Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management.
Does NOT cover TypeScript basics, framework-specific patterns, or testing.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md5,551 B
docsSUMMARY.md456 B
History
First seen on skills.sh
First recorded snapshot · 49 installs
SKILL.md
TypeScript Best Practices
Comprehensive performance optimization guide for TypeScript applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
Configuring tsconfig.json for a new or existing project
Writing complex type definitions or generics
Optimizing async/await patterns and data fetching
Organizing modules and managing imports
Reviewing code for compilation or runtime performance
Rule Categories by Priority
Priority
Category
Impact
Prefix
1
Type System Performance
CRITICAL
type-
2
Compiler Configuration
CRITICAL
tscfg-
3
Async Patterns
HIGH
async-
4
Module Organization
HIGH
module-
5
Type Safety Patterns
MEDIUM-HIGH
safety-
6
Memory Management
MEDIUM
mem-
7
Runtime Optimization
LOW-MEDIUM
runtime-
8
Advanced Patterns
LOW
advanced-
Quick Reference
1. Type System Performance (CRITICAL)
type-interfaces-over-intersections - Prefer interfaces over type intersections for faster resolution
type-avoid-large-unions - Avoid unions with 12+ members (O(n²) checking)
type-extract-conditional-types - Extract conditional types to enable caching
type-limit-recursion-depth - Add depth limits to recursive types
type-explicit-return-types - Add explicit return types to exported functions