rust-style-guide

Enforce Rust style, ownership discipline, and API design during PR reviews and CI checks.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill rust-style-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-style-guide
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/rust-style-guide
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill rust-style-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Rust projects often struggle with inconsistent style, ownership/borrowing clarity, and error handling across PRs and code reviews.

Core Features & Use Cases

  • Enforces Rust style conventions, naming, module boundaries, and crate boundaries.
  • Guides ownership/borrowing practices and API design to improve safety and maintainability.
  • Used during PR reviews and CI gates to flag Rust-specific quality issues across multi-crate work.

Quick Start

Apply the Rust style guide during PR reviews to ensure consistent Rust code quality.

Frequently Asked Questions about rust-style-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Rust style and ownership rules during code reviews?

To enforce Rust style and ownership rules during code reviews, apply a Rust style guide to identify inconsistent naming, borrowing practices, and API design issues across code changes. It flags quality issues to ensure consistency and safety.

What is the best way to check Rust crate boundaries in CI pipelines?

Checking Rust crate boundaries in CI pipelines involves applying automated style guide checks to modular code structures. This process identifies boundary violations and ensures clear error messaging during continuous integration gate checks.

Can I use a Rust style guide for multi-crate refactoring?

Yes, you can use a Rust style guide for multi-crate refactoring. It enforces module and crate boundaries, guides ownership discipline, and ensures API consistency across complex Rust projects using Cargo.

Does this Rust style enforcement work with Cargo projects?

Yes, this Rust style enforcement works directly with Cargo projects. It is designed to apply style conventions, ownership discipline, and API design checks across Rust projects utilizing Cargo and multiple crates.

Why should I use a dedicated Rust style guide instead of general linters?

A dedicated Rust style guide targets Rust-specific quality issues like ownership discipline, borrowing clarity, and crate boundaries that general linters often miss. It provides clear error messaging for trigger-based checks in CI gates.

When do I need to enforce Rust API design conventions?

You need to enforce Rust API design conventions when managing multi-crate work and conducting PR reviews. Applying these conventions improves code safety, maintainability, and consistent module boundaries across the codebase.