fix-unused-imports
Installation
SKILL.md
Fix Unused Imports
Automatically detect and remove unused imports/variables in TypeScript/JavaScript projects.
When to Use
This skill should be invoked when:
tsc --noEmitfails with TS6133 errors- Build or CI fails due to unused import/variable errors
- User asks to fix unused imports or clean up imports
Execution Steps
-
Identify the error: Parse the TypeScript error message to extract:
- File path
- Line number
- The unused identifier name
-
Read the file: Use the Read tool to examine the file content around the error line.