{"repo":"leonardomso/rust-skills","free":true,"listed":false,"github":"https://github.com/leonardomso/rust-skills","clone":"git clone https://github.com/leonardomso/rust-skills.git","description":"A collection of 265 rules across 26 categories that AI coding agents can use to write idiomatic, fast, and safe Rust.","language":"Python","stars":420,"topics":["agent-skills","ai-coding","best-practices","claude-code","code-quality","codex","coding-guidelines","copilot","llm","opencode"],"license":"MIT","category":"ai-agents","readme_excerpt":"Rust Skills 265 Rust rules your AI coding agent can use to write better code. Current for Rust 1.96 (2024 edition). Works with Claude Code, Cursor, Windsurf, Copilot, Codex, Aider, Zed, Amp, Cline, and pretty much any other agent that supports skills. Why Out of the box, coding agents write average Rust — they clone to dodge the borrow checker, .unwrap() everything, and reach for Box when impl Trait would do. These rules encode what expert Rust actually looks like: idiomatic, fast, and safe. Each rule is small and focused, so the agent pulls in only what's relevant to the code in front of it. Install That's it. The CLI figures out which agents you have and installs the skill to the right place. How to use it After installing, just ask your agent: The agent loads the relevant rules and applies them to your code. See it in action Ask the agent to review a function like this: With these rules loaded, it knows to take &str instead of &String , drop the needless clone() and allocation, and return an Option instead of panicking: What's in here 265 rules split into 26 categories: Category Rules What it covers ---------- ------- ---------------- Ownership & Borrowing 12 When to borrow vs clone, Arc/Rc, lifetimes Error Handling 12 thiserror for libs, anyhow for apps, the ? operator Memory 17 SmallVec, arenas, avoiding allocations, mem::take , drop order Unsafe Code 7 SAFETY: comments, Miri, MaybeUninit , 2024-edition unsafe API Design 17 Builder pattern, newtypes, sealed traits, FromI","default_branch":null,"files":null,"tree":[],"storefront":"/r/leonardomso","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leonardomso/rust-skills/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}