Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnose and fix TypeScript/language type errors using LSP diagnostics, hover, and code actions. For each type error, fetches the expected vs actual types, surfaces quickfix suggestions, and optionally applies them. Use when getDiagnostics shows type errors you want to resolve quickly.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 65% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-21 | ✗→✓ | ▲ Improved | -33% | 0% |
getToolCapabilities is available.extensionConnected is false: show the same message and stop. If true: proceed.Systematically diagnose and fix type errors using LSP intelligence, without guessing or making assumptions about types.
$ARGUMENTSgetDiagnostics with that urigetDiagnostics with no uri (workspace-wide)error only. If zero errors: report "No type errors found" and stop.For each error (up to 20 total across all files):
getHover at the error position (file, line, column) to fetch:getCodeActions at the error range to get quickfix suggestions from the language servergetSignatureHelp at the call site to see the expected parameter types Error: [error message] File: [file]:[line]:[column] Symbol: [symbol from hover] Actual type: [type from hover] Expected type: [inferred from error message + context] Quickfixes available: [list from getCodeActions] Recommended fix: [your recommendation]
any, fixes an import):previewCodeAction to show the exact diffapplyCodeAction to apply itgetDiagnostics again to verify error count dropped## Type Error Fix Report
Files with errors: N
Total errors processed: M
Fixes applied: K
Remaining errors: R
### Fixed
- src/foo.ts:42 — `string` not assignable to `number` → applied: add type cast
- ...
### Remaining (manual fix needed)
| File | Line | Error | Why manual |
|------|------|-------|-----------|
| src/bar.ts | 17 | ... | Complex generic constraint — see diagnosis below |
| ...
### Diagnoses for remaining errors
[Detailed explanation of each unfixed error with recommended fix]getCodeActions returns no quickfixes and the error involves generics: explain the constraint in plain English from the hover output and stopOther measured skills in the registry, with their headline benchmark lift.