resources/skills/x-audit-dependencies/SKILL.md
Audits dependencies for CVEs, outdated versions, and license issues per stack.
npx skillsauth add edercnj/claude-environment x-audit-dependenciesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audits all dependencies of {{PROJECT_NAME}} for security vulnerabilities, outdated versions, and license compliance. Generates a structured report with severity-categorized findings and remediation recommendations. Also supports SBOM generation, license attribution reports, and dependency tree visualization.
/x-audit-dependencies — full audit (vulnerabilities + outdated + licenses)/x-audit-dependencies --scope vulnerabilities — security vulnerabilities only/x-audit-dependencies --scope outdated — outdated packages only/x-audit-dependencies --scope licenses — license compliance only/x-audit-dependencies --scope sbom — generate CycloneDX SBOM only/x-audit-dependencies --scope license-report — generate license attribution report/x-audit-dependencies --scope tree — generate dependency tree visualization/x-audit-dependencies --scope all --policy — full audit + dependency policy validation (requires dependencies.policy.enabled: true)| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| --scope | Enum | all | Audit scope: all, vulnerabilities, outdated, licenses, sbom, license-report, tree |
| --policy | Boolean | false | After standard audit, invoke x-validate-dependency-policy to enforce DependencyPolicyConfig (EPIC-0074, Rule 32) |
| Scope | Artifact |
|-------|----------|
| vulnerabilities / outdated / licenses / all | results/audits/dependency-audit-YYYY-MM-DD.md |
| sbom | results/audits/sbom-YYYY-MM-DD.json (CycloneDX 1.6) + summary .md |
| license-report | results/audits/license-attribution-YYYY-MM-DD.md |
| tree | results/audits/dependency-tree-YYYY-MM-DD.md |
| --policy (any scope) | Plus x-validate-dependency-policy report; exit non-zero on DEP_POLICY_BLOCK |
Exit code: 0 on success; non-zero when audit tool fails OR --policy validation blocks.
1. DETECT -> Identify build tool ({{BUILD_TOOL}}) and lock file
2. AUDIT -> Run per-stack commands for vulnerabilities / outdated / licenses
3. PARSE -> Extract package + version + CVE + severity + fix recommendation
4. CATEGORIZE -> Assign CRITICAL / HIGH / MEDIUM / LOW per CVSS + license type
5. REPORT -> Markdown to results/audits/dependency-audit-YYYY-MM-DD.md
[6. POLICY] -> Skill x-validate-dependency-policy when --policy is set
`--scope=all` covers ONLY the 3 standard dimensions (vulnerabilities + outdated + licenses) — it does NOT include SBOM, license-report, or tree. Each of those is opt-in via its own dedicated `--scope` value, with its own artifact path (see Output Contract above).
Per-stack command tables (npm/yarn/pnpm/maven/gradle/cargo/pip/poetry/go), parse contracts, SBOM/license-report/tree sub-workflows, risk scoring, and full report templates live in references/full-protocol.md:
npm audit/mvn ossindex/govulncheck/etc.), outdated (npm outdated/mvn versions:display/go list -m -u/etc.), and license-check (license-checker/mvn license:third-party-report/go-licenses report/etc.).--policy Flag (§--policy Flag): standard audit → Skill(x-validate-dependency-policy) → exit-code propagation; no-op when policy capability not declared.| Scenario | Action | |----------|--------| | Audit tool not installed | Suggest installation command, continue with available tools | | No lock file found | Warn and attempt audit without lock file | | Audit command fails | Report error, continue with other dimensions | | No dependencies found | Report "No dependencies found" | | Offline mode | Skip vulnerability check, proceed with outdated and license |
| Skill | Relationship | Context |
|-------|-------------|---------|
| x-audit-supply-chain | complementary | Handles deeper supply chain risks (maintainer, typosquatting, SLSA) |
| x-generate-ci | called-by | Dependency audit pipeline references audit commands from this skill |
| x-generate-security-dashboard | reads | Dashboard aggregates results from this skill |
| x-validate-dependency-policy | delegates-to | When --policy flag is set, delegates policy enforcement after standard audit completes |
Minimum viable contract above. Detailed per-stack command tables (9 build tools × 3 audit dimensions + SBOM + tree), parse contracts, full Markdown report templates, risk scoring formula, and --policy integration semantics live in references/full-protocol.md per ADR-0012 (skill body slim-by-default).
tools
Documentation automation v2: stack-aware generation from documentation.targets.
development
Generates or updates CI/CD pipelines per project stack with actionlint validation.
tools
Generates ADRs from architecture-plan mini-ADRs with sequential numbering and index update.
development
Formats source code; first step of the pre-commit chain (format -> lint -> compile).