knip

Finds unused files, dependencies, and exports in TypeScript/JavaScript projects.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "knip" with this command: npx skills add knoopx/pi/knoopx-pi-knip

Knip

Finds unused files, dependencies, and exports in TypeScript/JavaScript projects.

Usage

bunx knip # Analyze project bunx knip --production # Production only (no tests, devDeps) bunx knip --strict # Direct dependencies only bunx knip --fix # Auto-remove unused (use cautiously) bunx knip --include files # Only unused files bunx knip --include exports # Only unused exports bunx knip --include dependencies # Only unused deps

Output Formats

bunx knip --reporter compact # Compact output bunx knip --reporter json # JSON for tooling bunx knip --reporter github-actions # CI annotations

Filtering

bunx knip --workspace packages/client # Specific workspace bunx knip --exclude "test/**/*" # Exclude patterns

Debugging

bunx knip --debug # Debug output bunx knip --trace-file src/utils.ts # Trace file bunx knip --trace-export myFunction # Trace export

Configuration

Configure via .knip.json or knip.config.js for custom entry points and exclusions.

Related Skills

  • maintenance: Refactoring and technical debt management

  • jscpd: Find duplicate code blocks

  • bun: Package management for JS/TS projects

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

codemapper

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

typescript

No summary provided by upstream source.

Repository SourceNeeds Review
General

jujutsu

No summary provided by upstream source.

Repository SourceNeeds Review