rustWrite idiomatic Rust avoiding ownership pitfalls, lifetime confusion, and common borrow checker battles.
Install via ClawdBot CLI:
clawdbot install ivangdavila/rustRequires:
| Topic | File | Key Trap |
|-------|------|----------|
| Ownership & Borrowing | ownership-borrowing.md | Move semantics catch everyone |
| Strings & Types | types-strings.md | String vs &str, UTF-8 indexing |
| Errors & Iteration | errors-iteration.md | unwrap() in production, lazy iterators |
| Concurrency & Memory | concurrency-memory.md | Rc not Send, RefCell panics |
| Advanced Traps | advanced-traps.md | unsafe, macros, FFI, performance |
&for item in vec moves vec — use &vec or .iter() to borrowString moved into function — pass &str for read-only access&mut and & simultaneously — restructure or interior mutability&mut self blocks all access — split struct or RefCell'static means CAN live forever, not DOES — String is 'static capable<'a> — struct Foo<'a> { bar: &'a str }fn get<'a>(s: &'a str) -> &'a strs[0] doesn't compile — use .chars().nth(0) or .bytes().len() returns bytes, not chars — use .chars().count()s1 + &s2 moves s1 — use format!("{}{}", s1, s2) to keep bothunwrap() panics — use ? or match in production? needs Result/Option return type — main needs -> Result<()>expect("context") > unwrap() — shows why it panicked.iter() borrows, .into_iter() moves — choose carefully.collect() needs type — collect::>() or typed bindingRc is NOT Send — use Arc for threadsMutex lock returns guard — auto-unlocks on drop, don't hold across awaitRwLock deadlock — reader upgrading to writer blocks foreverRefCell panics at runtime — if borrow rules violatedBox for recursive types — compiler needs known sizeRc> spaghetti — rethink ownership| Error | Cause | Fix |
|-------|-------|-----|
| value moved here | Used after move | Clone or borrow |
| cannot borrow as mutable | Already borrowed | Restructure or RefCell |
| missing lifetime specifier | Ambiguous reference | Add <'a> |
| the trait bound X is not satisfied | Missing impl | Check trait bounds |
| type annotations needed | Can't infer | Turbofish or explicit type |
| cannot move out of borrowed content | Deref moves | Clone or pattern match |
cargo update updates Cargo.lock, not Cargo.toml — manual version bump needed[dev-dependencies] not in release binary — but in tests/examplescargo build --release much faster — debug builds are slow intentionallyGenerated Mar 1, 2026
Building high-performance RESTful APIs with Rust's strong concurrency and memory safety, avoiding common pitfalls like unwrap() panics and ownership issues in production. Ideal for microservices requiring low latency and high throughput.
Developing firmware for IoT devices where Rust's zero-cost abstractions and borrow checker prevent memory leaks and data races. Must handle lifetimes and avoid unsafe code to ensure reliability in resource-constrained environments.
Creating low-latency trading platforms leveraging Rust's performance and thread safety, using Arc for concurrency and careful error handling with Result types. Avoids RefCell panics and ensures data integrity under high load.
Implementing game engines with Rust to manage complex ownership of assets and avoid borrow checker conflicts, using Box for recursive types and iterators for efficient rendering loops. Focuses on avoiding Rc<RefCell<T>> spaghetti.
Building batch or real-time data pipelines using Rust's lazy iterators and concurrency features, ensuring efficient memory usage with String vs &str distinctions and proper error handling with ? operators.
Offering expert Rust consulting to help companies migrate legacy systems or develop new applications, focusing on avoiding common traps like ownership errors and concurrency issues. Revenue comes from hourly rates or project-based contracts.
Creating and maintaining SaaS products built with Rust for industries like finance or IoT, leveraging its performance and safety to reduce downtime and bugs. Revenue is generated through subscription models and enterprise licensing.
Providing Rust training programs and certification courses to upskill developers, covering topics from beginner ownership to advanced concurrency. Revenue streams include course fees, certification exams, and corporate training packages.
💬 Integration Tip
Integrate Rust into existing projects by starting with small modules, using Cargo for dependency management, and ensuring all team members understand common compiler errors to avoid slowdowns.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.