No slash command · from fuse-rust
Structures Cargo workspaces (member layout, workspace.dependencies, feature design, MSRV) and builds the canonical Rust CI gate: fmt, clippy with -D warnings, cargo deny, cargo audit, nextest, doc-tests, coverage. Covers supply-chain policy as code and auxiliary tooling like cargo hack and cargo machete.
Ships in fuse-rust. 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.
Read when SKILL.md points to them.
It also covers supply-chain policy as code — committing deny.toml, centralizing dependency versions in [workspace.dependencies] rather than pinning per member — and auxiliary tooling like cargo hack (feature-powerset checks) and cargo machete (unused-dependency pruning).
Out of scope: writing the tests themselves (unit/integration/proptest/criterion) belongs to rust-testing-quality; non-Rust CI pipelines are not covered.
Before ANY tooling/CI work, spawn 3 agents in parallel, one Agent call each with a name:
Cargo.toml, workspace layout, .github/workflowsAfter implementation, run fuse-ai-pilot:sniper for validation.
| Layer | Tool(s) | Purpose |
|---|---|---|
| Layout | Cargo workspaces | One Cargo.lock, one target/, shared metadata |
| Config | features, workspace.dependencies | Optional functionality, single source of versions |
| Format/lint | cargo fmt, cargo clippy | Style + correctness lints, warnings as errors |
| Supply chain | cargo deny, cargo audit | Licenses, bans, duplicate/yanked/vulnerable crates |
| Test | cargo nextest, cargo test --doc | Fast parallel run + doc-tests |
| Coverage/MSRV | cargo llvm-cov, cargo hack | Line coverage, minimum-supported-Rust matrix |
test --doc → coverage. Cheap, fast-failing checks run first.-D warnings on clippy in CI - cargo clippy --all-targets --all-features -- -D warnings. A warning must fail the build.deny.toml - supply-chain policy is code; it must be reviewed and versioned.workspace.dependencies - members inherit with dep.workspace = true; never pin the same crate twice.cargo test --doc is a separate step - nextest never runs doc-tests (see rust-testing-quality).my-workspace/
├── Cargo.toml # [workspace] members + workspace.dependencies + lints
├── Cargo.lock # single lockfile, committed
├── deny.toml # supply-chain policy, committed
├── crates/
│ ├── core/Cargo.toml # inherits version.workspace = true
│ └── cli/Cargo.toml
└── .github/workflows/ci.yml
→ See ci-workflow.md and deny-toml.md
| Topic | Reference | When to Consult |
|---|---|---|
| Workspaces & features | workspaces-features.md | Structuring members, inheriting deps, feature design, MSRV |
| CI gate | ci-gate.md | Ordering checks, cargo-deny/audit, coverage |
| Template | When to Use |
|---|---|
| ci-workflow.md | GitHub Actions pipeline |
| deny-toml.md | Supply-chain policy + workspace root |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo deny check
cargo audit
cargo nextest run --all-features
cargo test --doc
cargo llvm-cov --all-features --workspace
# root Cargo.toml
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
# member Cargo.toml
[dependencies]
serde = { workspace = true }
→ See deny-toml.md for the complete root manifest
fmt and clippy before the expensive test/coverage steps[workspace.dependencies] as the version source of truthcargo hack --feature-powerset check to catch broken feature combinationscargo machete to prune unused dependencies-D warnings)cargo deny because "audit already ran" — they check different thingscargo test --doc after nextestWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cargo-workspace, rust-ci, cargo-deny, cargo-nextest, supply-chain, code-quality
7 skills in this plugin
/rust-async-concurrencyUse when writing async Rust — spawning tasks, sharing state across tasks/threads, choosing channels vs mutexes, or hitting Send-bound errors with async traits. Not for HTTP service structure (rust-web-backend) or sync-only ownership (rust-core-language)./rust-core-languageUse when writing or reviewing idiomatic Rust — edition 2024 ownership/borrowing design, or fixing LLM pitfalls (clone tax, unwrap infestation, indexed loops). Not for error-type design (rust-error-handling) or SOLID layout (solid-rust)./rust-ecosystem-cratesUse when choosing crates for a Rust project — serialization, CLI, async runtime, web, database, HTTP client, error handling, observability. Not for API usage details of an already-chosen crate./rust-error-handlingUse when designing Rust error handling — thiserror vs anyhow, typed error enums,/rust-testing-qualityUse when writing, organizing, or running Rust tests — unit, integration, doc-tests, proptest, criterion benchmarks, or cargo-mutants. Not for CI pipeline wiring (rust-tooling-cicd)./rust-web-backendUse when building a REST/HTTP backend in Rust — axum routing, extractors, shared state, middleware, error responses, sqlx database access. Not for raw async/concurrency (rust-async-concurrency).npx claudepluginhub fusengine/claude-plugins --plugin fuse-rustOther plugins' skills for the same job