code-review-typescript
Installation
SKILL.md
TypeScript Code Review Patterns
Stack-specific rules loaded by dh:code-reviewer when tsconfig.json, *.ts, or *.tsx files are detected.
Read Review principles before applying these checks; it defines authority, applicability, evidence, and blocking criteria. Also apply Node.js checks for Node execution and Web checks for browser rendering, including TSX; language checks do not replace runtime checks.
Strict Mode
- Apply the project's active compiler gates. Prefer strict checking for new projects; do not require a configuration migration solely to match a default.
- Inspect optional-property and indexed-access behavior for unsupported
undefinedvalues; establish the affected contract before recommending stronger compiler flags such asexactOptionalPropertyTypesornoUncheckedIndexedAccess. - Investigate
@ts-ignoreand its justification: identify the diagnostic being hidden and whether the invariant is established elsewhere. An explanation alone does not prove safety. @ts-expect-erroris preferred over@ts-ignore— it fails if the error goes away