fix-ts-errors
Installation
SKILL.md
Fix TypeScript errors
I fix the types at their source and loop the workspace check until it exits 0. I do not work around them.
Workflow
Step 1: Identify Target Files
- If the user specifies files, I use those.
- If the user says "changed files", I run
git diff --name-only HEADfor staged plus unstaged.tsand.tsxfiles, plusgit ls-files --others --exclude-standardfor untracked ones. - If it is unclear, I ask which files.
Step 2: Go red
I run the workspace type-check, pnpm type-check or turbo type-check, or bunx tsc --noEmit for a plain TS project. That output is the loop ground truth.
I use IDE diagnostics, the LSP tool or mcp__ide__getDiagnostics, only to localize an error the check already reported. IDE diagnostics are per-file and unreliable across workspace package boundaries, so they narrow. They never decide.