The most comprehensive Rust agent skills for writing real, idiomatic Rust and porting code from other languages: ownership over clone and unwrap, errors and APIs that survive review, async and unsafe done right.
The most comprehensive Rust agent skills for writing real, idiomatic Rust and porting
code from other languages. 28 skills that teach judgment, not snippets: use the
ownership system instead of working around it, design errors and APIs that survive
review, and port code into Rust without losing behaviour.
Four areas. Rust craft: idioms, ownership, errors, types, async, unsafe,
performance, concurrency, observability, docs. Porting: one skill per source
language (C, C++, Go, Java, Python, TypeScript) over a shared migration spine.
Workflow: review, testing, setup, and a router that picks the skill for you.
Misc: the occasional setup and audit skills.
⭐ Found this useful? Give it a star. rewrite-rs/skills is free and open source. A star takes one click, tells us the work is worth continuing, and helps other Rust developers, and teams porting code into Rust, find the project.
How it works
Skills fire on their own. Each model-invoked skill carries a description, and the
agent loads the skill when the task matches it: write an error type and
rust-errors loads, start a port and port-to-rust loads. User-invoked skills
never fire on their own, so you type them (setup-rust-skills, rust-skills-map,
setup-rust-ci, setup-rust-pre-commit). Not sure which skill owns a decision?
Run rust-skills-map, the router over the set.
What changes with the skills
An illustrative contrast, not a measured run. The task: read a port number from
a config string. Without the skills, an agent often reaches for the shortest
thing that compiles:
fn parse_port(s: &String) -> Result<u16, String> {
let n: u32 = s.trim().parse().map_err(|_| "bad port".to_string())?;
if n == 0 || n > 65535 {
return Err(format!("port {} out of range", n));
}
Ok(n as u16)
}
let port = parse_port(&raw).unwrap();
The borrow is &String, the error is a string the caller can only print, and
the unwrap turns bad input into a panic. With idiomatic-rust and
rust-errors loaded, the same function reads like this: