TypeScript best practices for clean, maintainable, and optimized code. MUST USE for writing or working with TypeScript code (.ts, .tsx, .mts files), including editing, reviewing or refactoring.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Typescript?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nazmussayad-typescript)
---
name: typescript
description: TypeScript best practices for clean, maintainable, and optimized code. MUST USE for writing or working with TypeScript code (.ts, .tsx, .mts files), including editing, reviewing or refactoring.
---
## Types
Avoid explicit type annotations when TypeScript can infer.
Do not use `any`, casts, or explicit generic type arguments when inference is sufficient.
## Variables
Use consistent, descriptive naming; avoid obscure abbreviations.
Do not use object or array destructuring in declarations, assignments, parameters, or loops; use direct property or indexed access instead, including for component props and tuple returns.
## Asynchronous
Prefer `async`/`await` over callbacks or `.then()` chains.