audit-dependencies

audit-dependencies is a skill for Claude Code from duthaho/claudekit. It costs 101 tokens per session (2,533 once invoked), scanned A, original, MIT.

A dependency-audit workflow for checking the third-party packages a project declares, downloads, and actually imports. It covers package managers such as npm, pip, and Cargo and verifies claims against the code itself.

In plain words
What is it for?
Use it after a CVE alert, before adding or upgrading a package, when removing dependencies, or when installed packages make the project unnecessarily large.
Why use it?
It helps distinguish a package that is merely installed from one that the program really uses. This makes security alerts, unused packages, outdated versions, and upgrade decisions easier to assess.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the claudekit plugin — 15 skills, 8 agents shipped together

Good fit Use it after a CVE alert, before adding or upgrading a package, when removing dependencies, or when installed packages make the project unnecessarily large.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duthaho/claudekit/audit-dependencies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add duthaho/claudekit --skill audit-dependencies
Clone the repo
git clone --depth 1 https://github.com/duthaho/claudekit

Made for: Claude Code.

Or install claudekit, the plugin that ships this one along with the rest of its 15 skills, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/skills/duthaho/claudekit/audit-dependencies.svg)](https://agentmods.dev/skills/duthaho/claudekit/audit-dependencies)
Your own site
<a href="https://agentmods.dev/skills/duthaho/claudekit/audit-dependencies"><img src="https://agentmods.dev/badge/skills/duthaho/claudekit/audit-dependencies.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.02533
Opus 5 $0.00051 $0.01267
Sonnet 5 $0.00020 $0.00507
Haiku 4.5 $0.00010 $0.00253

Measured 9d ago against content hash 1575df45a075, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

audit-dependencies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/audit-dependencies/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit Dependencies

Overview

A four-step dependency audit that goes past npm audit / pip-audit / cargo audit output into the actual import graph. The skill enforces that every claim ("we don't use that import path", "this dep is dead", "this CVE doesn't apply") is backed by evidence from the code, not from a tool's verdict alone. The audit produces a list of dependencies with three columns: declared, transitively pulled, actually called. Anything in column 1 or 2 but not column 3 is a candidate for removal. Anything called but unpinned, deprecated, or vulnerable is an action item. Senior ICs use it before adding a new dep, before a major version bump, or after a CVE lands.

When to Use

  • After a CVE alert from npm audit, pip-audit, GitHub Dependabot, Snyk, or similar
  • Before adding a new third-party package to the project
  • Before a major-version upgrade of a framework, ORM, or runtime
  • When node_modules / site-packages / target size feels disproportionate
  • When evaluating whether a package can be removed
  • During quarterly or release-cycle hygiene

When NOT to Use

  • A patch-version bump on a dep you actively use, with no behavioral changes in the changelog. Just bump it.
  • A dependency you added in this same PR. You know what it does.
  • An audit on a deploy artifact you don't own (audit upstream, not the binary).

Process

Step 1: Snapshot

Goal: Capture the current declared dependency state in a form you can diff later.

Inputs: The project's manifest file(s) — package.json, requirements.txt, pyproject.toml, Cargo.toml, go.mod, Gemfile, etc.

Actions:

  1. Run the ecosystem's lockfile-respecting list command:
    • npm ls --all (or pnpm ls --depth=Infinity)
    • pip list --format=json
    • cargo tree
    • go list -m all
  2. Pipe to a file. Date-stamp it. This is your before-state.
  3. Note the count of direct deps and total deps (direct + transitive).

Output: A snapshot file at a known path. A two-line note: <N> direct, <M> transitive.

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 175 lines · 101 tokens per session scan A 1575df45a075

Subscribe to this mod's changes

audit-dependencies is a skill published in the GitHub repository duthaho/claudekit (97 stars, last pushed 1mo ago), licensed MIT. It adds 101 tokens to every session and 2,533 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.