← ClaudeAtlas

knip-deadcodelisted

Knip dead code detection best practices for JavaScript and TypeScript projects. Use when configuring Knip, analyzing unused code, setting up CI integration, or cleaning up codebases. Triggers on knip.json, dead code, unused exports, unused dependencies, bundle optimization.
wordbricks/onequery · ★ 15 · AI & Automation · score 80
Install: claude install-skill wordbricks/onequery
# 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) - [`config-avoid-broad-ignore`](references/config-avoid-broad-ignore.md) - Avoid broad ignore patterns - [`config-configure-path-aliases`](references/config-configure-path-aliases.md) - Configure path aliases in Knip - [`config-enable-plugins-explicitly`](references/config-enable-plugins-explicitly.md) - Enable framework plugins expl