dependency-audit by jezweb/claude-skills
npx skills add https://github.com/jezweb/claude-skills --skill dependency-audit状态 : 生产就绪 最后更新 : 2026-02-03 适用范围 : npm、pnpm、yarn 项目
| 命令 | 用途 |
|---|---|
/audit-deps | 运行全面的依赖项审计,并优先显示发现的问题 |
/audit-deps # 完整审计
/audit-deps --security-only # 仅安全漏洞
/audit-deps --outdated # 仅过时包
/audit-deps --fix # 自动修复兼容的更新
npm audit / pnpm audit
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npm outdated / pnpm outdated
类别:
检查以下内容:
═══════════════════════════════════════════════
依赖项审计报告
═══════════════════════════════════════════════
项目: my-app
包管理器: pnpm
总依赖项: 847 (142 个直接依赖,705 个传递依赖)
───────────────────────────────────────────────
安全性
───────────────────────────────────────────────
🔴 严重 (1)
lodash@4.17.20
└─ CVE-2021-23337: 通过 template() 函数进行命令注入
└─ 修复: npm update lodash@4.17.21
└─ 影响: 直接依赖
🟠 高危 (2)
minimist@1.2.5
└─ CVE-2021-44906: 原型污染
└─ 修复: 通过 mkdirp 传递,更新父级包
└─ 路径: mkdirp → minimist
node-fetch@2.6.1
└─ CVE-2022-0235: 敏感标头泄露
└─ 修复: npm update node-fetch@2.6.7
🟡 中危 (3)
[详细信息...]
───────────────────────────────────────────────
过时的包
───────────────────────────────────────────────
主要更新 (请审查破坏性变更):
react 18.2.0 → 19.1.0 (1 个主要版本)
typescript 5.3.0 → 5.8.0 (5 个次要版本)
drizzle-orm 0.44.0 → 0.50.0 (6 个次要版本)
次要更新 (安全,新功能):
@types/node 20.11.0 → 20.14.0
vitest 1.2.0 → 1.6.0
补丁更新 (推荐):
[15 个有补丁更新的包]
───────────────────────────────────────────────
许可证检查
───────────────────────────────────────────────
✅ 所有许可证均与 MIT 兼容
注意: 3 个包使用 ISC 许可证(兼容)
───────────────────────────────────────────────
摘要
───────────────────────────────────────────────
安全问题: 6 (1 个严重,2 个高危,3 个中危)
过时包: 23 (3 个主要版本,5 个次要版本,15 个补丁版本)
许可证问题: 0
推荐操作:
1. 修复严重问题: npm update lodash
2. 修复高危问题: npm audit fix
3. 升级前审查主要更新
═══════════════════════════════════════════════
dep-auditor 代理可以:
- name: 审计依赖项
run: npm audit --audit-level=high
continue-on-error: true
- name: 检查严重漏洞
run: |
CRITICAL=$(npm audit --json | jq '.metadata.vulnerabilities.critical')
if [ "$CRITICAL" -gt 0 ]; then
echo "发现严重漏洞!"
exit 1
fi
#!/bin/sh
npm audit --audit-level=critical || {
echo "发现严重漏洞。请运行 'npm audit fix' 或 '/audit-deps'"
exit 1
}
| 任务 | npm | pnpm | yarn |
|---|---|---|---|
| 审计 | npm audit | pnpm audit | yarn audit |
| 审计 JSON | npm audit --json | pnpm audit --json | yarn audit --json |
| 自动修复 | npm audit fix | pnpm audit --fix | yarn audit --fix |
| 强制修复 | npm audit fix --force | N/A | N/A |
| 检查过时 | npm outdated | pnpm outdated | yarn outdated |
| 原因查询 | npm explain <pkg> | pnpm why <pkg> | yarn why <pkg> |
版本 : 1.0.0 最后更新 : 2026-02-03
每周安装量
159
代码仓库
GitHub 星标数
661
首次出现
2026 年 2 月 3 日
安全审计
已安装于
claude-code130
opencode110
replit103
gemini-cli100
codex96
cursor90
Status : Production Ready Last Updated : 2026-02-03 Scope : npm, pnpm, yarn projects
| Command | Purpose |
|---|---|
/audit-deps | Run comprehensive dependency audit with prioritised findings |
/audit-deps # Full audit
/audit-deps --security-only # Only security vulnerabilities
/audit-deps --outdated # Only outdated packages
/audit-deps --fix # Auto-fix compatible updates
npm audit / pnpm audit
npm outdated / pnpm outdated
Categories:
Checks for:
═══════════════════════════════════════════════
DEPENDENCY AUDIT REPORT
═══════════════════════════════════════════════
Project: my-app
Package Manager: pnpm
Total Dependencies: 847 (142 direct, 705 transitive)
───────────────────────────────────────────────
SECURITY
───────────────────────────────────────────────
🔴 CRITICAL (1)
lodash@4.17.20
└─ CVE-2021-23337: Command injection via template()
└─ Fix: npm update lodash@4.17.21
└─ Affects: direct dependency
🟠 HIGH (2)
minimist@1.2.5
└─ CVE-2021-44906: Prototype pollution
└─ Fix: Transitive via mkdirp, update parent
└─ Path: mkdirp → minimist
node-fetch@2.6.1
└─ CVE-2022-0235: Exposure of sensitive headers
└─ Fix: npm update node-fetch@2.6.7
🟡 MODERATE (3)
[details...]
───────────────────────────────────────────────
OUTDATED PACKAGES
───────────────────────────────────────────────
Major Updates (review breaking changes):
react 18.2.0 → 19.1.0 (1 major)
typescript 5.3.0 → 5.8.0 (5 minor)
drizzle-orm 0.44.0 → 0.50.0 (6 minor)
Minor Updates (safe, new features):
@types/node 20.11.0 → 20.14.0
vitest 1.2.0 → 1.6.0
Patch Updates (recommended):
[15 packages with patch updates]
───────────────────────────────────────────────
LICENSE CHECK
───────────────────────────────────────────────
✅ All licenses compatible with MIT
Note: 3 packages use ISC (compatible)
───────────────────────────────────────────────
SUMMARY
───────────────────────────────────────────────
Security Issues: 6 (1 critical, 2 high, 3 moderate)
Outdated: 23 (3 major, 5 minor, 15 patch)
License Issues: 0
Recommended Actions:
1. Fix critical: npm update lodash
2. Fix high: npm audit fix
3. Review major updates before upgrading
═══════════════════════════════════════════════
The dep-auditor agent can:
- name: Audit dependencies
run: npm audit --audit-level=high
continue-on-error: true
- name: Check for critical vulnerabilities
run: |
CRITICAL=$(npm audit --json | jq '.metadata.vulnerabilities.critical')
if [ "$CRITICAL" -gt 0 ]; then
echo "Critical vulnerabilities found!"
exit 1
fi
#!/bin/sh
npm audit --audit-level=critical || {
echo "Critical vulnerabilities found. Run 'npm audit fix' or '/audit-deps'"
exit 1
}
| Task | npm | pnpm | yarn |
|---|---|---|---|
| Audit | npm audit | pnpm audit | yarn audit |
| Audit JSON | npm audit --json | pnpm audit --json | yarn audit --json |
| Fix auto | npm audit fix |
Version : 1.0.0 Last Updated : 2026-02-03
Weekly Installs
159
Repository
GitHub Stars
661
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code130
opencode110
replit103
gemini-cli100
codex96
cursor90
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装
agent-browser:基于Playwright的Vercel浏览器自动化CLI工具,快速实现网页交互与测试
852 周安装
Sensei:GitHub Copilot for Azure技能合规性自动化改进工具
843 周安装
文档查找工具:实时获取库、框架和API最新文档,替代训练数据
926 周安装
Next.js Turbopack 开发指南:加速启动与热更新,提升开发效率
935 周安装
AI回归测试解决方案:解决AI辅助开发的系统性盲点与代码审查缺陷
940 周安装
Kotlin Ktor 服务器模式指南:构建健壮 HTTP API 的架构与最佳实践
968 周安装
pnpm audit --fix |
yarn audit --fix |
| Fix force | npm audit fix --force | N/A | N/A |
| Outdated | npm outdated | pnpm outdated | yarn outdated |
| Why | npm explain <pkg> | pnpm why <pkg> | yarn why <pkg> |