mcpField
T
typescript

typescript

github.com/pproencaDevelopment2201.7k installsUpdated 11w ago
Repository

About typescript

A performance optimization guide for TypeScript developers, organizing practices across compiler settings, the type system, and async patterns by impact for coding, review, and automated refactoring.

Key features

  1. 01Rules across eight optimization categories
  2. 02Practices prioritized by impact
  3. 03Type computation and compiler configuration advice
  4. 04Guidance on async patterns and module organization
  5. 05Type safety and memory management practices

Use cases

  1. 01Configure tsconfig.json for a new or existing project
  2. 02Optimize complex type definitions and generics
  3. 03Review compilation or runtime performance issues
  4. 04Guide automated refactoring and code generation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill typescript

After installing, type/typescriptin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
advanced-branded-types.md
advanced-satisfies-operator.md
advanced-template-literal-types.md
async-avoid-loop-await.md
async-avoid-unnecessary-async.md
async-defer-await.md
async-explicit-return-types.md
async-parallel-promises.md
mem-avoid-closure-leaks.md
mem-avoid-global-state.md
mem-cleanup-event-listeners.md
mem-clear-timers.md
mem-use-weakmap-for-metadata.md
module-avoid-barrel-imports.md
module-avoid-circular-dependencies.md
module-control-types-inclusion.md
module-dynamic-imports.md
module-use-type-imports.md
runtime-avoid-object-spread-in-loops.md
runtime-cache-property-access.md
runtime-prefer-array-methods.md
runtime-use-for-of-for-iteration.md
runtime-use-set-for-lookups.md
runtime-use-string-methods.md
safety-assertion-functions.md
safety-const-assertions.md

Details

From the project README

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:

  • 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

Comments

Markdown supported