Command Palette

Search for a command to run...

Назад к скиллам
скилл № 33349

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от 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. a deny.toml rationale 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, and make test after each remediation. Forward package or feature selectors after -- when a focused gate is useful, then run the full workspace gates before completion. Use SCCACHE_DISABLE=1 only when sccache is unavailable or unhealthy and record that fact.
  • No unprompted tool installs. If cargo-audit/cargo-deny/cargo-outdated aren't installed, ask once before installing.
  • Don't loosen policy to make findings disappear. If deny.toml already 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 --hard or a broad git 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

  1. git status --short and git diff --stat; stop if ownership of existing edits is unclear.
  2. 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.
  3. Confirm Cargo.lock is present, tracked, and consistent. Run make check and inspect whether it changes the lockfile; do not hide lockfile drift.
  4. Run baseline gates once: make fmt, make check, make lint, make test. Pre-existing failures are reported separately.
  5. 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.
  6. 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить rust-dep-audit с