What problem does it solve?
TypeScript codebases accumulate @ts-expect-error and @ts-ignore comments that hide real type errors, making refactors risky and masking contract mismatches. This Skill removes those suppressions by repairing the underlying type contract instead of silencing the compiler.
Core Features & Use Cases
- Scoped Suppression Removal: Uses git diff against a base ref to target only suppressions introduced by the change under review, avoiding unrelated legacy cleanup.
- Root-Cause Type Repair: Traces each error to its source type, runtime owner, and consumers, then applies a prioritized fix ladder: correct source types, control-flow narrowing, existing domain types, or unknown with runtime narrowing.
- Repair Pattern Library: Provides concrete patterns for optional browser globals, nullable factory returns, value-or-factory unions, callback payloads in page.evaluate, test globals, and serialization boundaries.
- Use Case: During code review of a pull request in the ComfyUI frontend, run this Skill to eliminate newly added @ts-expect-error comments, run pnpm typecheck and focused Vitest or Playwright tests, and verify the final diff contains zero suppressions.
Quick Start
Remove the TypeScript suppressions introduced by my current branch and fix the underlying type errors without using any or type assertions.