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.
npx agentmods add skills/barmplus/locklens/dependency-auditnpx skills add BARMPlus/locklens --skill dependency-auditgit clone --depth 1 https://github.com/BARMPlus/locklensWrote 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.
[](https://agentmods.dev/skills/barmplus/locklens/dependency-audit)<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>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.
| Model | Per session | Once 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 |
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.
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 audit、yarn audit、pnpm 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>- 可选:
low、moderate、high、critical - 默认:
low
- 可选:
--registry <url>- 自定义 npm registry
- 默认:
https://registry.npmjs.org/
--skip-dev- 跳过
devDependencies
- 跳过
--retry-count <number>- 审计执行重试次数
--output-format <value>- 可选:
text、json - 默认:
text
- 可选:
--output-format-language <value>- 仅文本输出时生效
- 可选:
zh、en - 默认:
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.com、gitlab.com、gitee.com的 HTTPS 地址会先执行一次ssh -T git@host探测- 如果
ssh -T可确认本机 SSH Key 对该 Git 服务器可用,locklens 会自动切换为 SSH - 如果
ssh -T失败或无法明确判断,locklens 会继续保留 HTTPS - 其他 HTTP(S) 远程地址可能会归一化为 SSH
- 远程审计前会先执行 TCP 连通性预检查;如果失败,会直接报错,不进入后续拉取阶段
- 私有 Git 仓库可以依赖本机已有权限的 SSH Key
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.
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.
- 4d ago First seen · 201 lines · 56 tokens per session scan A 2022cc510734
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.
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.
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)…
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.
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.
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.
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.