Skip to main content

authoring-typescript

Best practices for TypeScript code including type safety, discriminated unions, type guards, and exhaustive checking. Use this skill whenever the user asks about TypeScript patterns, type safety, type assertions (as any, as unknown), non-null assertions, discriminated unions, exhaustive switch/never patterns, type guards, boolean trap parameters, race conditions in async code, memory leaks from closures, or sequential vs parallel async operations. Also trigger when reviewing TypeScript code for unsafe patterns or refactoring types.

Source facts

Repository
NVIDIA/elements
Last source activity
August 12, 2026 at 00:30
Detected SKILL.md language
English
Stars
102
Forks
19

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
authoring-typescript
description
Best practices for TypeScript code including type safety, discriminated unions, type guards, and exhaustive checking. Use this skill whenever the user asks about TypeScript patterns, type safety, type assertions (as any, as unknown), non-null assertions, discriminated unions, exhaustive switch/never patterns, type guards, boolean trap parameters, race conditions in async code, memory leaks from closures, or sequential vs parallel async operations. Also trigger when reviewing TypeScript code for unsafe patterns or refactoring types.
# Authoring TypeScript You MUST review @projects/site/src/docs/internal/guidelines/typescript.md before making any TypeScript changes. ## When to Use This Skill - Writing or modifying component classes, utilities, or type definitions - Adding or updating TypeScript interfaces, types, or enums - Reviewing code for type safety issues - Implementing type guards or discriminated unions - Working with union types that require exhaustive checking ## References - [TypeScript Guidelines](/projects/site/src/docs/internal/guidelines/typescript.md)
View on GitHub