mcpField
T
typescript

typescript

github.com/thongdn-itDevelopment5147 installsUpdated 40w ago
Repository

About typescript

A TypeScript best-practices skill for developers working on application configuration, typing, and performance. Its 42 prioritized rules cover compiler behavior, async code, module organization, safety, memory, and runtime concerns.

Key features

  1. 0142 rules across 8 categories
  2. 02Prioritized by impact
  3. 03Type-system performance guidance
  4. 04Compiler and async recommendations
  5. 05Safety and memory practices

Use cases

  1. 01Configuring tsconfig.json
  2. 02Designing complex types and generics
  3. 03Optimizing async data fetching
  4. 04Reviewing compilation and runtime performance

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill typescript

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

Bundled files

References and scripts installed along with SKILL.md.

references/
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
safety-exhaustive-checks.md
safety-prefer-unknown-over-any.md
safety-strict-null-checks.md
safety-use-type-guards.md

Details

From the project README

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

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