mcpField
T
typescript

typescript

github.com/pymodelDevelopment40548 installsUpdated 5w ago
Repository

About typescript

typescript is a best-practices guide for developers configuring, writing, and reviewing TypeScript projects. Its 44 prioritized rules span eight categories, including type-system performance, compiler settings, async code, and runtime optimization.

Key features

  1. 01Covers eight topic categories
  2. 02Provides 44 prioritized rules
  3. 03Guidance for TypeScript 7 configuration
  4. 04Advice on type safety and performance
  5. 05Scan projects for matching rules

Use cases

  1. 01Configure tsconfig.json for a project
  2. 02Design complex types and generics
  3. 03Optimize async code and data fetching
  4. 04Review module structure and performance

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pymodel/react-frontend-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 TypeScript 7-compatible guide with 44 rules across 8 categories, covering compiler configuration, type-system performance, async code, modules, safety, and measured runtime optimization.

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

How to Use

Run in the project root first:

npx -y @pymodel/react-frontend-skills detect                   # installed vs. targeted versions
npx -y @pymodel/react-frontend-skills scan --skill typescript  # deprecated APIs → rule IDs

Read references/<rule-id>.md for each rule above that matches the task and for each scan hit: why it matters, then incorrect vs. correct code.

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