Rust Guidelines
Helps with Rust, guidelines as part of developing backend services and APIs workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rust-guidelines npx -- -y @trustedskills/rust-guidelines
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rust-guidelines": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rust-guidelines"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides guidance and code snippets based on the official Rust programming language guidelines. It helps ensure code adheres to best practices, promotes consistency, and improves overall code quality by applying established conventions for formatting, naming, and structure. The skill can be used to review existing code or generate new code that aligns with these principles.
When to use it
- Code Review: You have Rust code you want to ensure follows the official guidelines.
- New Project Setup: You're starting a new Rust project and want to enforce consistent coding style from the beginning.
- Learning Best Practices: You are learning Rust and want examples of idiomatic, guideline-compliant code.
- Refactoring Existing Code: You need to refactor existing Rust code to improve readability and maintainability.
Key capabilities
- Adheres to official Rust guidelines.
- Provides code snippets based on the guidelines.
- Offers guidance for formatting and naming conventions.
- Supports consistent code structure.
Example prompts
- "Review this Rust code snippet for guideline violations:
[code]" - "Generate a function that calculates the factorial of a number, following Rust's style guide."
- "What are the recommended naming conventions for private fields in Rust?"
Tips & gotchas
The skill relies on the official Rust guidelines being up-to-date. It is best used with relatively modern versions of the Rust compiler and standard library to ensure accuracy.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.