Rust Style Guide

🌐Community
by kentoshimizu · vlatest · Repository

Enforces Kentoshimizu's Rust style guide, automatically formatting code for consistency and readability in backend projects.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add rust-style-guide npx -- -y @trustedskills/rust-style-guide
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "rust-style-guide": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/rust-style-guide"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enforces Rust code formatting and style according to the official Rust Style Guide. It automatically applies clippy lints and rustfmt, ensuring consistent code across projects. The tool helps maintain a high level of code quality and readability by adhering to established conventions.

When to use it

  • Code Review Automation: Integrate into CI/CD pipelines to automatically check and format pull requests before merging.
  • New Project Setup: Quickly initialize new Rust projects with consistent formatting from the start.
  • Team Collaboration: Enforce a unified coding style within development teams, reducing merge conflicts and improving code comprehension.
  • Legacy Code Refactoring: Apply consistent styling to existing codebases for improved maintainability.

Key capabilities

  • Applies rustfmt formatting rules.
  • Runs clippy lint checks.
  • Enforces the official Rust Style Guide.
  • Automated code style enforcement.

Example prompts

  • "Format this Rust code: [code snippet]"
  • "Check this Rust file for style violations: path/to/my_file.rs"
  • "Run clippy on my project and report any warnings."

Tips & gotchas

  • Ensure rustfmt and clippy are installed in the environment where the agent is running.
  • The skill relies on the Rust toolchain; familiarity with basic Rust commands can be helpful for troubleshooting.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
kentoshimizu
Installs
3

🌐 Community

Passed automated security scans.