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…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
Out of scope: deep CVE history of one named package (use cve-research).
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
Установить dependency-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл dependency-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dependency-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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