dependency-audit
Use when auditing a project's dependency tree for known vulnerabilities and supply-chain risks (bun/npm/pnpm/yarn, Composer, Cargo, Go modules, SwiftPM, pip, Bundler) and its GitHub Actions workflows. Read-only: reports findings, lists fix commands as options, never applies them.
How do I install this agent skill?
npx skills add https://github.com/fusengine/claude-plugins --skill dependency-auditIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is a robust security auditing tool designed with a strong read-only posture to prevent the execution of untrusted project code. It implements industry best practices for dependency and supply-chain analysis.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Out of scope: deep CVE history of one named package (use cve-research). </objective>
Dependency Audit Skill
Ground rules
- Report, never fix. Every
fix/--fix/--apply-fixescommand rewrites lockfiles, manifests ornode_modules. The audit lists it as an option; it never runs it. - Tool presence first. Before any command:
command -v <tool>. Missing tool → recordnot run: <tool> absentin the report. Never install it, never skip it silently. - Untrusted projects. Some tools execute project code (Cargo build scripts, package
manager lifecycle scripts, osv-scanner
fix). Use the read-only form documented inreferences/audit-commands-systems.mdand never run install commands. - Versions age. Check a tool's version with its own
--versionrather than trusting a number written in this skill.
Ecosystems
| Lockfile | Native tool | Reference |
|---|---|---|
bun.lock | bun audit | JS and PHP commands |
package-lock.json / npm-shrinkwrap.json | npm audit | same |
pnpm-lock.yaml | pnpm audit | same |
yarn.lock (Yarn 2+) | yarn npm audit | same |
yarn.lock (Yarn 1 classic) | yarn audit | same |
composer.lock | composer audit | same |
Cargo.lock | cargo audit | Rust, Go, Swift, Python, Ruby |
go.mod / go.sum | govulncheck | same |
Package.resolved (SwiftPM) | none native — OSV / GitHub Advisory lookup | same |
requirements.txt, pyproject.toml, pylock.*.toml | pip-audit | same |
Gemfile.lock | bundle-audit | same |
| any supported lockfile | osv-scanner (optional cross-check) | same |
Workflow
- Detect lockfiles (and whether each is tracked:
git ls-files <lockfile>). - Check tools with
command -v; record absent ones. - Run the read-only audit command per ecosystem, JSON output where available.
- Supply chain checks: Supply Chain Checks.
- CI checks for
.github/workflows/*.yml: GitHub Actions Checks. - Classify each advisory (CRITICAL / HIGH / MEDIUM / LOW, CWE, confidence 1-10).
- Verify each candidate finding in a second read-only pass that tries to refute it: is the affected version the one actually resolved in the lockfile, is the vulnerable code reachable (govulncheck does this for Go; elsewhere grep imports/calls), is it a dev-only dependency. Confidence below 8 goes to "needs manual review", not to findings.
- Write the report with Report Template to
docs/security/YYYY-MM-DD-<scope>.mdinside the audited repository.
Severity
Use the advisory's own severity when it states a CVSS score, and record the CVSS version and
source (GitHub, NVD, CNA). Tool labels map as: critical → CRITICAL, high → HIGH,
moderate/medium → MEDIUM, low/info → LOW. These are inputs: the reported severity
follows the plugin's single scale in rules/security-rules.md, after reachability. For CVSS details and reachability rules see
the cve-research skill.
Fix options (listed, never run)
| Ecosystem | Option for the owner | What it changes |
|---|---|---|
| bun | bun audit fix (--dry-run to preview, --latest to cross majors) | bun.lock, node_modules, exact pins in package.json |
| npm | npm audit fix (--dry-run, --package-lock-only; --force allows SemVer-major) | package-lock.json, node_modules |
| pnpm | pnpm audit --fix (overrides) or --fix=update | pnpm-workspace.yaml or lockfile |
| Cargo | cargo audit fix (--dry-run); needs cargo install cargo-audit --features=fix | Cargo.toml |
| pip | pip-audit --fix (--dry-run to preview) | installed environment |
| Composer, Go, SwiftPM, Bundler | manual version bump in the manifest, then the package manager's update | manifest + lockfile |
References
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/fusengine/claude-plugins/dependency-audit">View dependency-audit on skillZs</a>