Dependency Auditor skill for Claude

Audit project dependencies for CVEs and licenses and plan safe upgrades.

When Claude uses it

Use whenever the user asks if their packages are safe, before a release or major version bump, while chasing a CVE, or for a license review.

Dependency Auditor SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

Dependency Auditor

Skill Type: POWERFUL · Category: Engineering · Domain: Dependency Management & Security

Offline, deterministic dependency auditing across 8+ package ecosystems. The three scripts are pattern-matchers over manifests/lockfiles — they do not call live advisory APIs; pair their findings with npm audit / pip-audit / cargo audit for current CVE coverage.

Quick Start

# 1. Scan for vulnerabilities (built-in offline CVE pattern set; exit non-zero on high severity)
python3 scripts/dep_scanner.py /path/to/project --format json --fail-on-high -o scan.json

# 2. Check license compliance and conflicts
python3 scripts/license_checker.py /path/to/project --policy strict --format json -o licenses.json

# 3. Plan upgrades from the scanner's inventory
python3 scripts/upgrade_planner.py scan.json --risk-threshold medium --timeline 90 --format json -o plan.json

Consume the outputs: scan.json findings drive which packages to pin/patch now; licenses.json conflicts go to the user as a legal-risk list; plan.json orders upgrades by risk with rollback notes. --quick-scan skips transitive deps; --security-only limits the plan to security fixes.

Verification loop: after applying upgrades, re-run step 1 and assert 0 high-severity findings before closing the audit.

Supported Ecosystems

LanguageManifests parsed
JavaScript/Nodepackage.json, package-lock.json, yarn.lock
Pythonrequirements.txt, pyproject.toml, Pipfile.lock, poetry.lock
Gogo.mod, go.sum
RustCargo.toml, Cargo.lock
RubyGemfile, Gemfile.lock
Javapom.xml, gradle.lockfile
PHPcomposer.json, composer.lock
C#/.NETpackages.config, project.assets.json

License Classification

  • Permissive: MIT, Apache 2.0, BSD (2/3-clause), ISC
  • Copyleft (strong): GPL v2/v3, AGPL v3 — flags contamination risk in permissive projects
  • Copyleft (weak): LGPL v2.1/v3, MPL 2.0
  • Proprietary / Dual / Unknown — unknown licenses are surfaced for manual review

The checker analyzes license inheritance through dependency chains and emits conflict pairs with remediation suggestions.

Upgrade Risk Matrix

RiskUpdate typeHandling
LowPatch, security fixesApply immediately
MediumMinor with new featuresBatch into scheduled update
HighMajor version, API changesDedicated migration task + tests
CriticalKnown breaking changesPlanned migration with rollback procedure

Prioritization: security patches > bug fixes > feature updates > major rewrites; deprecated features get immediate attention.

Scripts (accurate capability claims)

  • scripts/dep_scanner.py — multi-format parser; built-in offline vulnerability pattern set (~16 CVE patterns — a smoke layer, not a replacement for live advisories); transitive resolution from lockfiles; JSON + text output.
  • scripts/license_checker.py — license detection from package metadata; compatibility matrix across 20+ license types; --policy permissive|strict; conflict detection with remediation.
  • scripts/upgrade_planner.py — semver-based breaking-change prediction; risk-ordered migration plan with testing checklist and timeline estimation.

Sample fixtures: test-project/ and test-inventory.json in this folder; expected shapes in expected_outputs/.

CI Integration

# Security gate in CI
python3 scripts/dep_scanner.py . --format json --fail-on-high
python3 scripts/license_checker.py . --policy strict --format json

Best Practices

  1. Prioritize security: address high/critical findings immediately; license compliance before functionality.
  2. Gradual updates: incremental upgrades with thorough testing; feature flags for risky bumps.
  3. Cadence: security scans per commit; license audits monthly; full audit quarterly.
  4. False positives: whitelist with documentation; contact maintainers for license ambiguity.

See README.md for detailed usage and references/ for the vulnerability/license knowledge bases.

More in this skill

Load these only when the task needs them.

How to install Dependency Auditor

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/skills/dependency-auditor#main ~/.claude/skills/dependency-auditor

Codex

npx degit alirezarezvani/claude-skills/engineering/skills/dependency-auditor#main ~/.codex/skills/dependency-auditor

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Dependency Auditor skill do?

Audit project dependencies for CVEs and licenses and plan safe upgrades. Use whenever the user asks if their packages are safe, before a release or major version bump, while chasing a CVE, or for a license review.

+How do I install Dependency Auditor in Claude Code?

Copy the skill folder into ~/.claude/skills/dependency-auditor, for example with "npx degit alirezarezvani/claude-skills/engineering/skills/dependency-auditor#main ~/.claude/skills/dependency-auditor". Claude Code loads it automatically and uses it when a task matches.

+Does Dependency Auditor work with ChatGPT or Codex?

Yes. Dependency Auditor uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/dependency-auditor. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Dependency Auditor free?

Dependency Auditor is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related security skills

  1. Security Review

    Official

    Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit…

    getsentry/skills★ 1.2k
  2. Audit

    a user-authored audit skill

    pbakaus/impeccable★ 112k
  3. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  4. Fda Qsr Audit Prep

    Use for /compliance-os:fda-qsr-audit-prep, or before an FDA inspection, QMSR internal audit or Form 483 response.

    alirezarezvani/claude-skills★ 30k
  5. Feature Flags Architect

    Use before adding, rolling out or retiring a feature flag or kill switch, or when flag debt piles up.

    alirezarezvani/claude-skills★ 30k
  6. Incident Response

    Handle a suspected security breach: triage, SEV1-SEV4 severity, escalation and forensic evidence, per NIST SP 800-61.

    alirezarezvani/claude-skills★ 30k
  7. Isms Audit Expert

    Use for ISO 27001 audit work: internal or surveillance audits, Annex A control evidence, Statement of Applicability, nonconformities, Stage…

    alirezarezvani/claude-skills★ 30k
  8. Qms Audit Expert

    Use for ISO 13485 internal audits: planning the program, running an audit, classifying findings or preparing for an external audit.

    alirezarezvani/claude-skills★ 30k
  9. Rfp Responder

    Use when an RFP, RFI, RFQ or security or vendor questionnaire arrives.

    alirezarezvani/claude-skills★ 30k

See all security skills →

More skills from alirezarezvani

  1. Design Qa

    Use when a UI screen, page or component is about to be called done, handed off or shipped, or when generated UI looks generic or…

    alirezarezvani/claude-skills★ 30k
  2. Design System

    Use when setting up brand settings before the first markdown-to-HTML conversion, or changing them.

    alirezarezvani/claude-skills★ 30k
  3. Docker Development

    Use for any Dockerfile or docker-compose file to write, optimize or review, before editing it.

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.