TypeScript best practices

SkillFiles & storage

Gives your agent a typescript agent skill playbook to fix type errors, tune tsconfig.json, and make compiles faster.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the TypeScript best practices skill

About this skill

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 involvi

What this skill tells your AI

The instructions your AI receives, as published by yamcodes/arkenv in skills/typescript/SKILL.md and read by ahel’s review.

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:

  • 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

PriorityCategoryImpactPrefix
1Type System PerformanceCRITICALtype-
2Compiler ConfigurationCRITICALtscfg-
3Async PatternsHIGHasync-
4Module OrganizationHIGHmodule-
5Type Safety PatternsMEDIUM-HIGHsafety-
6Memory ManagementMEDIUMmem-
7Runtime OptimizationLOW-MEDIUMruntime-
8Advanced PatternsLOWadvanced-

Table of contents

  1. Type System Performance - CRITICAL
  2. Compiler Configuration - CRITICAL
  3. Async Patterns - HIGH
  4. Module Organization - HIGH
  5. Type Safety Patterns - MEDIUM-HIGH
  6. Memory Management - MEDIUM
  7. Runtime Optimization - LOW-MEDIUM
  8. 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

Signals

GitHub stars
144
Forks
6
Last commit
Sep 2026
Hacker News mentions
20

ahel review

  • K1binfo
    installs-packages (in references/module-avoid-circular-dependencies.md)

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
typescript-yamcodes
Source
github.com/yamcodes/arkenv