Knip (TypeScript / JavaScript 未使用コード検出ツール) リファレンス。 未使用ファイル・export・依存関係・型・列挙メンバーの検出、 auto-fix、monorepo (workspaces) 対応、 knip.json / knip.config.ts 設定、プラグイン、ignore 設定、 初回クリーンアップ (first cleanup)、内部動作の仕組み (how Knip works)。

GitHub
Install command
npx skhub add fandhe-ai/knip
Markdown
SKILL.md

Knip リファレンス

Knip の公式ドキュメント全コアページを網羅したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。

ディレクトリ構成

skills/knip/
  SKILL.md
  references/
    overview/
      README.md
      configuration.md
      features.md
      first-cleanup.md
      getting-started.md
    explanations/
      README.md
      comparison-and-migration.md
      entry-files.md
      how-knip-works.md
      plugins.md
      why-use-knip.md
    features/
      README.md
      auto-fix.md
      catalogs.md
      compilers.md
      custom-elements.md
      integrated-monorepos.md
      monorepos-and-workspaces.md
      production-mode.md
      reporters.md
      rules-and-filters.md
      script-parser.md
      source-mapping.md
    guides/
      README.md
      configuring-project-files.md
      contributing.md
      handling-issues.md
      issue-reproduction.md
      namespace-imports.md
      performance.md
      troubleshooting.md
      using-knip-in-ci.md
      working-with-commonjs.md
    reference/
      README.md
      cli.md
      configuration.md
      configuration-hints.md
      dynamic-configuration.md
      faq.md
      integrations.md
      issue-types.md
      jsdoc-tsdoc-tags.md
      known-issues.md
      plugins.md
      related-tooling.md
    typescript/
      README.md
      unused-dependencies.md
      unused-exports.md
    writing-a-plugin/
      README.md
      argument-parsing.md
      inputs.md
      writing-a-plugin.md
  samples/
    README.md
    auto-fix.md
    basic-configuration.md
    ci-integration.md
    getting-started.md
    ignore-patterns.md
    jsdoc-tags.md
    monorepo-workspaces.md
    output-formats.md
    production-mode.md
    rules-and-filters.md
  scripts/
    README.md
    ci.md
    cli.md
    debug.md
    fix.md
    install.md
    lint.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
インストール・初期設定・基本的な使い方を知りたいoverviewreferences/overview/README.md
機能一覧・ゼロ設定の仕組み・初回クリーンアップ後の対応を知りたいoverviewreferences/overview/README.md
エントリーファイル・プラグインの仕組み・内部動作を理解したいexplanationsreferences/explanations/README.md
導入理由・他ツールとの比較・移行手順を知りたいexplanationsreferences/explanations/README.md
auto-fix・production mode・monorepo・reporters を使いたいfeaturesreferences/features/README.md
rules / filters・compilers・script parser を設定したいfeaturesreferences/features/README.md
プロジェクトファイル設定・トラブルシューティング・CI 統合guidesreferences/guides/README.md
パフォーマンス最適化・CommonJS 対応・namespace importsguidesreferences/guides/README.md
CLI フラグ・設定オプション・issue types・JSDoc タグreferencereferences/reference/README.md
FAQ・プラグイン一覧・統合ツール・既知の問題を調べたいreferencereferences/reference/README.md
未使用 exports / dependencies の検出詳細を理解したいtypescriptreferences/typescript/README.md
カスタムプラグインを作成したいwriting-a-pluginreferences/writing-a-plugin/README.md
典型的な使い方・実例を確認したいsamplessamples/README.md
インストール・CLI コマンド・CI 実行コマンドを知りたいscriptsscripts/README.md
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

Not specified

Source path

skills/knip

Default branch

main

Latest commit

f360956

Tree SHA

7af33bc