Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
From rustnpx claudepluginhub utakatakyosui/c2lab --plugin rustThis skill uses the workspace's default tool permissions.
examples.mdreference.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides slash command development for Claude Code: structure, YAML frontmatter, dynamic arguments, bash execution, user interactions, organization, and best practices.
Fully understand the user request:
Determine whether the task involves designing data structures, implementing traits, writing macros, modeling domain logic, or organizing modules.
Identify key constraints such as mutability needs, ownership flow, async context, interior mutability, or concurrency boundaries.
Plan data structures with precision:
struct, enum, or newtype based on domain needs.&str vs String, slices vs vectors, Arc<T> when sharing, or Cow<'a, T> for flexible ownership.NonZeroU32, Duration, custom enums).enum for state machines instead of boolean flags or loosely related fields.Write idiomatic Rust implementations:
impl blocks immediately below the struct/enum they modify.new, with_capacity, builders) where appropriate.Display, Debug, From, Into, TryFrom) to simplify conversions.Result<T, E> instead of panicking.Apply rigorous documentation and code-style best practices:
/// doc comments for structs, enums, fields, and methods.//! for module-level documentation when explaining design or architecture.cargo fmt and cargo clippy --all-targets --all-features to maintain consistency.Use macros effectively but responsibly:
derive macros (Debug, Clone, Serialize, Deserialize, etc.) to reduce boilerplate.Optimize build speed when relevant:
.cargo/config.toml to use the mold linker when appropriate.sccache to cache compiled artifacts during development.cargo check during rapid iteration over cargo build.cargo profile settings for tuned dev/release defaults.Encourage maintainable module and project structure:
pub(crate) instead of pub when possible; expose only what needs exposing.Provide explanations and alternatives:
For every code design, explain why a certain pattern is chosen and propose alternatives when relevant, such as:
Arc<T> vs message passing channelsMaintain clarity, safety, and idiomatic style at all times:
Prioritize predictable ownership flow, correct lifetimes, and ergonomic APIs that reflect common Rust patterns.