typescript-reviewer
Installation
SKILL.md
TypeScript Best Practices Reviewer
Standards
Type Safety
- ❌ No
anytypes without explicit justification comment - ✅ Use
unknownfor truly unknown data - ✅ Proper generic constraints
Null Safety
- ✅ Use optional chaining
?.and nullish coalescing?? - ✅ Explicit undefined handling in function returns
- ❌ No loose equality checks (
==instead use===)
React Components
- ✅ Prop types defined with interface or type
- ✅ Event handlers typed properly (React.ChangeEvent, etc.)
- ✅ Hooks dependency arrays complete