Skip to content
pproenca avatar

Knip Deadcode

Structured guide of 43 Knip dead code rules across eight prioritized categories for JavaScript and TypeScript projects.

CCM score
44 of 100
skills.sh installs
412
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers configuring Knip, entry point strategy, workspaces and monorepos, dependency and export analysis, CI integration, auto-fix, and performance tuning
  • Lists 43 rules grouped by priority, from critical configuration foundations down to low-medium performance optimization, each linked to its own reference file
  • Enforces practices such as avoiding broad ignore patterns, separating production and default mode checks, and reviewing auto-fix changes before commit
  • Designed for teams configuring Knip for a new project or monorepo, investigating false positives, or cleaning up unused code

Install

$ npx -y skills add pproenca/dot-skills --skill knip-deadcode -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

PriorityCategoryImpactPrefix
1Configuration FoundationsCRITICALconfig-
2Entry Point StrategyCRITICALentry-
3Workspace & MonorepoHIGHworkspace-
4Dependency AnalysisHIGHdeps-
5Export DetectionMEDIUM-HIGHexports-
6CI IntegrationMEDIUMci-
7Auto-Fix WorkflowMEDIUMfix-
8Performance OptimizationLOW-MEDIUMperf-

Quick Reference

1. Configuration Foundations (CRITICAL)

Details

Repository
github.com/pproenca/dot-skills
Category
Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the knip-deadcode skill do?

knip-deadcode gives an agent best practices for detecting and removing dead code in JavaScript and TypeScript projects using Knip. It covers configuring Knip, analyzing unused code and dependencies, setting up CI integration, and cleaning up codebases.

How do I install the knip-deadcode skill?

Run npx -y skills add pproenca/dot-skills --skill knip-deadcode -y in a project to install it. Once installed, knip-deadcode lets the agent follow its Knip rules when configuring knip.json or investigating unused exports and dependencies.

Which category does knip-deadcode belong to?

knip-deadcode is listed in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its focus on unused exports and dependencies sets it apart from those skills by centering on Knip configuration and cleanup.

Who is the knip-deadcode skill for?

knip-deadcode suits developers working on JavaScript or TypeScript projects who want to find unused code, unused dependencies and bundle waste with Knip. Its guidance applies when setting up Knip for a new project or monorepo, reducing false positives, or preventing dead code regressions in CI.

More from pproenca/dot-skills

All 100

Similar to Knip Deadcode

More Code Review & Quality