Skip to content
FunCoding

dependency-audit

Audit project dependencies for vulnerabilities, license issues, and bloat. Use when asked to check dependencies, audit packages, find vulnerable libraries, or reduce bundle size.

Star
836
Category
Security
Last commit
Jul 17, 2026

ch09_agent_skills/skills/dependency-audit/SKILL.md

View on GitHub

Process

  1. Identify the package manager. Look for:

    • requirements.txt / pyproject.toml / Pipfile → Python (pip/uv)
    • package.json → Node.js (npm/yarn/pnpm)
    • go.mod → Go
    • Cargo.toml → Rust
  2. Run vulnerability scan.

    • Python: pip audit or uvx pip-audit
    • Node.js: npm audit or npx better-npm-audit audit
    • Go: govulncheck ./...
  3. Check for outdated packages.

    • Python: pip list --outdated
    • Node.js: npm outdated
  4. License audit. Check that no dependency uses a copyleft license (GPL, AGPL) in a proprietary project:

    • Python: uvx pip-licenses --order=license
    • Node.js: npx license-checker --summary
  5. Identify unused dependencies.

    • Python: Check each import with grep -r "import <package>" src/
    • Node.js: npx depcheck
  6. Write the report as a markdown table with columns: Package, Current Version, Latest Version, Vulnerabilities, License, Status (keep/update/remove).

Rationalizations

ExcuseRebuttal
"We'll update dependencies later"Known vulnerabilities are actively exploited. Flag them now.
"It's a dev dependency, it doesn't matter"Dev dependencies run in CI and on developer machines — they are attack surface.
"Removing unused deps might break something"If nothing imports it, nothing uses it. Remove it.

Verification

  • Vulnerability scan was executed (not estimated)
  • Every critical/high vulnerability has a recommended action (update version or replace package)
  • License compatibility was checked against the project's license

Similar Skills

agent-security-hardening

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

Featured

ponytail-audit

Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.

DIDietrichGebert/ponytail203k4,904 new stars in the last 7 days

gstack

GAgarrytan/gstack143k598 new stars in the last 7 days

Featured

security-and-hardening

Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

doubt-driven-development

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

ruview-rvagent

RUruvnet/RuView106k596 new stars in the last 7 days