Individual skill
knip-deadcode
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.
skills/.experimental/knip-deadcode/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,012 bytesassets/templates/_template.mddoc · 859 bytesmetadata.jsonasset · 981 bytesreferences/_sections.mddoc · 1,875 bytesreferences/ci-add-to-pipeline.mddoc · 1,027 bytesreferences/ci-separate-production-check.mddoc · 1,203 bytesreferences/ci-use-cache.mddoc · 942 bytesreferences/ci-use-max-issues.mddoc · 1,081 bytesreferences/ci-use-reporters.mddoc · 1,151 bytesreferences/ci-watch-mode-local.mddoc · 1,142 bytesreferences/config-avoid-broad-ignore.mddoc · 1,320 bytesreferences/config-configure-path-aliases.mddoc · 1,087 bytesreferences/config-enable-plugins-explicitly.mddoc · 947 bytesreferences/config-run-without-config.mddoc · 1,141 bytesreferences/config-separate-entry-project.mddoc · 948 bytesreferences/config-use-json-schema.mddoc · 917 bytesreferences/config-use-negation-patterns.mddoc · 910 bytesreferences/config-use-production-mode.mddoc · 1,075 bytesreferences/deps-add-unlisted-deps.mddoc · 1,122 bytesreferences/deps-avoid-transitive-reliance.mddoc · 1,127 bytesreferences/deps-configure-plugin-deps.mddoc · 1,118 bytesreferences/deps-fix-files-first.mddoc · 1,114 bytesreferences/deps-ignore-conditional-deps.mddoc · 1,166 bytesreferences/deps-remove-obsolete-types.mddoc · 1,130 bytesreferences/entry-add-dynamic-imports.mddoc · 1,169 bytesreferences/entry-exclude-test-files.mddoc · 1,025 bytesreferences/entry-include-all-entry-points.mddoc · 1,066 bytesreferences/entry-include-bin-scripts.mddoc · 1,035 bytesreferences/entry-use-compilers.mddoc · 1,242 bytesreferences/entry-use-plugin-entries.mddoc · 1,013 bytesreferences/entry-verify-with-debug.mddoc · 1,099 bytesreferences/exports-check-class-members.mddoc · 1,142 bytesreferences/exports-enable-entry-exports.mddoc · 1,216 bytesreferences/exports-handle-reexports.mddoc · 1,157 bytesreferences/exports-ignore-same-file.mddoc · 1,155 bytesreferences/exports-tag-public-api.mddoc · 1,022 bytesreferences/exports-trace-usage.mddoc · 1,160 bytesreferences/exports-use-include-libs.mddoc · 1,206 bytesreferences/fix-allow-remove-files.mddoc · 1,123 bytesreferences/fix-format-after-fix.mddoc · 1,012 bytesreferences/fix-review-before-commit.mddoc · 1,106 bytesreferences/fix-update-deps-after.mddoc · 1,077 bytesreferences/fix-use-fix-type.mddoc · 1,177 bytesreferences/perf-filter-issue-types.mddoc · 1,066 bytesreferences/perf-limit-output.mddoc · 1,124 bytesreferences/perf-profile-performance.mddoc · 1,131 bytesreferences/perf-use-bun-runtime.mddoc · 971 bytesreferences/perf-use-cache-flag.mddoc · 1,013 bytesreferences/perf-use-workspace-filter.mddoc · 1,336 bytesreferences/workspace-configure-root-workspace.mddoc · 1,035 bytesreferences/workspace-ignore-specific.mddoc · 1,032 bytesreferences/workspace-isolate-for-strict.mddoc · 1,075 bytesreferences/workspace-list-cross-deps.mddoc · 1,150 bytesreferences/workspace-per-workspace-plugins.mddoc · 1,180 bytesreferences/workspace-use-workspace-globs.mddoc · 1,110 bytes
Read excerpt
# 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