Resolve TypeScript compilation errors by grouping diagnostics, fixing root causes first, applying safe fix patterns, and verifying via a clean compile.
Fix TypeScript compilation errors efficiently by grouping diagnostics, addressing root causes first, and verifying with a clean compile.
Use this skill when:
tsc (or your build) fails with type errors@ts-ignore and unsafe casts; if used, you MUST justify and isolate them.Collect diagnostics (complete, not partial)
Group errors by root cause
undefined/null strictnessunknown flowsPrioritize the highest-leverage fixes
Apply minimal, safe fix patterns
Verify to clean
@ts-ignore, as any)@ts-ignore to silence errors (use @ts-expect-error only as a justified last resort)as any to force compilation./templates/triage-worksheet.md./templates/common-fix-patterns.md./examples/ includes a sample error-to-fix mapping.