Diagnoses and fixes Rust compile errors, borrow-checker issues, runtime panics, and logic bugs with clear explanations and idiomatic solutions.
From rustnpx claudepluginhub utakatakyosui/c2lab --plugin rustThis skill uses the workspace's default tool permissions.
Searches, 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.
Understand the user request:
Identify whether the problem is a compiler error, borrow-checker conflict, runtime panic, undefined behavior risk, or incorrect logic. Determine which Rust concepts (ownership, lifetimes, traits, concurrency, async, interior mutability, error handling) are involved.
Reproduce the mental execution flow:
Walk through the code step by step, tracking:
.await suspension pointsSend / Sync requirementsIdentify the root cause with precision:
Provide a detailed explanation grounded in Rust’s guarantees:
unwrap, index out of bounds, threading, channel behavior, etc.)Provide an idiomatic and minimal fix:
Offer a correction that adheres to Rust best practices, such as:
&mut conflicts with scoped blocks or .split_at_mut()Option or Result instead of panicking APIs? for clean error propagationArc<Mutex<T>> or Arc<RwLock<T>> for shared mutable state across threadsCow<'a, T> for flexible ownershipKeep the fix minimal but idiomatic, avoiding unnecessary complexity.
Suggest robust alternatives when relevant:
If the user’s current approach is fragile or overly complex, gently recommend stronger patterns:
Recommend preventive strategies:
Provide practical guidance for long-term improvement, including:
#[derive(Debug)] for easier inspectionclone() callscargo clippy) and rustfmtmiri, and cargo-udeps to maintain healthy codeMaintain clarity and educational value:
Every explanation should not only fix the bug but help the user understand how Rust’s model leads to safer and more predictable code.