Bootstraps a reproducible Rust Cargo project with package/workspace shape, edition/MSRV checks, toolchain handling, test layout, and validation commands.
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.
Create or guide a reproducible Rust project scaffold without hiding important Cargo, edition, MSRV, or workspace decisions.
The user should leave with a clear package or workspace layout and validation commands that prove the scaffold works.
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:
Cargo currently defaults new packages to the current Rust edition documented by Cargo. Do not hard-code an older edition in new scaffolds unless the repository compatibility policy calls for it.
If the user has not selected a package or workspace shape, use rust:choose-project-shape first.
Cargo.tomlCargo.lockrust-toolchain.toml or rust-toolchain.cargo/config.tomlcargo new for a new package directorycargo init for an existing directory--bin for executable packages--lib for library packages--vcs none when inside an existing repositoryrust-toolchain.toml only when reproducibility or contributor setup needs ittests/ for integration tests that use the crate externallyBinary package:
cargo new my-tool --bin
cd my-tool
cargo test
Library package:
cargo new my-library --lib
cd my-library
cargo test
Package inside an existing Git repository:
cargo new crates/my-crate --lib --vcs none
cargo test -p my-crate
Existing directory:
cargo init --lib --vcs none
cargo test
Minimal workspace root:
[workspace]
resolver = "3"
members = [
"crates/my-crate",
]
Check the resolver against the repository's edition and Cargo policy before adding it.
Prefer the smallest validation that proves the scaffold:
cargo fmt --check
cargo clippy --all-targets --all-features
cargo test
Use cargo build when tests are intentionally absent. Use cargo package only for publishable crate surfaces.
Return:
Created or planned layout: package, crate targets, workspace members, tests, and examples.Cargo commands: exact commands run or recommended.Compatibility behavior: edition, MSRV, toolchain, and feature constraints.Validation: format, lint, build, test, or package results.Next skill: implementation, testing, or tooling handoff.rust-toolchain.toml or pin nightly without a concrete reproducibility reason.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/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./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:bootstrap-cargo-projectfrom rust-skills
npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsOther plugins' skills for the same job