rust-best-practices
Installation
SKILL.md
Rust Best Practices
Apply this standard when writing or reviewing Rust. Engineering guide, not a tutorial.
Authority
- Live official docs for language, naming, formatting, and public API shape. Start with the Style Guide and the API Guidelines. Map: references/official.md.
- This skill for allocation contracts, bounds,
debug_assert!, heapless cores, determinism, and CI. Load the matching reference; do not invent a rule that lives there.
MUST / MUST NOT: required unless an approved architecture decision documents an exception. SHOULD / SHOULD NOT: default; a deviation needs a concrete reason in review. MAY: optional and context-dependent.
Correctness, safety, determinism, and maintainability outrank cleverness. Measure performance. Design allocation and bounds into the API before profiling.
Fetch current official docs for library or toolchain syntax. Do not invent APIs from memory.