Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Writes idiomatic Rust with proper data modeling, traits, and macros. Activates when you request Rust code, struct/enum design, trait implementations, or build optimizations.
/plugin marketplace add UtakataKyosui/UtakataClaudeCodePluginMarketPlace/plugin install rust-development-plugin@utakata-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples.mdreference.mdFully 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.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.