typescript

Installation
SKILL.md

Critical Rules

  1. Const types pattern - ALWAYS const object first, then extract type
  2. Flat interfaces - Max one level deep, nested → dedicated interface
  3. No any - Use unknown + type guards or generics
  4. Import types - Use import type for type-only imports

Const Types Pattern (REQUIRED)

// ✅ ALWAYS: Create const object first, then extract type
const STATUS = {
  ACTIVE: "active",
  INACTIVE: "inactive",
  PENDING: "pending",
} as const;
Related skills
Installs
1
First Seen
Apr 9, 2026