typescript
Installation
SKILL.md
Critical Rules
- Const types pattern - ALWAYS const object first, then extract type
- Flat interfaces - Max one level deep, nested → dedicated interface
- No
any- Useunknown+ type guards or generics - Import types - Use
import typefor 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