What This Skill Does
Instructs your AI coding assistant to enforce strict TypeScript conventions across every file it touches. No any types, explicit return types on exports, readonly by default, and discriminated unions instead of type assertions.
When to Use It
Activate this skill on any TypeScript project where type safety matters. Especially useful for:
- Greenfield projects where you want strict conventions from day one
- Codebases migrating from JavaScript where
anytends to creep in - Teams where multiple developers (or AI agents) contribute code
What Changes
Your AI assistant will:
- Replace
anywithunknown+ type guards - Add explicit return types to all exported functions
- Use
readonlyon arrays and object properties unless mutation is required - Prefer discriminated unions over type assertions
- Never use non-null assertion (
!) without justification