typescript-patterns
Installation
SKILL.md
TypeScript Patterns
Enforces TypeScript strict mode conventions: eliminate any, require explicit types, and apply correct use of interfaces, type aliases, generics, and discriminated unions.
Purpose
Enforce TypeScript strict mode conventions: eliminate any, require explicit types, and apply correct use of interfaces, type aliases, generics, and discriminated unions.
Trigger
Apply when writing or reviewing TypeScript code, or when the user asks about:
- "TypeScript patterns", "TS strict", "TypeScript best practices"
- "type annotations", "TypeScript conventions"
- "寫 TypeScript", "TypeScript 規範", "TS 型別"
Do NOT trigger for:
- JavaScript-only code with no TypeScript types
- Runtime errors — use the
debugskill instead - Build failures — use the
build-fixskill instead