返回 Skill 列表
extension
分类: 开发与工程无需 API Key

audit-deps

检查依赖项是否存在漏洞。当用户要求“审计依赖项”、使用“/audit-deps”命令、“检查漏洞”或希望检查依赖项健康状况时使用。不适用于yarn、pnpm或bun项目(仅限npm),也不用于审查代码质量。

person作者: jakexiaohubgithub

Dependency Audit

Commands

Run in parallel:

  • npm audit
  • npm outdated

Workflow

  1. Run audit and outdated check in parallel
  2. Report critical vulnerabilities with CVE + fix command (see severity-levels.md)
  3. List outdated packages: table of package/current/latest/type (major vs minor/patch)
  4. Check for unused deps: grep imports in src/

Rules

  • Never use npx directly
  • Focus on actionable items
  • Prioritize: security > major updates > unused > minor updates

Error Handling

  • If npm audit fails → run npm install first to generate package-lock.json, then retry
  • If npm outdated returns nothing → report all dependencies are current
  • If npm is not found → report incompatibility; this skill requires npm