From rust-skills
Bootstrap 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rust-skills:bootstrap-cargo-projectThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create or guide a reproducible Rust project scaffold without hiding important Cargo, edition, MSRV, or workspace decisions.
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.npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.