Typescript

From pproenca/dot-skills · View interactive version

Typescript is an AI agent skill from the GitHub repository pproenca/dot-skills. TypeScript performance, tsconfig, type errors, async patterns — triggered 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"). Als

How to use this skill

Skill file

TypeScript Best Practices

Comprehensive performance optimization guide for TypeScript applications. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

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- |

Table of Contents

  1. Type System Performance — CRITICAL
  1. Compiler Configuration — CRITICAL
  1. Async Patterns — HIGH
  1. Module Organization — HIGH
  1. Type Safety Patterns — MEDIUM-HIGH
  1. Memory Management — MEDIUM
  1. Runtime Optimization — LOW-MEDIUM
  1. Advanced Patterns — LOW

References

  1. https://github.com/microsoft/TypeScript/wiki/Performance
  2. https://www.typescriptlang.org/docs/handbook/
  3. https://v8.dev/blog
  4. https://nodejs.org/en/learn/diagnostics/memory
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.