
rust-skills
Comprehensive Rust coding guidelines with 265 rules across 26 categories
by leonardomsoFree
Description
rust-skills is a set of Rust coding guidelines for an agent to follow when it writes, reviews or refactors Rust code. It contains 265 rules in 26 categories, prioritized by impact, and the page says it is current for Rust 1.96 and the 2024 edition. The rules cover ownership and borrowing, error handling, async code, concurrent, parallel and unsafe code, public API design, memory use and allocations, and performance on hot paths. The skill tells the agent when to apply it: when writing new functions, structs or modules, when implementing error handling or async code, when designing public APIs for libraries, when reviewing ownership and borrowing issues, when reducing allocations or tuning hot paths, and when refactoring existing code. Its aim is to guide an LLM toward idiomatic and optimized Rust rather than a generic style. It is listed on skills.sh, and its source is on GitHub in the leonardomso/rust-skills repository.…
Highlights
- 265 Rust rules across 26 categories
- Prioritized by impact for code generation
- Covers ownership, error handling and async code
- Guidance for unsafe code and public APIs
- Targets Rust 1.96 and the 2024 edition
Ratings & Reviews
No ratings yet
Be the first to rate rust-skills.
People also visit
apollographql/rust-best-practices
Rust coding guidelines drawn from Apollo GraphQL's internal handbook
rust-skills FAQ
What is rust-skills?
A set of Rust best-practice guidelines for an agent, with 265 rules in 26 categories.
Which Rust version does it target?
The skill says it is current for Rust 1.96 and the 2024 edition.
When should the agent use it?
When writing, reviewing or refactoring Rust code, including error handling, async code, unsafe code, public APIs and performance work on hot paths.
How are the rules ordered?
By impact, so the most important guidance comes first.
How do I install it?
Run npx skills add https://github.com/leonardomso/rust-skills --skill rust-skills.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
Where is the source?
On GitHub at leonardomso/rust-skills.
What are the best rust-skills alternatives?
Popular alternatives to rust-skills include rust-patterns, rust-engineer and apollographql/rust-best-practices. See all rust-skills alternatives









