code-dep-audit

v2026.09.24

Audit dependencies for security vulnerabilities, outdated packages, and license compliance. Use when checking supply chain security, preparing releases, or responding to CVEs.

GitHub
安装命令
npx skhub add laurigates/code-dep-audit
Markdown
SKILL.md

/code:dep-audit

Audit project dependencies for vulnerabilities and freshness.

When to Use This Skill

Use this skill when...Use something else when...
Checking for known CVEs in dependenciesSetting up security scanning CI → /configure:security
Preparing a release and need dep health checkLooking for code-level security issues → /code:antipatterns
Responding to a vulnerability advisoryReviewing code quality → /code:review
Auditing license complianceConfiguring dependency management → /configure:package-management

Context

  • Package files: !find . -maxdepth 1 \( -name "package.json" -o -name "package-lock.json" -o -name "yarn.lock" -o -name "bun.lock" -o -name "bun.lockb" -o -name "pyproject.toml" -o -name "requirements.txt" -o -name "Cargo.toml" -o -name "Cargo.lock" -o -name "go.mod" -o -name "go.sum" \) -type f

Parameters

  • --type: Audit type — security (default), outdated, licenses, or all
  • --fix: Automatically apply safe updates for vulnerable packages

Execution

Execute this dependency audit workflow:

Step 1: Gather audit data

Run the extracted audit script — it detects the package ecosystem, dispatches the matching audit tool, and parses severity / outdated / license-denylist counts into a structured rollup:

bash "${CLAUDE_SKILL_DIR}/scripts/code-dep-audit.sh" --home-dir "$HOME" --project-dir "$(pwd)"

Parse STATUS= and ISSUES: from the output. The script emits ECOSYSTEM=, AUDIT_TOOL=, VULN_CRITICAL/HIGH/MEDIUM/LOW, OUTDATED_COUNT=, LICENSE_ISSUES=, and an ISSUES: block flagging GPL/AGPL licenses (problematic in proprietary projects). When AUDIT_TOOL_AVAILABLE=false, the ecosystem's audit tool is missing — run it via the command in AUDIT_TOOL= if installed, otherwise suggest /configure:security.

Step 2: Apply fixes (if --fix)

For security vulnerabilities:

  1. Run npm audit fix / cargo update / pip install --upgrade for safe updates
  2. Report which vulnerabilities were fixed and which require manual intervention
  3. Run project tests to verify nothing broke

Step 3: Report results

Print summary:

Dependency Audit Report
=======================
Ecosystem: [JS/TS | Python | Rust | Go]

Security:
  Critical: N
  High: N
  Medium: N
  Low: N

Outdated: N packages behind latest
License issues: N flagged

Top actions:
1. [package@version] - critical CVE-XXXX-XXXX
2. [package] - N major versions behind

Post-Actions

  • If many vulnerabilities found → suggest npm audit fix or equivalent
  • If audit tools not configured → suggest /configure:security
  • If outdated packages found → suggest updating in a separate branch

Agentic Optimizations

ContextCommand
Quick JS auditnpm audit --json
Python auditpip-audit --format json
Rust auditcargo audit --json
Outdated checknpm outdated --json
License checknpx license-checker --json --summary
CI modenpm audit --audit-level=critical --json
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

code-quality-plugin/skills/code-dep-audit

默认分支

main

最新提交

1668324

Tree SHA

b2d4cc3