typescript-patterns

Installation
SKILL.md

This skill provides TypeScript-specific implementation patterns for type-safe, maintainable code.

When to Invoke This Skill

Automatically activate for:

  • TypeScript/JavaScript project implementation
  • Type system design and refinement
  • Generic patterns and utility types
  • Error handling with type safety
  • API type definitions

Strict Typing Patterns

Branded Types for Domain Safety

// Prevent mixing IDs of different entities
type UserId = string & { readonly brand: unique symbol };
type OrderId = string & { readonly brand: unique symbol };
Related skills
Installs
17
GitHub Stars
4
First Seen
Feb 6, 2026