rust-systems
Rust systems programming patterns including ownership, traits, async runtime, error handling, and unsafe guidelines
npx skills add rohitg00/awesome-claude-code-toolkit --skill rust-systems --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 Systems ## Ownership and Borrowing ```rust fn process_data(data: &[u8]) -> Vec<u8> { data.iter().map(|b| b.wrapping_add(1)).collect() } fn modify_in_place(data: &mut Vec<u8>) { data.retain(|b| *b != 0); data.sort_unstable(); } fn take_ownership(data: Vec<u8>) -> Vec<u8> { let mut result = data; result.push(0xFF); result } fn main() { let data = vec![1, 2, 3, 0, 4]; let processed = process_data(&data); // borrow: data still usable let mut owned = take_ownership(data); // move: data no longer usable modify_in_place(&mut owned); // mutable borrow } ``` Prefer borrowing (`&T`, `&mut T`) over ownership transfer. Use `Clone` only when necessary. ## Error Handling ```rust use thiserror::Error; #[derive(Error, Debug)] pub enum AppError { #[error("database error: {0}")] Database(#[from] sqlx::Error), #[error("not found: {resource} with id {id}")] NotFound { resource: &'static str, id: String }, #[error("validation failed: {0}")] Validation(String), } type Result<T> = std::result::Result<T, AppError>; async fn get_user(pool: &PgPool, id: &str) -> Result<User> { sqlx::query_as::<_, User>("SELECT * FROM users WHERE id = $1") .bind(id) .fetch_optional(pool) .await? .ok_or_else(|| AppErro
- Ownership and Borrowing
- Error Handling
- Traits and Generics
- Async Patterns
- Builder Pattern
- Anti-Patterns
- Checklist
What does the rust-systems skill do?
Rust systems programming patterns including ownership, traits, async runtime, error handling, and unsafe guidelines
How do I install it?
Run `npx skills add rohitg00/awesome-claude-code-toolkit --skill rust-systems --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 rohitg00/awesome-claude-code-toolkit, a repository with 2,438 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.