back
loading skill details...
Run knip to find and remove unused files, dependencies, and exports. Use for cleaning up dead code and unused dependencies.
Knip Code Cleanup Run knip to find and remove unused files, dependencies, and exports from this codebase. Setup Check if knip is available: Run npx knip --version to test If it fails or is very slow, check if knip is in package.json devDependencies If not installed locally, install with npm install -D knip (or pnpm/yarn/bun equivalent based on lockfile present) Knip does NOT remove unused imports/variables inside files — that's a linter's job. Knip finds unused files, dependencies, and exports across the project. Workflow Always follow this configuration-first workflow. Even for simple "run knip" or "clean up codebase" prompts, configure knip properly before acting on reported issues. Step 1: Understand the project
don't have the plugin yet? install it then click "run inline in claude" again.