/dd:rust:performancefrom dd:rust
Provides Rust performance optimization patterns: iterators vs loops, release profiles, inlining, cache layout, bounds checks, and allocation profiling with DHAT/heaptrack.
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.
.filter(), .map(), .take() — collect once at the end.find(), .any(), .count() instead of .collect().first() / .collect().is_empty()chain() in hot loops — branch prediction overhead on every .next()extend() / extend_from_slice() over repeated push()contains_key + insert#[inline] for small, frequently-called cross-crate functions#[inline(always)] only with profiling evidence#[inline(never)] for error handlers and cold pathsVec over linked structures — avoid pointer chasing#[must_use] on functions returning values that should not be ignoreddhat crate) for unit-test-style profiling or heaptrack for full-program analysiscargo bench with criterion for reliable microbenchmarks — statistical analysis, outlier detection[profile.release]
opt-level = 3
debug = false
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
overflow-checks = false
incremental = false
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
6 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./lintingRust workspace lint configuration, clippy enforcement, and formatting rules. Use whenever setting up or modifying Cargo.toml lint configuration, configuring clippy or rustfmt, adding CI checks for Rust, or when the user asks about lint rules, formatting settings, or workspace-level lint inheritance./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.npx claudepluginhub napalmpapalam/skills --plugin rust