knip
CommunityClean dead code, unused deps, and exports.
AuthorAndyMarigoldLabs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers clean a codebase by identifying and removing unused files, dependencies, and exports to reduce bloat and maintenance overhead.
Core Features & Use Cases
- Auto-detect unused files by static/graph analysis to prune dead code paths.
- Identify unused dependencies and devDependencies in package.json for safer removal.
- Remove unused exports from modules to simplify public APIs.
- Use Case: Before a release, run knip to shrink the codebase and improve maintenance.
Quick Start
Run npx knip to scan the project. Review the output categories and, if appropriate, run npx knip --fix --allow-remove-files to automatically delete unused files, dependencies, and exports.
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/AndyMarigoldLabs/continuous-funding/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 223,000+ vetted skills library on demand.