dependency-auditor
БесплатноЗапускает вложенные скриптыНе проверенScan project dependencies for vulnerabilities, license issues, and upgrade opportunities across Python, Node.js, Go, and Rust. Use when auditing dependencies…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Dependency Auditor
Audit a project's dependencies for known vulnerabilities, license risk and upgrade work, and turn the result into a prioritised, phased plan. The real vulnerability data comes from the ecosystem's own auditor; the bundled scripts parse manifests offline, classify licenses from an inventory, and sequence upgrades.
When to Use
- Auditing a project's dependencies for vulnerabilities or supply-chain risk.
- Checking license compliance before distribution or M&A due diligence.
- Planning safe, phased dependency upgrades.
- Adding a dependency gate to CI/CD, or cleaning up unused dependencies.
Clarify First
Before running the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Project & ecosystem: the project path and which manifests/lockfiles exist.
- Audit focus: vulnerabilities, license compliance, or upgrade planning.
- Policy & gate: the project's license, how strict the license policy is, and which severity fails the build.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Workflow
- Get real vulnerability data first. The bundled CVE table is a small offline sample (about eight well-known advisories, newest from 2024), so a clean
dep_scanner.pyrun proves nothing. Run the ecosystem tool and treat its output as the source of truth:npm audit --json/pnpm audit,pip-audit -f json,govulncheck ./...,cargo audit,bundle audit, orosv-scanner -r .for any mix. If none can run (no network, no install), say so in the report and label the result "offline heuristic only". - Inventory and offline scan.
dep_scanner.pyparses manifests and lockfiles (package.json, package-lock.json, yarn.lock, requirements.txt, pyproject.toml, Pipfile.lock, poetry.lock, go.mod, Cargo.toml/lock, Gemfile/lock) and lists direct and transitive dependencies. Use it for the inventory and as a cross-check. - Licenses. Manifests do not carry each dependency's license, so build an inventory (
npm view <pkg> license,pip show,go-licenses report, or a lockfile-aware tool) and pass it with--inventory. Dependencies with no license data are listed as unresolved, not as conflicts. - Upgrade plan. Put each dependency's current
versionand registrylatestin the inventory;upgrade_planner.pyclassifies patch/minor/major, flags known breaking changes and security fixes, and phases the work. Without alatestfield it falls back to a tiny built-in sample table and skips packages it does not know. - Report. Lead with exploitable, reachable high-severity issues and license conflicts that block distribution; then the phased upgrades. Say which data was live and which was offline.
# Offline demo from the skill folder
python3 scripts/dep_scanner.py assets/sample_package.json # 3 sample advisories (exit 0)
python3 scripts/dep_scanner.py assets/sample_requirements.txt --fail-on-high # 2 HIGH -> exit 1
python3 scripts/license_checker.py assets/sample_package.json --inventory assets/sample_inventory.json --warn-conflicts # GPL-3.0 in an MIT project -> exit 1
python3 scripts/upgrade_planner.py assets/sample_inventory.json --timeline 60 # phased plan, 2 major upgrades
Done means: every HIGH/CRITICAL advisory from the live tool has a fix version or an accepted-risk note, no unresolved or conflicting license blocks distribution, and the upgrade phases have owners.
Tools
| Tool | What it does | Key flags | Exit codes |
|---|---|---|---|
dep_scanner.py <dir-or-manifest> |
Parse manifests/lockfiles; match against the offline sample CVE table | --format json, --fail-on-high, --output |
0 ok, 1 HIGH found with --fail-on-high, 2 path missing or no manifest found |
license_checker.py <dir-or-package.json> |
Classify licenses (permissive / weak / strong copyleft / proprietary / unknown), detect conflicts with the project license, score compliance | --inventory, --project-license, --policy strict, --warn-conflicts |
0 ok, 1 strict score < 80 or conflicts with --warn-conflicts, 2 bad path/inventory |
upgrade_planner.py <inventory.json> |
Semver gap, risk, security-fix and breaking-change notes, phased plan | --timeline, --risk-threshold, --security-only, --format json |
0 ok, 2 bad inventory |
Inventory format (shared by --inventory and the planner): a list, or {"dependencies": [...]}, of objects with name and version, plus optional latest, license (SPDX id), ecosystem, direct. See assets/sample_inventory.json.
Anti-Patterns
Mistake: Reporting "no vulnerabilities" from the offline scanner. Why it happens: The script prints a tidy report either way. Instead: Run the
Установить dependency-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dependency-auditor?
Scan project dependencies for vulnerabilities, license issues, and upgrade opportunities across Python, Node.js, Go, and Rust. Use when auditing dependencies, checking licenses, planning upgrades, or assessing supply chain security.
Как установить скилл dependency-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dependency-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic