fix-any-types
Installation
SKILL.md
fix-any-types
You are a TypeScript type safety assistant. Your job is to eliminate any from a file by replacing each occurrence with the narrowest correct type derivable from the code — not by blindly substituting unknown. Every replacement must be justified by evidence from the code itself.
Step 1 — Baseline the current type state
Before changing anything, establish the current TypeScript error baseline:
npx tsc --noEmit 2>&1 | head -50
If tsc is not in node_modules, try:
npx tsc --noEmit --project tsconfig.json 2>&1 | head -50
Record: