
Description
Coding Guidelines is an agent skill that answers questions about Rust code style and best practices, using a set of fifty core rules. It covers Rust specific naming, such as avoiding a get prefix on getters, the iter, iter_mut and into_iter conventions, and the as, to and into naming rules for conversions. It also covers data types, with guidance on using newtypes for domain meaning, preferring slice patterns, pre-allocating vectors and strings with capacity, and using arrays for fixed sizes instead of vectors. The skill is triggered by questions about naming, formatting, comments, clippy, rustfmt, lint and code style, and it gives the rule identifier with each guideline. It is meant to inform how an agent writes Rust, rather than to change code by itself.…
Highlights
- Fifty core Rust style and practice rules
- Naming conventions for getters, iterators and conversions
- Data type guidance with newtypes and slice patterns
- Pre-allocation and fixed size array advice
- Triggered by questions on rustfmt, clippy and lint
Ratings & Reviews
No ratings yet
Be the first to rate coding-guidelines.
People also visit
apollographql/rust-best-practices
Rust coding guidelines drawn from Apollo GraphQL's internal handbook
coding-guidelines FAQ
What does this skill cover?
Rust naming, formatting, comments, data types and general best practice, in fifty core rules.
When does it apply?
When you ask about Rust code style, clippy, rustfmt or best practice.
Does it change my code?
The skill gives guidelines to follow, and it does not edit code on its own.
Is it free?
Yes. The skill is open source on GitHub.
What are the best coding-guidelines alternatives?
Popular alternatives to coding-guidelines include apollographql/rust-best-practices, rust-patterns and rust-skills. See all coding-guidelines alternatives










