Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audits project dependencies for known vulnerabilities, outdated packages, and unused modules. Triggered when a user asks to check for vulnerabilities, audit dependencies, or run a security scan on installed packages. Produces a severity-sorted findings table with one-liner fix commands and cross-references Sonatype for recommended versions.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 55% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 21% | 0% |
Scan project dependencies for vulnerabilities, outdated packages, and unused modules.
bashnpm audit --json
Parse the JSON output and extract:
Use the Sonatype MCP tool getRecommendedComponentVersions for each vulnerable package to get:
Group by severity: critical > high > moderate > low.
Present as a markdown table sorted by severity:
| # | Severity | Package | Current | Fixed | CVSS | Vulnerability | Fix Command |
|---|----------|----------------|---------|----------|------|----------------------------|--------------------------------------|
| 1 | critical | lodash | 4.17.15 | 4.17.21 | 9.8 | Prototype Pollution (CVE-…)| `npm install lodash@4.17.21` |
| 2 | high | axios | 0.21.0 | 0.21.2 | 7.5 | SSRF via redirect (CVE-…) | `npm install axios@0.21.2` |
| 3 | moderate | minimatch | 3.0.4 | 3.0.5 | 5.3 | ReDoS (CVE-…) | `npm install minimatch@3.0.5` |
| 4 | low | debug | 2.6.8 | 2.6.9 | 3.1 | Regular Expression DoS | `npm install debug@2.6.9` |Include a summary line:
Found X vulnerabilities: Y critical, Z high, W moderate, V lowbashnpm audit fix
Report what was fixed and what remains.
bash# Only run after explicit user approval npm audit fix --force
Warn the user: "This may upgrade packages to new major versions with breaking changes. Review the changes before proceeding."
bashnpm outdated --json
Present as a table:
| Package | Current | Wanted | Latest | Type |
|------------|---------|--------|--------|------------|
| react | 18.2.0 | 18.3.1 | 19.1.0 | dependency |
| typescript | 5.3.3 | 5.4.5 | 5.8.2 | devDep |If depcheck is installed:
bashnpx depcheck --json
List unused dependencies and missing dependencies (imported but not in package.json).
If not installed, check manually by grepping for import/require statements against package.json entries.
npm audit fix --force without user confirmation — it can introduce breaking changespackage-lock.json or bun.lockb, ensure fixes maintain lock consistencyworkspaces exist in package.json, run audit at root and note which workspace is affectedOther measured skills in the registry, with their headline benchmark lift.