nvidia/elements · Archived

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…

First seen Aug 17, 2026

Installation

$ npx skills add nvidia/elements --skill authoring-typescript

Summary

  • 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.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from nvidia/elements · top by installs.

npx skills add nvidia/elements

Browse all from nvidia/elements

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 85
License LICENSE
Default branch main
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,136 B
  • docs SUMMARY.md 565 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

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)