Aligns Rust formatting, linting, toolchain, and CI behavior with repository policy. Use when configuring or fixing Rust style, lint, toolchain, or CI workflows.
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.
Keep Rust formatting, linting, toolchain, and CI behavior explicit and consistent with the repository.
The practical goal is to avoid accidental formatter churn, surprise MSRV changes, lint strictness jumps, or CI commands that do not match local validation.
Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:
cargo fmtcargo clippyTreat rustfmt and Clippy as toolchain components. If they are missing locally, report the missing component and the likely install command instead of guessing at style by hand.
Before changing tooling, inspect:
Cargo.tomlCargo.lockrust-toolchain.toml or rust-toolchainrustfmt.toml or .rustfmt.tomlclippy.toml.cargo/config.toml.github/workflows/Use Cargo's formatter command by default:
cargo fmt --check
Apply formatting only when the user asked for implementation or formatting work:
cargo fmt
For Rust 2024 projects, check whether the repo needs an explicit rustfmt.toml with style_edition = "2024" so editor format-on-save and CI use the same style behavior. Do not add this file to older-edition projects without a conscious style decision.
Use Clippy when lint behavior matters:
cargo clippy --all-targets --all-features
Use warnings-as-errors only when the repo already expects it or the task is explicitly tightening CI:
cargo clippy --all-targets --all-features -- -D warnings
Do not silence lints broadly. Prefer a local code fix, then a narrow allow with a concrete reason when the lint is intentionally wrong for that code.
Use rust-toolchain.toml when contributors or CI need a pinned channel or components:
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]
Preserve existing MSRV. If the task needs a newer compiler, make that compatibility change explicit in docs, CI, and release notes.
Check local toolchain state only when implementation needs it:
rustc --version
cargo --version
rustup show
Local and CI validation should name the same meaningful commands. A normal Rust CI baseline is:
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
Narrow this for small crates or widen it for published libraries with feature matrices, MSRV checks, or platform-specific behavior.
Return:
Tooling state: formatter, linter, toolchain, MSRV, and CI policy observed.Commands: exact commands run or recommended.Changes: files or settings changed, if any.Validation: pass, fail, or skipped with the concrete reason.Compatibility impact: whether edition, style edition, MSRV, lint strictness, or CI behavior changed.rust-toolchain.toml without a reproducibility or CI reason.cargo fmt is available.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:tooling-style-workflowfrom rust-skills
npx claudepluginhub gaelic-ghost/socket --plugin rust-skillsOther plugins' skills for the same job