Deps Auditのロゴ

Deps Audit

コミュニティ
kazdenc
deps-audit

Audit project dependencies for outdated packages, known vulnerabilities, unused imports, and bloated bundles. Use when user says "audit dependencies", "check for vulnerabilities", "update packages", "unused dependencies", "bundle size", "dependency cleanup", or needs to maintain healthy dependencies.

概要

公開者kazdenc
リポジトリbuilder-skills
スキル名deps-audit
スター
46
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    kazdencがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Deps Audit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/deps-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/review/deps-audit .claude/skills/deps-audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDeps Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDeps Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Deps Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Audit project dependencies and produce a categorized report with a prioritized upgrade plan. Surface vulnerabilities, unused packages, and bundle bloat.

Step 1: Read Package Manifest

Read package.json (or the specified manifest file). Catalog:

  • All dependencies and their pinned/range versions
  • All devDependencies and their pinned/range versions
  • Any peerDependencies or optionalDependencies
  • Package manager in use (npm, pnpm, yarn) from lock file presence
  • Node/runtime engine constraints if declared

Step 2: Check for Vulnerabilities

Run the appropriate audit command for the detected package manager:

Package ManagerCommandNotes
npmnpm audit --jsonParse JSON output for severity counts
pnpmpnpm audit --jsonSimilar JSON structure
yarn (v1)yarn audit --jsonNDJSON output, parse line by line
yarn (berry)yarn npm audit --jsonDifferent output format

For each vulnerability found, capture:

  • Package name and installed version
  • Severity (critical, high, moderate, low)
  • CVE identifier if available
  • Fix available (yes/no) and which version resolves it
  • Whether it is a direct or transitive dependency

Step 3: Identify Outdated Packages

Run npm outdated --json (or equivalent) and group results:

Update TypeRisk LevelAction
Patch (1.2.3 → 1.2.4)LowSafe to update; bug fixes only
Minor (1.2.3 → 1.3.0)Low–MediumUsually safe; new features, no breaking changes
Major (1.2.3 → 2.0.0)Medium–HighBreaking changes expected; read changelog first
DeprecatedHighPackage abandoned; find replacement

Flag packages more than 2 major versions behind as high priority.

Step 4: Find Unused Dependencies

Scan the codebase for actual import/require usage of each declared dependency:

  • Search for import ... from '<package>' and require('<package>') patterns
  • Check framework config files that reference packages implicitly (Babel, PostCSS, ESLint, Tailwind plugins)
  • Check scripts in package.json that invoke CLI tools
  • Check for @types/* packages whose corresponding runtime package is used

Classify as:

StatusMeaning
UnusedNo import, require, or config reference found anywhere
Possibly unusedOnly referenced in commented-out code or unused files
DevDependency misplacedListed in dependencies but only used in tests/build
Dependency misplacedListed in devDependencies but imported in production code

Step 5: Identify Duplicates and Bundle Bloat

Check for common bundle-bloating patterns:

Bloated Packages and Lighter Alternatives

Heavy PackageSizeAlternativeSizeNotes
moment~290 kBdayjs~7 kBDrop-in API compatible with plugin system
lodash (full)~530 kBNative ES methods / lodash-es cherry-pick0–5 kBMost lodash utilities have native equivalents
axios~29 kBNative fetch0 kBBuilt into all modern runtimes
uuid~12 kBcrypto.randomUUID()0 kBBuilt into Node 19+ and modern browsers
classnames~1 kBTemplate literals or clsx~0.5 kBclsx is smaller and faster
underscore~60 kBNative ES methods0 kBFully replaceable with modern JS
request~200 kBNative fetch or undici0–30 kBrequest is deprecated
bluebird~80 kBNative Promises0 kBNative promises are sufficient in modern runtimes
chalk (v5+)~25 kBpicocolors~3 kBLighter, faster, no dependencies
express~210 kBfastify or hono~50–80 kBBetter performance and smaller footprint
left-pad / trivial utilsvariesInline implementation0 kBAvoid micro-packages for trivial logic

Also check for:

  • Duplicate packages at different versions in the lock file
  • Multiple packages serving the same purpose (e.g., both axios and node-fetch)
  • Large devDependencies that could be replaced (e.g., ts-node → tsx)

Step 6: Generate Upgrade Plan

Prioritize actions in this order:

PriorityCategoryRationale
1Security fixes (critical/high)Active vulnerability; patch immediately
2Security fixes (moderate/low)Lower risk but still exposed
3Deprecated packagesReplace before ecosystem support disappears
4Unused dependenciesRemove to reduce attack surface and install time
5Bundle bloat replacementsSwap heavy packages for lighter alternatives
6Major updates (with breaking changes)Schedule with time for testing and migration
7Minor/patch updatesBatch and apply; lowest risk

For each upgrade action, include:

  • Package name and current → target version
  • What changes (link to changelog or release notes when possible)
  • Breaking changes to watch for
  • Estimated effort (quick patch, moderate migration, significant rewrite)

Output Report

Structure the final report with these sections:

Vulnerability Summary

Total counts by severity. List each critical and high finding with CVE and fix version.

Outdated Packages

Table grouped by update type (patch, minor, major, deprecated).

Unused Dependencies

List with evidence of non-use. Separate confirmed-unused from possibly-unused.

Bundle Optimization Opportunities

Heavy packages with recommended alternatives and estimated size savings.

Prioritized Upgrade Plan

Ordered action list following the priority table above.

Health Score

Provide an overall dependency health assessment:

MetricStatus
Known vulnerabilitiesCount by severity
Outdated packages% of deps behind latest
Unused packagesCount
Bundle bloat candidatesCount and estimated savings
Lock file presentYes / No
Engine constraints declaredYes / No

NEVER:

  • Recommend removing a dependency without verifying it is truly unused (check config files, scripts, and implicit usage)
  • Suggest upgrading a package without noting breaking changes in major versions
  • Ignore transitive vulnerabilities — they are still your problem
  • Recommend npm audit fix --force without reviewing what it changes
  • Skip the lock file — duplicates and transitive issues live there

よくある質問

AIスキル「Deps Audit」では何ができますか?

Audit project dependencies for outdated packages, known vulnerabilities, unused imports, and bloated bundles. Use when user says "audit dependencies", "check for vulnerabilities", "update packages", "unused dependencies", "bundle size", "dependency cleanup", or needs to maintain healthy dependencies.

TypingMindでDeps Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Deps Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDeps Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/deps-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Deps Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Deps Auditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDeps Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Deps Audit」は無料ですか?

はい。kazdencがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇