Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

knip-deadcode

БесплатноБез исполняемых скриптовНе проверен

Knip dead code detection best practices for JavaScript and TypeScript projects. Use when configuring Knip, analyzing unused code, setting up CI integration…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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)

2. Entry Point Strategy (CRITICAL)

3. Workspace & Monorepo (HIGH)

4. Dependency Analysis (HIGH)

5. Export Detection (MEDIUM-HIGH)

Полный SKILL.md на GitHub

Установить knip-deadcode в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/ci-add-to-pipeline.mdreferences/ci-separate-production-check.mdreferences/ci-use-cache.mdreferences/ci-use-max-issues.mdreferences/ci-use-reporters.mdreferences/ci-watch-mode-local.mdreferences/config-avoid-broad-ignore.mdreferences/config-configure-path-aliases.mdreferences/config-enable-plugins-explicitly.mdreferences/config-run-without-config.mdreferences/config-separate-entry-project.mdreferences/config-use-json-schema.mdreferences/config-use-negation-patterns.mdreferences/config-use-production-mode.mdreferences/deps-add-unlisted-deps.mdreferences/deps-avoid-transitive-reliance.mdreferences/deps-configure-plugin-deps.mdreferences/deps-fix-files-first.mdreferences/deps-ignore-conditional-deps.mdreferences/deps-remove-obsolete-types.mdreferences/entry-add-dynamic-imports.mdreferences/entry-exclude-test-files.mdreferences/entry-include-all-entry-points.mdreferences/entry-include-bin-scripts.mdreferences/entry-use-compilers.mdreferences/entry-use-plugin-entries.mdreferences/entry-verify-with-debug.mdreferences/exports-check-class-members.mdreferences/exports-enable-entry-exports.mdreferences/exports-handle-reexports.mdreferences/exports-ignore-same-file.mdreferences/exports-tag-public-api.mdreferences/exports-trace-usage.mdreferences/exports-use-include-libs.mdreferences/fix-allow-remove-files.mdreferences/fix-format-after-fix.mdreferences/fix-review-before-commit.md

FAQ

Что делает скилл 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.

Как установить скилл knip-deadcode?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл knip-deadcode запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить knip-deadcode с