
Knip Deadcode
This is a comprehensive guide for using Knip to find and remove dead code in JavaScript and TypeScript projects. It contains 43 rules organized by priority, from critical configuration foundations to performance tuning. The structure is smart: it walks you through setup, entry point strategy, monorepo handling, dependency analysis, and CI integration in priority order. The export detection rules are especially useful for understanding false positives. If you're setting up Knip for the first time or wondering why it's flagging certain code, this gives you a systematic approach. The CI integration patterns and auto-fix workflows are practical and cover the gradual adoption case well.
- skills.sh installs
- 390
- GitHub stars
- 222
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pproenca/dot-skills --skill knip-deadcode --agent claude-codeInstalls into .claude/skills of the current project.
Files
Community Knip Dead Code Detection Best Practices
Comprehensive guide for detecting and removing dead code in JavaScript and TypeScript projects using Knip. Contains 43 rules across 8 categories, prioritized by impact to guide configuration, CI integration, and cleanup workflows.
When to Apply
Reference these guidelines when:
- Configuring Knip for a new project or monorepo
- Investigating false positives or false negatives
- Setting up CI pipelines to prevent dead code regressions
- Using auto-fix to clean up unused code
- Optimizing Knip performance for large codebases
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Configuration Foundations | CRITICAL | config- |
| 2 | Entry Point Strategy | CRITICAL | entry- |
| 3 | Workspace & Monorepo | HIGH | workspace- |
| 4 | Dependency Analysis | HIGH | deps- |
| 5 | Export Detection | MEDIUM-HIGH | exports- |
| 6 | CI Integration | MEDIUM | ci- |
| 7 | Auto-Fix Workflow | MEDIUM | fix- |
| 8 | Performance Optimization | LOW-MEDIUM | perf- |
Quick Reference
1. Configuration Foundations (CRITICAL)
Sponsors
Details
- Repository
- github.com/pproenca/dot-skills
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Rails Hotwire380
- Ts Google378
- Nginx C Module Design369
- Vite367
- Nginx C Modules365
- Ios Animations355
- Dockerfile Optimise351
- Uniwind348
- 37signals Rails340
- Ast Grep340
- Audio Voice Recovery340
- Orval338
- Mui Base335
- Codemod334
- Vhs331
- Skill Authoring330
- Unix Cli326
- Python323
- Rust Refactor322
- Ios Design System319
- 12 Factor App318
- Js Google317
- Tailwind Refactor314
- Pulumi310