Guides choosing the right Rust project shape—binary, library, workspace, proc macro, FFI, embedded—before implementation, including crate layout, edition/MSRV policy, 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.
Pick the smallest correct Rust project shape before code changes begin.
The practical decision is what kind of crate or workspace the user needs, where package boundaries should sit, whether MSRV or edition policy already exists, and which validation commands should prove the work.
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. Check one of those source-specific paths before making claims about Rust, Cargo, rustup, formatting, linting, testing, or package behavior:
cargo newTranslate any documentation rule into the concrete repository decision it changes.
Cargo.tomlCargo.lockrust-toolchain.toml or rust-toolchain.cargo/config.tomlrustfmt.toml or .rustfmt.tomlclippy.tomlsrc/main.rssrc/lib.rstests/examples/benches/crates/no_std targetcargo fmt --check for formatting-sensitive changescargo clippy --all-targets --all-features when lint coverage matterscargo test for behaviorcargo build for compile checks without testscargo package for publishable crate surfacesUse a single binary package for small command-line tools. Add a library target only when the CLI has reusable logic that tests or downstream callers should exercise directly.
Handoff:
rust:bootstrap-cargo-project for new project creationrust:testing-workflow for behavior coveragerust:tooling-style-workflow for formatting, linting, and toolchain alignmentUse a library package when the primary output is an API consumed by tests, examples, binaries, or downstream users. Keep public API surface small and document package validation if publishing is expected.
Handoff:
rust:testing-workflow for unit, integration, and doctest coveragerust:package-workflow when crate metadata or publication mattersUse a workspace only when more than one package needs shared dependency resolution, coordinated tests, or separate crate boundaries.
Good reasons include a library plus CLI package, a proc macro companion crate, integration-test support crates, or multiple crates that ship together. Avoid a workspace when a module split inside one crate would be enough.
Use a dedicated proc macro crate. Keep parsing and code generation tests explicit because failures are often easier to understand with fixture-style coverage.
no_stdTreat these as explicit constraint-driven shapes. Check existing target, build script, linker, feature, and CI configuration before changing layout.
Return:
Chosen shape: binary crate, library crate, CLI, service, workspace, proc macro, FFI, embedded or no_std, or maintenance pass.Project boundary: package, crate, workspace member, or module split.Compatibility policy: edition, MSRV, toolchain, and feature constraints.Validation path: exact format, lint, build, test, or package commands.Documentation updates: README, roadmap, package notes, or repo-local guidance.Next skill: the next Rust skill to use.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.//rust-skills:choose-project-shapefrom rust-skills
npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsOther plugins' skills for the same job