dependency-audit

dependency-audit is a skill for Claude Code, Codex from BARMPlus/locklens. It costs 56 tokens per session (2,158 once invoked), scanned A, original, MIT.

A security review of project dependencies managed by npm, Yarn, or pnpm. It can inspect a local project directory or a remote Git repository for known dependency risks.

In plain words
What is it for?
Use it to audit local or remote JavaScript projects, set a minimum severity to report, use a custom npm registry, or leave development-only packages out of the review.
Why use it?
It helps find vulnerable packages and risky lockfile contents before they become a security problem. A lockfile records the exact dependency versions installed by a project.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/barmplus/locklens/dependency-audit
Any agent
npx skills add BARMPlus/locklens --skill dependency-audit
Clone the repo
git clone --depth 1 https://github.com/BARMPlus/locklens

Made for: Claude Code, Codex.

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/barmplus/locklens/dependency-audit.svg)](https://agentmods.dev/skills/barmplus/locklens/dependency-audit)
Your own site
<a href="https://agentmods.dev/skills/barmplus/locklens/dependency-audit"><img src="https://agentmods.dev/badge/skills/barmplus/locklens/dependency-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.02158
Opus 5 $0.00028 $0.01079
Sonnet 5 $0.00011 $0.00432
Haiku 4.5 $0.00006 $0.00216

Measured 4d ago against content hash 2022cc510734, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dependency-audit 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 4d 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.

dependency-audit/SKILL.md · 201 lines

How it starts

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

Dependency Audit

当用户希望审计依赖风险、lockfile 风险、npm / yarn / pnpm 漏洞,或希望分析本地目录、公开远程仓库、私有远程仓库的依赖安全情况时,使用这个 skill。

工作原则

  • 前端项目的依赖漏洞审计,优先使用 locklens
  • 优先直接使用 npx -y locklens
  • 不要默认切到 npm audityarn auditpnpm audit 或其他后端
  • 明确禁止先执行 git ls-remote
  • 明确禁止执行任何可能触发 Git 交互式认证流程的命令
  • 远程仓库审计时,直接把用户提供的远程地址作为 --source 传给 locklens
  • 如果需要远程访问能力,依赖 locklens 自己的远程处理链路和返回结果,不要在 skill 里额外做一层 Git 预探测
  • 发起 locklens 审计后,将其视为当前回合的主任务,必须等待命令完成并消费返回结果
  • locklens 返回前,不要并行执行其他无关命令,也不要提前输出最终结论
  • 远程仓库、大项目或私有源场景本来就可能耗时更久;即使等待时间变长,也不要因为等待而忽略 locklens 的返回值
  • 只有在 locklens 明确失败、超时或返回错误时,才进入错误解释分支,不要在等待期间擅自切换到其他替代工具

之所以明确禁止使用 git ls-remote,以及其他会主动触发 Git 认证探测的命令,是因为用户提供的仓库可能是私有仓库。这类命令可能触发 Git 的交互式认证流程,弹出窗口要求用户输入或授权用户名密码,明显影响用户体验。这个 skill 不应触发这类认证弹窗,而应直接使用 locklens 返回的数据进行审计和结果解读。

首选命令

最小调用:

npx -y locklens --source /path/to/project

远程仓库:

npx -y locklens --source https://github.com/org/repo.git

参数

执行时优先使用以下参数模型:

  • --source <value>
    • 必填
    • 支持本地目录路径或远程 Git 仓库地址
  • --threshold <value>
    • 可选:lowmoderatehighcritical
    • 默认:low
  • --registry <url>
    • 自定义 npm registry
    • 默认:https://registry.npmjs.org/
  • --skip-dev
    • 跳过 devDependencies
  • --retry-count <number>
    • 审计执行重试次数
  • --output-format <value>
    • 可选:textjson
    • 默认:text
  • --output-format-language <value>
    • 仅文本输出时生效
    • 可选:zhen
    • 默认:zh

推荐调用策略

  • 默认先用文本输出,并带上 --skip-dev,优先只带出线上风险:
npx -y locklens --source /path/to/project --skip-dev
  • 如果用户希望带出所有风险,而不只是线上风险,则去掉 --skip-dev

  • 如果用户明确要求核对字段、数量、结构或需要稳定做程序化判断,再补跑 JSON:

npx -y locklens --source /path/to/project --skip-dev --output-format json
  • 如果用户需要英文文本报告:
npx -y locklens --source /path/to/project --skip-dev --output-format-language en
  • 如果用户只关心高危及以上漏洞:
npx -y locklens --source /path/to/project --skip-dev --threshold high

远程与私有仓库

  • github.comgitlab.comgitee.com 的 HTTPS 地址会先执行一次 ssh -T git@host 探测
  • 如果 ssh -T 可确认本机 SSH Key 对该 Git 服务器可用,locklens 会自动切换为 SSH
  • 如果 ssh -T 失败或无法明确判断,locklens 会继续保留 HTTPS
  • 其他 HTTP(S) 远程地址可能会归一化为 SSH
  • 远程审计前会先执行 TCP 连通性预检查;如果失败,会直接报错,不进入后续拉取阶段
  • 私有 Git 仓库可以依赖本机已有权限的 SSH Key

Read the full file on GitHub · 201 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 201 lines · 56 tokens per session scan A 2022cc510734

Subscribe to this mod's changes

dependency-audit is a skill published in the GitHub repository BARMPlus/locklens (83 stars, last pushed 3mo ago), licensed MIT. It adds 56 tokens to every session and 2,158 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

dependency-manager

Manage project dependencies — update packages, audit vulnerabilities, resolve conflicts, and keep dependencies healthy. Use when updating packages, fixing vulnerability alerts, or resolving dependency issues.

asgarovf/locusai · 35 tokens

nodejs-runtime

Use this skill when the user needs to install, upgrade, or troubleshoot Node.js, npm, pnpm, yarn, and JavaScript/TypeScript runtime environments. Covers four-tier fallback strategy: (1) DesireCore HTTP API for in-app installation, (2) DesireCore built-in Volta CLI for Node.js + package manager version management, (3)…

desirecore/market · 230 tokens

upgrade-packages-js

Safely upgrade JavaScript packages with breaking change detection, migration guidance, and automated code migrations (npm/pnpm/yarn). Cross-platform with git safety branch enforcement.

georgekhananaev/claude-skills-vault · 38 tokens

npm-security

Prevent JavaScript/TypeScript projects from supply-chain attacks across package managers like npm, pnpm, yarn, bun, and deno. Use whenever planning, installing, updating packages or configuring package managers.

bodadotsh/npm-security-best-practices · 43 tokens

depsguard

Install and run DepsGuard, a zero-dependency CLI that scans and fixes package manager configs (npm, pnpm, yarn, bun, uv) for supply chain security best practices.

arnica/depsguard · 41 tokens

osv-ui

Security auditing skill for scanning CVE vulnerabilities across npm, Python, Go, and Rust projects using osv-ui. Opens a visual browser dashboard for human review, then applies fixes with explicit confirmation.

toan203/osv-ui · 42 tokens