Skip to content
Back to skills

Rust Conventions

ASecurity

Rust style and structure conventions for this repo

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrust

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add leondavi/auto --skill rust-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leondavi-rust-conventions/badge)](https://www.skillsdirectory.com/skills/leondavi-rust-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.