plugins/rust-expert/skills/rust-tooling-cicd/SKILL.md
Use when structuring a Cargo workspace, wiring features, or building a Rust CI pipeline — fmt, clippy, cargo-deny, cargo-audit, nextest, doc-tests, coverage, MSRV. Covers the canonical CI gate order and supply-chain checks. Do NOT use for writing the tests themselves (use rust-testing-quality) or non-Rust CI.
npx skillsauth add fusengine/agents rust-tooling-cicdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY tooling/CI work, use TeamCreate to spawn 3 agents:
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 nextesttesting
Copy self-audit and ban-lists — filler verbs/hype adjectives, slop placeholder names, fake-precise numbers, Title Case headlines, humor in error copy ('Oops!'), em-dash crutch, one copy register per page.
development
Logged-in web apps — dashboards, auth flows, settings, onboarding, data tables, command palettes, modals, toasts. Register `product`: density and glance-speed over marketing polish, no hero/CTA-tricks, every data surface covers empty/loading/error explicitly, tables and dataviz follow preattentive-processing rules.
development
Marketing sites, landing pages, campaign pages — register `brand` (design IS the product). Structure comes from the register's POV + a macrostructure pick, never from copying an inspiration site's section flow. Hero discipline, deviated section order, asymmetric grids, and a silhouette lookalike-test gate before ship.
development
Token-strategy core — OKLCH color rules, neutral tinting, accent-commitment levels, type scale, 8pt spacing grid, touch targets, and the canonical output format of design-system.md (the file the harness gates on). This is routing step 1 of design-method/SKILL.md — read it before design-web/design-webapp/design-ios/design-android, before picking or auditing a single color/type/spacing value.