Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Rust Conventions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/leondavi-rust-conventions)
---
name: rust-conventions
description: Rust style and structure conventions for this repo
---
# Rust conventions
- Files stay under 1,000 lines; split by responsibility, not by type.
- Every module starts with a `//!` doc comment explaining its role.
- Errors: `anyhow::Result` in application code with `.context(...)` on I/O;
no `unwrap()` outside tests.
- Prefer iterators and early returns over deep nesting.
- Public items get `///` docs; comments explain *why*, not *what*.
- Each brand adapter lives in `src_rust/brands/<brand>/` and only implements
the `Brand` trait — shared logic belongs in the backbone.