Plans, runs, and triages Rust tests with Cargo: unit, integration, doc, examples, feature matrices, workspace selection, and failure explanation.
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.
Run the narrowest useful Rust tests, explain failures clearly, and keep test layout aligned with Cargo's model.
Cargo test behavior matters because one command can compile and run unit tests, integration tests, documentation tests, and examples. The skill should make that scope explicit instead of treating cargo test as a black box.
Use repo-local Rust files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Rust docsets, and then official Rust documentation when Dash/local coverage is missing or stale:
Translate test behavior into the concrete command and failure mode in the repository.
tests/ when they should use the crate like an external caller.examples/ when sample binaries should compile as part of validation.Start narrow, then widen:
cargo test
Target one package in a workspace:
cargo test -p package-name
Run all workspace tests:
cargo test --workspace
Run all targets and features when feature interactions matter:
cargo test --all-targets --all-features
Filter by test name:
cargo test some_test_name
Show test output:
cargo test some_test_name -- --nocapture
Run documentation tests only when public docs are the focus:
cargo test --doc
Classify failures by the first concrete break:
Read the first relevant compiler or test error before changing code. Rust output is usually precise; preserve that precision in the user-facing explanation.
Return:
Test scope: package, workspace, target, feature, or doc-test boundary.Commands: exact commands run or recommended.Result: pass, fail, or skipped with the concrete reason.Failure mode: compile, unit, integration, doctest, feature, or workspace issue.Fix direction: the smallest code, test, dependency, or docs change that addresses the failure.What SKILL.md sets; muted values are Claude Code's defaults
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./package-workflowPrepare and validate Rust Cargo package surfaces, including Cargo.toml metadata, rust-version and MSRV policy, license/readme/repository fields, include and exclude rules, path dependency restrictions, Cargo.lock policy, cargo package dry runs, and publish versus no-publish decisions. Use for publishable crates, package metadata cleanup, crates.io readiness, or release-adjacent Rust package checks./rust-skills:testing-workflowfrom rust-skills
npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsOther plugins' skills for the same job