What problem does it solve?
This Skill detects and fixes TypeScript/JavaScript unused import and variable errors (TS6133) that cause tsc, builds, or CI checks to fail by locating declared-but-unused identifiers and updating source files to remove or neutralize them.
Core Features & Use Cases
- Parse compiler output to extract file paths, line numbers, and unused identifier names from TS6133 error messages.
- Edit source files to delete entire import lines, remove specific named imports, or rename unused variables with a leading underscore where appropriate.
- Batch processing and verification by grouping fixes per file, applying edits, and re-running type checks to confirm resolution.
- Use case: Run after a CI failure showing multiple TS6133 errors to automatically clean imports across affected modules and restore a clean type check.
Quick Start
Scan the TypeScript build output for TS6133 errors, remove or adjust the unused imports and variables reported, and re-run the type checker to verify fixes.