Skillshub typescript

TypeScript Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/typescript" ~/.claude/skills/comeonoliver-skillshub-typescript-bba072 && rm -rf "$T"
manifest: skills/pproenca/dot-skills/typescript/SKILL.md
source content

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 PerformanceCRITICAL
type-
2Compiler ConfigurationCRITICAL
tscfg-
3Async PatternsHIGH
async-
4Module OrganizationHIGH
module-
5Type Safety PatternsMEDIUM-HIGH
safety-
6Memory ManagementMEDIUM
mem-
7Runtime OptimizationLOW-MEDIUM
runtime-
8Advanced PatternsLOW
advanced-

Table of Contents

  1. Type System PerformanceCRITICAL
  2. Compiler ConfigurationCRITICAL
  3. Async PatternsHIGH
  4. Module OrganizationHIGH
  5. Type Safety PatternsMEDIUM-HIGH
  6. Memory ManagementMEDIUM
  7. Runtime OptimizationLOW-MEDIUM
  8. Advanced PatternsLOW

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