/dd:rust:lintingfrom dd:rust
Configures Rust workspace lint rules, clippy enforcement, rustfmt formatting, and CI checks. Use when setting up Cargo.toml lints, clippy/rustfmt config, or adding Rust CI checks.
Ships in dd: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.
None: SKILL.md is the whole skill.
Configure once in root Cargo.toml, inherit everywhere. Each sub-crate adds [lints] workspace = true.
[workspace.lints.rust]
unsafe_code = "deny"
unused_must_use = "deny"
missing_docs = "warn"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
indexing_slicing = "deny"
cast_possible_truncation = "deny"
cast_sign_loss = "deny"
wildcard_imports = "deny"
needless_return = "deny"
semicolon_if_nothing_returned = "deny"
manual_flatten = "deny"
explicit_into_iter_loop = "deny"
cognitive_complexity = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
needless_collect = "warn"
[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
rustfmt.toml)edition = "2024"
max_width = 100
tab_spaces = 4
#[rustfmt::skip] only for generated codecargo fmt --all before committingimports_granularity or group_imports. Both are unstable — stable rustfmt ignores them and only prints Warning: can't set ... unstable features are only available in nightly channel, so they look configured while doing nothing. Import layout is a hand rule instead; see dd:rust:core.cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub napalmpapalam/skills --plugin rust6 skills in this plugin
/coreThe Rust conventions that apply to almost every edit — type design, error handling, ownership, async/tokio, module layout, comments and doc comments, code style, and naming. Use whenever writing, changing, or reviewing Rust code, designing types or error enums, dealing with borrows and lifetimes, writing async/tokio code, organizing modules or workspaces, choosing visibility, writing or shortening comments, doc comments, and module headers, refactoring functions to be shorter or flatter, naming anything, or when the user asks about idiomatic Rust. This is the default Rust skill — load it first; reach for serde, testing, linting, or performance on top of it when the task calls for them./performanceRust performance — iterators, release profiles, inlining, cache layout, bounds checks, allocation profiling. Use whenever optimizing Rust code, choosing between iterators and loops, configuring release profiles, adding inline hints, profiling allocations, or when the user asks about performance patterns, benchmarking, or hot-path optimization in Rust./reviewComprehensive Rust code review — runs cargo checks, loads all Rust convention skills, reviews changes, and generates a structured report. Use when reviewing finished Rust changes, closing a slice that touched Rust, preparing a PR for merge, or auditing Rust code quality — not while writing the code./serdeRust serde serialization — derive patterns, snake_case defaults, enum representations, attributes, zero-copy deserialization. Use whenever working with serde in Rust, adding Serialize/Deserialize derives, configuring JSON/YAML/TOML serialization, handling optional fields, choosing enum representations, or when the user asks about serde attributes, custom serializers, or data format conversion in Rust./testingRust testing — unit/integration layout, mocking with mockall, async test patterns, property testing, snapshot testing. Use whenever writing or reviewing Rust tests, setting up test infrastructure, choosing mocking strategies, organizing test modules, debugging test failures, or when the user asks about testing patterns, coverage, or test utilities in Rust projects.