critical-rules
Installation
SKILL.md
Critical Rules
MANDATORY rules that must NEVER be violated. These prevent common bugs and ensure code quality.
Checklist
Rule 1: TypeScript Type Safety
- NEVER use
anytype - no exceptions, including tests- ❌
const data: any = response - ✅
const data: unknown = response - ✅
const data = response as UserData - ✅ For test mocks:
as unknown as Type
- ❌
Why: any disables all type checking and hides bugs. Use proper types, unknown, or type assertions instead.
Examples: