Validates Rust Cargo package metadata, dependencies, and publish readiness. Checks Cargo.toml fields, MSRV policy, path/git dependency restrictions, include/exclude rules, and dry-run packaging for crates.io publishing.
Ships in rust-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prepare a Cargo package surface so it is honest, fetchable, and ready for the user's intended distribution path.
The practical goal is to catch package metadata drift, local-only dependencies, missing compatibility policy, and accidental publishing before a release or publication step.
Use repo-local Cargo files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Cargo docsets, and then official Cargo documentation when Dash/local coverage is missing or stale:
cargo packagecargo publishTranslate packaging rules into the exact package field, dependency, command, or release decision they affect.
Inspect:
Cargo.tomlCargo.lockCargo.tomlREADME.mdLICENSE or LICENSE-*.cargo/config.tomlFor publishable crates, check the relevant [package] fields:
nameversioneditionrust-versiondescriptionlicense or license-filerepositoryhomepage or documentation when appropriatereadmekeywordscategoriesinclude or exclude when package contents need curationpublish when publication should be restricted or disabledDo not invent metadata. If a package is not meant to publish, prefer an explicit publish = false or equivalent repo policy instead of polishing crates.io metadata for a private crate.
Cargo package validation is especially useful because publishable packages cannot rely on local-only dependency paths unless version metadata makes the registry dependency usable.
Check for:
Do not commit machine-local dependency paths in public or shared packages.
Preserve the repo's existing lockfile policy.
General guidance:
Cargo.lock for binaries, applications, examples that must reproduce, and most workspaces with executable surfacesCargo.lock, but follow existing repo policyCargo.lock as package cleanup unless dependency resolution is part of the taskUse dry-run package validation before publishing or release-adjacent package changes:
cargo package --dry-run
Package one workspace member:
cargo package -p package-name --dry-run
Validate publish-facing behavior with selected features when needed:
cargo package -p package-name --all-features --dry-run
Run normal validation before or alongside package checks:
cargo test -p package-name
cargo clippy -p package-name --all-targets --all-features
cargo fmt --check
Do not run cargo publish unless the user explicitly asks to publish and the repository release process is ready.
Return:
Package intent: publishable crate, private crate, binary distribution, workspace member, or no-publish package.Manifest state: metadata, license, repository, readme, rust-version, publish, include, and exclude findings.Dependency state: registry, git, path, optional, dev, and workspace dependency concerns.Lockfile policy: observed policy and whether it changed.Validation: exact package, test, lint, and format commands run or skipped.Release impact: whether publishing, SemVer, MSRV, or downstream compatibility is affected.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/bootstrap-cargo-projectBootstrap or guide a reproducible Rust Cargo project with explicit package or workspace shape, cargo new or cargo init usage, edition and MSRV checks, rust-toolchain handling, test layout, and initial validation commands. Use after the Rust project shape is settled or when adding a new Cargo package to an existing repository./build-cli-projectImplement Rust command-line tools after the project shape is chosen, including argument parsing boundaries, command dispatch, stdin/stdout/stderr behavior, exit codes, configuration input, error messages, tests, and Cargo validation. Use for Rust CLI feature work, CLI refactors, or new binary crate implementation./build-library-crateImplement reusable Rust library crates after the project shape is chosen, including public API design, module visibility, error types, feature flags, documentation examples, unit tests, integration tests, doctests, and Cargo validation. Use for Rust library implementation, API refactors, crate-boundary cleanup, or package-facing behavior./choose-project-shapeChoose the right Rust project shape before implementation, including crate type, Cargo package or workspace layout, edition and MSRV checks, validation commands, package boundaries, and documentation updates. Use when a user wants to start, restructure, or extend a Rust project and the binary, library, workspace, CLI, service, proc macro, FFI, embedded, no_std, or maintenance shape is not already settled./ci-workflowDesign, inspect, and align Rust CI workflows with local Cargo validation, including cargo fmt, cargo clippy, cargo test, cargo build, cargo doc, cargo package, workspace package selection, feature matrices, MSRV checks, rustup toolchain setup, Clippy warnings-as-errors policy, caches, artifacts, and GitHub Actions-style automation./testing-workflowPlan, run, and triage Rust tests with Cargo, including unit tests, integration tests, documentation tests, examples compiled by cargo test, targeted reruns, feature matrices, workspace package selection, and failure explanation. Use when adding tests, running Rust validation, or diagnosing cargo test failures./rust-skills:package-workflowfrom rust-skills
npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsOther plugins' skills for the same job