Skip to content
Back to skills

Cargo Project Verification

ASecurity

Verify Rust work in a single crate or Cargo workspace before handoff, and keep manifests, lockfile, features and public API consistent. Use before declaring Rust work done and when editing Cargo.toml, Cargo.lock, features or public items.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 10, 2026
developmentrustgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add Andersseen/agentyx --skill cargo-project-verification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cargo Project Verification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cargo Project Verification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andersseen-cargo-project-verification/badge)](https://www.skillsdirectory.com/skills/andersseen-cargo-project-verification)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cargo-project-verification
description: Verify Rust work in a single crate or Cargo workspace before handoff, and keep manifests, lockfile, features and public API consistent. Use before declaring Rust work done and when editing Cargo.toml, Cargo.lock, features or public items.
---

# Cargo project verification

Complements the generic `verification` Skill: that covers the discipline of proving a change; this
covers Cargo specifics.

## Find the real gate

Read the repository's CI workflows, Makefile/justfile and contributor docs first. Repository policy
wins over any default below, including flags, feature sets and toolchain.

Typical baseline (drop `--workspace` for a single crate, adjust features to what the repo supports):

```sh
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --locked
cargo build --workspace --locked
```

- `--locked` assumes `Cargo.lock` is committed. Libraries sometimes ignore it; do not invent or
  commit one against repository convention. If a lockfile is tracked and changed, say why.
- `--all-features` is not valid everywhere (mutually exclusive or platform-specific features). Use
  the combinations CI uses.
- Fix clippy findings rather than adding `#[allow]`; if an allow is justified, scope it to the item
  with a reason.

## Manifests

- In a workspace, shared versions and metadata belong in `[workspace.package]` and
  `[workspace.dependencies]`; members inherit with `.workspace = true`. Do not re-pin them.
- Add a dependency only with a reason; check `default-features` and the features it enables.
- `rust-version` is a contract: avoid newer APIs and do not raise it casually.
- Features should be additive. After adding or changing one, build with `--no-default-features`
  and the repository's full feature set.

## Public API and release

- Public changes (items, CLI flags, output formats, schemas) need tests and docs. Run
  `cargo doc --no-deps` when docs link to changed items, and call the change out in the summary.
- For publishable crates, `cargo package --list` or `cargo publish --dry-run` shows what ships. Never
  edit release versions by hand if release tooling owns them.

Report the exact commands run and their outcome; name any you could not run and why.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.