Loading...
Loading...
Run knip to find and remove unused files, dependencies, and exports. Use for cleaning up dead code and unused dependencies.
npx skill4agent add brianlovin/claude-config knipnpx knip --versionknipnpm install -D knipknip.jsonknip.jsoncnpx knip--fix --allow-remove-filessrc/indexlib/# Basic run
npx knip
# Production only (ignore test files)
npx knip --production
# Auto-fix what's safe
npx knip --fix
# Auto-fix including file deletion
npx knip --fix --allow-remove-files
# JSON output for parsing
npx knip --reporter json--workspace