cgagentharness-verify-deps

Verify Cargo dependencies, security advisories, licenses, and locked versions across Rust crates.

Updated Sep 7, 2026
One-click install
npx skills add https://github.com/cgfixit/CG-agent-harness --skill cgagentharness-verify-deps-cgfixit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cgagentharness-verify-deps
Source: https://github.com/cgfixit/CG-agent-harness/tree/main/.claude/skills/cgagentharness-verify-deps
Command: npx skills add https://github.com/cgfixit/CG-agent-harness --skill cgagentharness-verify-deps-cgfixit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Rust projects with multiple crates and pinned toolchains risk supply-chain vulnerabilities, license violations, stale lockfiles, and MSRV-breaking updates when dependencies change. This Skill enforces a repeatable verification workflow so dependency changes are checked against security advisories, deny policies, and reproducible-build requirements before they ship. ## Core Features & Use Cases - Lockfile and toolchain verification: Confirms Cargo.lock files are committed, runs locked metadata/tree/build commands, and checks toolchain versions against rust-toolchain.toml for independent backend (Rust 1.88) and desktop (Rust 1.90) crates. - Security and license auditing: Runs cargo deny check in both crates to catch advisories, banned dependencies, unknown sources, and license violations, treating a missing cargo-deny as a failed check. - Safe update previews: Uses cargo update --dry-run --locked with incompatible-rust-versions fallback to preview semver-compatible updates without exceeding MSRV, then records commands, exit codes, and advisory freshness as evidence. - Use Case: After bumping a dependency in Cargo.toml, run this Skill to confirm both lockfiles stay reproducible, cargo deny passes, no new unsafe blocks lack safety arguments, and the pinned quality bar still passes before pushing the PR. ## Quick Start Verify the Cargo dependencies, advisories, licenses, and lockfiles for both the backend and desktop crates before I push this PR.

Frequently Asked Questions about cgagentharness-verify-deps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check Rust dependencies for security vulnerabilities?▼

Run cargo deny check in each crate to audit dependencies against the RustSec advisory database, license policies, and banned crate lists. Advisory, license, or unknown-source errors block acceptance, and a missing cargo-deny installation counts as a failed check rather than a pass.

How to preview Cargo dependency updates without breaking MSRV?▼

Use cargo update --dry-run --locked --verbose with the resolver.incompatible-rust-versions=fallback config to preview updates. A plain semver update can exceed the minimum supported Rust version, so the dry run shows what would change before you commit to it.

Should Cargo.lock be committed for Rust applications?▼

Yes, Cargo.lock should be tracked in version control for applications to guarantee reproducible builds. Verification runs locked metadata, tree, and build commands, and a lockfile is not considered stale merely because newer dependency releases exist upstream.

Can cargo deny enforce feature flags or unsafe code rules?▼

No, cargo deny checks advisories, licenses, bans, and sources but does not enforce arbitrary feature semantics, runtime network behavior, or unsafe code safety. New unsafe blocks and added Cargo features require manual inspection with their enclosing safety arguments.

Why does cargo deny fail with multiple dependency versions?▼

Multiple-version findings are warnings, not errors, when several versions of one crate appear in the dependency tree. Under the current policy these warnings are allowed but should be recorded, while advisory, license, ban, and unknown-source errors block acceptance.