| name | rust-conventions |
| description | ALWAYS use this skill BEFORE writing or modifying ANY Rust code (.rs files), even for simple Hello World programs. Enforces Microsoft Rust coding guidelines (M- prefix) and custom extensions (X- prefix), applies M-CANONICAL-DOCS documentation, and validates against guidelines. This skill is MANDATORY for all Rust development. |
| license | MIT |
| metadata | {"author":"veeso","version":"1.0.0","tags":["rust","conventions","linting"]} |
Rust Development
This skill automatically enforces Rust coding standards and best practices when creating or modifying Rust code.
Guidelines
There are two sets of conventions:
Both sets of guidelines MUST be followed.
Instructions
CRITICAL: This skill MUST be invoked for ANY Rust code operation, including:
- Creating new .rs files (even simple examples like Hello World)
- Modifying existing .rs files (any change, no matter how small)
- Reviewing Rust code
- Refactoring Rust code
Process:
- Read rust-guidelines.txt to understand all
M- compliance requirements
- Read custom-guidelines.txt to understand all
X- compliance requirements
- Before writing/modifying ANY Rust code, ensure edits conform to both guideline sets
- Apply proper M-CANONICAL-DOCS documentation format
- Comments must ALWAYS be written in American English, unless the user explicitly requests a different comment language
No exceptions: Even for trivial code like "Hello World", guidelines must be followed.