[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEDCN2VP93SCA019SCN4RV":3,"skill-same:01M6FEDCN2VP93SCA019SCN4RV":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FEDCN2VP93SCA019SCN4RV","knip-deadcode",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fknip-deadcode\u002FSKILL.md",[],[18,19,20],"deadcode","knip","knip deadcode","2026-11-10 10:12:30",false,"# Community Knip Dead Code Detection Best Practices\n\nComprehensive 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.\n\n## When to Apply\n\nReference these guidelines when:\n- Configuring Knip for a new project or monorepo\n- Investigating false positives or false negatives\n- Setting up CI pipelines to prevent dead code regressions\n- Using auto-fix to clean up unused code\n- Optimizing Knip performance for large codebases\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Configuration Foundations | CRITICAL | `config-` |\n| 2 | Entry Point Strategy | CRITICAL | `entry-` |\n| 3 | Workspace & Monorepo | HIGH | `workspace-` |\n| 4 | Dependency Analysis | HIGH | `deps-` |\n| 5 | Export Detection | MEDIUM-HIGH | `exports-` |\n| 6 | CI Integration | MEDIUM | `ci-` |\n| 7 | Auto-Fix Workflow | MEDIUM | `fix-` |\n| 8 | Performance Optimization | LOW-MEDIUM | `perf-` |\n\n## Quick Reference\n\n### 1. Configuration Foundations (CRITICAL)\n\n- [`config-avoid-broad-ignore`](references\u002Fconfig-avoid-broad-ignore.md) - Avoid broad ignore patterns\n- [`config-configure-path-aliases`](references\u002Fconfig-configure-path-aliases.md) - Configure path aliases in Knip\n- [`config-enable-plugins-explicitly`](references\u002Fconfig-enable-plugins-explicitly.md) - Enable framework plugins explicitly\n- [`config-run-without-config`](references\u002Fconfig-run-without-config.md) - Run without config first for baseline\n- [`config-separate-entry-project`](references\u002Fconfig-separate-entry-project.md) - Separate entry files from project files\n- [`config-use-json-schema`](references\u002Fconfig-use-json-schema.md) - Use JSON schema for configuration validation\n- [`config-use-negation-patterns`](references\u002Fconfig-use-negation-patterns.md) - Use negation patterns for exclusions\n- [`config-use-production-mode`](references\u002Fconfig-use-production-mode.md) - Use production mode for shipping code analysis\n\n### 2. Entry Point Strategy (CRITICAL)\n\n- [`entry-add-dynamic-imports`](references\u002Fentry-add-dynamic-imports.md) - Add dynamic import targets as entry points\n- [`entry-exclude-test-files`](references\u002Fentry-exclude-test-files.md) - Exclude test files from production entries\n- [`entry-include-all-entry-points`](references\u002Fentry-include-all-entry-points.md) - Include all application entry points\n- [`entry-include-bin-scripts`](references\u002Fentry-include-bin-scripts.md) - Include binary scripts as entry points\n- [`entry-use-compilers`](references\u002Fentry-use-compilers.md) - Use compilers for non-standard file types\n- [`entry-use-plugin-entries`](references\u002Fentry-use-plugin-entries.md) - Use plugin entry points for frameworks\n- [`entry-verify-with-debug`](references\u002Fentry-verify-with-debug.md) - Verify entry points with debug mode\n\n### 3. Workspace & Monorepo (HIGH)\n\n- [`workspace-configure-root-workspace`](references\u002Fworkspace-configure-root-workspace.md) - Configure root workspace explicitly\n- [`workspace-ignore-specific`](references\u002Fworkspace-ignore-specific.md) - Ignore specific workspaces when needed\n- [`workspace-isolate-for-strict`](references\u002Fworkspace-isolate-for-strict.md) - Isolate workspaces for strict dependency checking\n- [`workspace-list-cross-deps`](references\u002Fworkspace-list-cross-deps.md) - List cross-workspace dependencies explicitly\n- [`workspace-per-workspace-plugins`](references\u002Fworkspace-per-workspace-plugins.md) - Configure plugins per workspace\n- [`workspace-use-workspace-globs`](references\u002Fworkspace-use-workspace-globs.md) - Use workspace globs for consistent configuration\n\n### 4. Dependency Analysis (HIGH)\n\n- [`deps-add-unlisted-deps`](references\u002Fdeps-add-unlisted-deps.md) - Add unlisted dependencies to package.json\n- [`deps-avoid-transitive-reliance`](references\u002Fdeps-avoid-transitive-reliance.md) - Avoid relying on transitive dependencies\n- [`deps-configure-plugin-deps`](references\u002Fdeps-configure-plugin-deps.md) - Configure plugins for tool-specific dependencies\n- [`deps-fix-files-first`](references\u002Fdeps-fix-files-first.md) - Fix unused files before dependencies\n- [`deps-ignore-conditional-deps`](references\u002Fdeps-ignore-conditional-deps.md) - Ignore conditionally loaded dependencies\n- [`deps-remove-obsolete-types`](references\u002Fdeps-remove-obsolete-types.md) - Remove obsolete type definition packages\n\n### 5. Export Detection (MEDIUM-HIGH)\n\n- [`exports-check-class-members`](references\u002Fexports-check-class-members.md) - Check class members for unused code\n- [`exports-enable-entry-exports`](references\u002Fexports-enable-entry-exports.md) - Enable entry export checking for private packages\n- [`exports-handle-reexports`](references\u002Fexports-handle-reexports.md) - Handle re-exports in barrel files\n- [`exports-ignore-same-file`](references\u002Fexports-ignore-same-file.md) - Ignore exports used in same file\n- [`exports-tag-public-api`](references\u002Fexports-tag-public-api.md) - Tag public API exports with JSDoc\n- [`exports-trace-usage`](references\u002Fexports-trace-usage.md) - Trace export usage before removal\n- [`exports-use-include-libs`](references\u002Fexports-use-include-libs.md) - Use include libs for type-based consumption\n\n### 6. CI Integration (MEDIUM)\n\n- [`ci-add-to-pipeline`](references\u002Fci-add-to-pipeline.md) - Add Knip to CI pipeline\n- [`ci-separate-production-check`](references\u002Fci-separate-production-check.md) - Separate production and default mode checks\n- [`ci-use-cache`](references\u002Fci-use-cache.md) - Enable cache for faster CI runs\n- [`ci-use-max-issues`](references\u002Fci-use-max-issues.md) - Use max issues for gradual adoption\n- [`ci-use-reporters`](references\u002Fci-use-reporters.md) - Use appropriate reporters for CI output\n- [`ci-watch-mode-local`](references\u002Fci-watch-mode-local.md) - Use watch mode for local development\n\n### 7. Auto-Fix Workflow (MEDIUM)\n\n- [`fix-allow-remove-files`](references\u002Ffix-allow-remove-files.md) - Explicitly allow file removal\n- [`fix-format-after-fix`](references\u002Ffix-format-after-fix.md) - Format code after auto-fix\n- [`fix-review-before-commit`](references\u002Ffix-review-before-commit.md) - Review auto-fix changes before commit\n- [`fix-update-deps-after`](references\u002Ffix-update-deps-after.md) - Update package manager after dependency fix\n- [`fix-use-fix-type`](references\u002Ffix-use-fix-type.md) - Use fix type for targeted cleanup\n\n### 8. Performance Optimization (LOW-MEDIUM)\n\n- [`perf-filter-issue-types`](references\u002Fperf-filter-issue-types.md) - Filter issue types for focused analysis\n- [`perf-limit-output`](references\u002Fperf-limit-output.md) - Limit output for large codebases\n- [`perf-profile-performance`](references\u002Fperf-profile-performance.md) - Profile performance for slow analysis\n- [`perf-use-bun-runtime`](references\u002Fperf-use-bun-runtime.md) - Use Bun runtime for faster analysis\n- [`perf-use-cache-flag`](references\u002Fperf-use-cache-flag.md) - Enable cache for repeated analysis\n- [`perf-use-workspace-filter`](references\u002Fperf-use-workspace-filter.md) - Filter workspaces for faster monorepo analysis\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fknip-deadcode",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill knip-deadcode",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill knip-deadcode",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill knip-deadcode","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fknip-deadcode\u002FSKILL.md",true,[],[49,63,73,82,88,95],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":59,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[54],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[60,61,62],"model","model hierarchy","model hierarchy skill",{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":69,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[68],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[70,71,72],"MCP","zoom","zoom mcp",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[79,80,81,71],"sdk","zoom apps sdk","apps",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":94,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[93],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[90],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[97]]