跳到正文
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
835
分类
安全
最近提交
2026年7月17日

ch09_agent_skills/skills/dependency-audit/SKILL.md

在 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

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star