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.

来源信息

仓库
NVIDIA/elements
最近来源活动
2026年8月12日 00:30
检测到的 SKILL.md 语言
英语
星标
102
Forks
19

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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)
在 GitHub 查看