knip
CommunityFind and remove dead code and unused deps.
Authorroderik
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill automates the identification and removal of unused files, dependencies, and exports in a codebase, reducing maintenance burden and improving build performance.
Core Features & Use Cases
- Automated cleanup: Detects dead code, unused dependencies, and orphaned exports to shrink bundles and simplify maintenance.
- Monorepo support: Handles multi-package repositories, coordinating cleanup across packages.
- Safety-first cleanup: Applies changes only when safe, with options to preview before deleting.
Quick Start
- Install locally if needed: npm install -D knip
- Run initial analysis: npx knip
- Apply safe fixes: npx knip --fix --allow-remove-files
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: knip Download link: https://github.com/roderik/mpe/archive/main.zip#knip Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.