rust-dep-audit
Audit the Elph Rust workspace's dependencies for security advisories (RUSTSEC via cargo-audit), license compliance and ban/source policy (cargo-deny)…
от riipandi★ 34 звезды на GitHub
Установить rust-dep-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rust Dependency Audit
Language
Split by destination:
- In-chat responses, plans, summaries — follow the language the user is currently using (Indonesian, English, etc). Crate names, versions, advisory IDs, license identifiers stay literal English.
- Any documentation edits written to files (
docs/**, permanent comments, e.g. adeny.tomlrationale comment) — always English, regardless of chat language.
Purpose
Find and, when explicitly requested, remediate supply-chain risk in the resolved
dependency graph: known vulnerabilities, unmaintained or yanked packages,
disallowed licenses/sources, suspicious overrides, and dangerously stale crates.
Separate facts from policy decisions and never make a dependency change merely to
silence a report. This is security/compliance/staleness work only — not
duplicate-version or unused-dependency hygiene (cargo-workspace-hygiene) and
not code-level refactoring.
Elph workspace baseline
Verify the current workspace before auditing. Elph uses resolver 2, edition 2024,
Rust 1.97 at workspace level, and publishable crates with their own MSRV
(elph-ai currently 1.88 and elph-agent currently 1.89). The normal graph
includes elph, elph-agent, elph-ai, elph-tui, floppy, and rendown.
The root has a large [workspace.dependencies] table and a local
[patch.crates-io] override for iocraft in vendor/iocraft.
The workspace also uses the pinned turso crate (=0.8.0-pre.7) for local
storage. Record this and all other exact pins, path dependencies, git sources,
patches, target-specific dependencies, optional features, and publish metadata
before interpreting a finding.
Scope
- Default scope: the whole workspace, since advisories and license terms apply to the resolved dependency graph as a whole, not per-crate.
- If the user names a specific crate, still resolve against the full workspace
Cargo.lock— a vulnerable transitive dep pulled in by one member affects the shared build.
Safety Rules
- Audit and remediation are separate modes. An audit request produces a report and plan only. Apply even a patch/minor bump only when the user asks to remediate or approves the proposed item.
- Patch/minor version bumps to fix an advisory are usually lower-risk, but semver compatibility does not guarantee behavior compatibility. Re-check the advisory's affected range and the crate's release notes.
- Major version bumps are never silent. Flag them with what changed (check the crate's CHANGELOG/release notes) and let the user decide — a major bump can be a bigger change than the audit alone justifies fixing right now.
- No dependency removed or replaced without confirmation, even if it has an unfixable advisory or disallowed license — removing/swapping a dep can ripple through calling code; propose the replacement, don't silently swap it in.
- Use repository wrappers for gates:
make fmt,make check,make lint, andmake testafter each remediation. Forward package or feature selectors after--when a focused gate is useful, then run the full workspace gates before completion. UseSCCACHE_DISABLE=1only when sccache is unavailable or unhealthy and record that fact. - No unprompted tool installs. If
cargo-audit/cargo-deny/cargo-outdatedaren't installed, ask once before installing. - Don't loosen policy to make findings disappear. If
deny.tomlalready bans a license/crate, don't quietly widen the allow-list to silence a finding — surface the conflict to the user instead. - One remediation at a time, gate-verified, same discipline as the other Rust skills in this set.
- Do not destroy parallel work. Never use
git reset --hardor a broadgit checkout --to undo a failed update. Preserve unrelated edits and use targeted patches or ask when ownership is unclear. - Git is opt-in: do not commit or push unless the user explicitly requests it.
Workflow
Phase 1 — Baseline
git status --shortandgit diff --stat; stop if ownership of existing edits is unclear.- Confirm workspace membership and package metadata with
cargo metadata --no-deps --format-version 1. Record edition, MSRV, publish flags, package licenses, target dependencies, path/git sources, patches, and enabled default features. - Confirm
Cargo.lockis present, tracked, and consistent. Runmake checkand inspect whether it changes the lockfile; do not hide lockfile drift. - Run baseline gates once:
make fmt,make check,make lint,make test. Pre-existing failures are reported separately. - Check tools without installing them:
command -v cargo-audit cargo-deny cargo-outdated. If a tool is unavailable, report the missing evidence and use a narrower fallback only where it is meaningful. - Check for
deny.toml,.cargo/config.toml, CI audit jobs, and advisory ignore lists. Never assume an absent policy file means every license is acc
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rust-dep-audit?
Audit the Elph Rust workspace's dependencies for security advisories (RUSTSEC via cargo-audit), license compliance and ban/source policy (cargo-deny), staleness (cargo-outdated), yanked packages, and risky git/path/patch sources. Proposes a remediation plan classified by risk, applies changes only when requested, and verifies the repository's make check/lint/test gates. Use when user asks to audit dependencies for vulnerabilities/CVEs, check license compliance, find outdated crates, or run a supply-chain/security pass on Cargo dependencies. Does not cover duplicate-version or unused-dependency hygiene — see cargo-workspace-hygiene for that.
Как установить скилл rust-dep-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rust-dep-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…