dependency-audit

dependency-audit is a skill for Claude Code from boparaiamrit/skills-by-amrit. It costs 27 tokens per session (2,770 once invoked), scanned A, original, MIT.

A review of the external packages a project depends on, including their security, maintenance, versions, and role in the project.

In plain words
What is it for?
It is for checking dependencies before adding or upgrading them, responding to security alerts, and investigating package-related problems.
Why use it?
It helps identify vulnerable, outdated, abandoned, unnecessary, or risky packages before they affect builds or production systems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skills-by-amrit plugin — 33 skills, 34 commands, 9 agents shipped together

Good fit It is for checking dependencies before adding or upgrading them, responding to security alerts, and investigating package-related problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boparaiamrit/skills-by-amrit/dependency-audit
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 boparaiamrit/skills-by-amrit --skill dependency-audit
Clone the repo
git clone --depth 1 https://github.com/boparaiamrit/skills-by-amrit

Made for: Claude Code.

Or install skills-by-amrit, the plugin that ships this one along with the rest of its 33 skills, 34 commands, 9 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 dependency-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/boparaiamrit/skills-by-amrit/dependency-audit/github.svg)](https://agentmods.dev/skills/boparaiamrit/skills-by-amrit/dependency-audit)
Your own site
<a href="https://agentmods.dev/skills/boparaiamrit/skills-by-amrit/dependency-audit"><img src="https://agentmods.dev/badge/skills/boparaiamrit/skills-by-amrit/dependency-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dependency-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/boparaiamrit/skills-by-amrit/dependency-audit"><img src="https://agentmods.dev/badge/skills/boparaiamrit/skills-by-amrit/dependency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00027 $0.02770
Opus 5 $0.00014 $0.01385
Sonnet 5 $0.00005 $0.00554
Haiku 4.5 $0.00003 $0.00277

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

Security

Grade A, and why

dependency-audit scanned grade A with 1 finding 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.

Unrestricted tool accesslowExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

4. ARE pre/post install scripts reviewed? (npm scripts can execute arbitrary code)

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/dependency-audit/SKILL.md · 284 lines

How it starts

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

Dependency Audit

Overview

Every dependency is code you didn't write, can't fully control, and must trust. The average npm project has 200+ transitive dependencies. Each one is a potential vulnerability, a potential breaking change, and a potential abandoned project.

Core principle: Every dependency is a liability until proven otherwise. Justify every one.

The Iron Law

NO NEW DEPENDENCY WITHOUT JUSTIFICATION. NO UNAUDITED DEPENDENCY IN PRODUCTION. NO DEPENDENCY WITHOUT AN EXIT STRATEGY.

When to Use

  • Adding a new dependency (always audit before adding)
  • Running periodic dependency health checks (quarterly minimum)
  • After security advisory notifications (CVE alerts)
  • Investigating unexplained behavior (could be dependency bug)
  • During any codebase audit
  • Before major version upgrades
  • When build/install times are growing

When NOT to Use

  • Choosing between two technologies (that's a design decision, not an audit)
  • Evaluating your own code quality (use code-review or architecture-audit)
  • If the project has zero external dependencies (rare but possible)

Anti-Shortcut Rules

YOU CANNOT:
- Say "dependencies look fine" — run the actual audit command and read the output
- Say "no vulnerabilities" — run npm audit / pip audit / equivalent AND check the output
- Say "package is maintained" — check last publish date, open issues count, contributor count
- Say "we need this dependency" — verify what fraction of it you use (one function from 500KB?)
- Skip transitive dependencies — they're the largest attack surface
- Say "license is fine" — verify the specific license against your project's license requirements
- Trust download counts alone — popular packages can be compromised too
- Say "we'll update later" — document WHEN and add it to the backlog with a deadline

Common Rationalizations (Don't Accept These)

Rationalization Reality
"Everyone uses this package" Popularity ≠ security. Popular packages are bigger targets for supply chain attacks.
"It's only a dev dependency" Dev dependencies execute during build. A compromised build dependency compromises your artifact.
"We only use one function from it" Then implement that function yourself. Don't ship 500KB for one utility.
"It's been around forever" "Around forever" often means "unmaintained." Check last commit date.
"The vulnerability doesn't affect us" Prove it with evidence. Most "doesn't affect us" claims are wishful thinking.
"We'll update when we have time" You won't have time until the CVE becomes an incident. Schedule it now.
"Pinning versions protects us" Pinning prevents auto-updates but also prevents auto-patches. You must actively manage pinned versions.

Read the full file on GitHub · 284 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 · 284 lines · 27 tokens per session scan A 8cd4ae82e5f9

Subscribe to this mod's changes

dependency-audit is a skill published in the GitHub repository boparaiamrit/skills-by-amrit (5 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 2,770 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens