Rust Code Quality
Analyzes Rust code for common errors, style violations, and potential performance bottlenecks using established best practices.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rust-code-quality npx -- -y @trustedskills/rust-code-quality
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rust-code-quality": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rust-code-quality"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes Rust code and provides feedback on its quality, identifying potential issues related to style, best practices, and common pitfalls. It leverages cargo clippy and cargo fmt to ensure adherence to Rust's coding conventions and improve overall code maintainability. The tool aims to help developers write cleaner, more robust, and idiomatic Rust code.
When to use it
- Code Review: Automatically assess the quality of a pull request before merging into a main branch.
- Learning Rust: Newcomers can use this skill to understand and internalize Rust's coding style guidelines.
- Refactoring Existing Code: Identify areas in an existing codebase that could benefit from improved code quality.
- Continuous Integration (CI): Integrate into a CI pipeline to enforce consistent code quality standards across the project.
Key capabilities
cargo clippyanalysiscargo fmtformatting- Style guide adherence
- Best practices recommendations
- Potential pitfall identification
Example prompts
- "Analyze this Rust code for potential issues: [code snippet]"
- "Format the following Rust code according to best practices: [code snippet]"
- "Check if this Rust code adheres to common style guidelines: [code snippet]"
Tips & gotchas
The skill relies on cargo, so ensure that Rust and Cargo are installed in your environment. Complex projects might require configuration of .clippy.toml for customized linting rules; the tool will use default settings if a config file is not present.
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.