npx skills add sickn33/agentic-awesome-skills --skill rust --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Rust: Idiomatic Efficiency Reference ## When to Use - Use this skill when the task matches this description: Language-specific super-code guidelines for rust. ## Table of Contents 1. [Ownership & Borrowing](#ownership) 2. [Error Handling](#errors) 3. [Iterators](#iterators) 4. [Pattern Matching](#patterns) 5. [Structs & Enums](#structs) 6. [Concurrency](#concurrency) 7. [Anti-patterns specific to Rust](#antipatterns) --- ## 1. Ownership & Borrowing {#ownership} ```rust // ❌ Cloning to avoid thinking about lifetimes fn get_name(user: &User) -> String { user.name.clone() } // ✅ — return a reference when the data lives long enough fn get_name(user: &User) -> &str { &user.name } ``` ```rust // ❌ Taking ownership when borrowing suffices fn print_name(name: String) { println!("{name}"); } // ✅ fn print_name(name: &str) { println!("{name}"); } ``` ```rust // ❌ Unnecessary .to_string() / .to_owned() in hot paths let key = id.to_string(); map.get(&key) // ✅ — use Borrow trait; HashMap<String, V> accepts &str as key map.get(id) ``` **Prefer `&str` over `String` in function parameters unless the function needs to own the data.** --- ## 2. Error Handling {#errors} ```rust // ❌ .unwrap() in p
- When to Use
- Table of Contents
- 1. Ownership & Borrowing {#ownership}
- 2. Error Handling {#errors}
- 3. Iterators {#iterators}
- 4. Pattern Matching {#patterns}
- 5. Structs & Enums {#structs}
- 6. Concurrency {#concurrency}
- 7. Anti-patterns specific to Rust {#antipatterns}
- Limitations
What does the rust skill do?
Language-specific super-code guidelines for rust.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill rust --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.