Code dep audit

From laurigates/claude-plugins · View interactive version

Code dep audit is an AI agent skill from the GitHub repository laurigates/claude-plugins. Audit dependencies for security vulnerabilities, outdated packages, and license compliance. Use when checking supply chain security, preparing releases, or responding to CVEs.

How to use this skill

Skill file

/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 dependencies | Setting up security scanning CI → /configure:security |

| Preparing a release and need dep health check | Looking for code-level security issues → /code:antipatterns |

| Responding to a vulnerability advisory | Reviewing code quality → /code:review |

| Auditing license compliance | Configuring dependency management → /configure:package-management |

Context

Parameters

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"

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

Agentic Optimizations

| Context | Command |

|---|---|

| Quick JS audit | npm audit --json |

| Python audit | pip-audit --format json |

| Rust audit | cargo audit --json |

| Outdated check | npm outdated --json |

| License check | npx license-checker --json --summary |

| CI mode | npm audit --audit-level=critical --json |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.