rust-skills

Provide expert Rust coding guidelines for AI agents.

395|52|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/leonardomso/rust-skills --skill rust-skills-leonardomso
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-skills
Source: https://github.com/leonardomso/rust-skills/tree/main
Command: npx skills add https://github.com/leonardomso/rust-skills --skill rust-skills-leonardomso

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides AI coding agents with expert Rust coding guidelines to write idiomatic, fast, and safe code, enhancing the quality of automated code generation and refactoring.

Core Features & Use Cases

  • Expert Rust Coding Guidelines: Includes 265 rules across 26 categories covering ownership, error handling, memory optimization, API design, async patterns, concurrency, and more.
  • Rule Prioritization: Prioritizes rules by impact to guide LLMs in code generation and refactoring.
  • Use Case: For an AI agent to review Rust code, identify idiomatic improvements, and suggest changes to make the code more efficient and secure.

Quick Start

To install, use: npx add-skill leonardomso/rust-skills. To review a function, type: /rust-skills review this function.

Frequently Asked Questions about rust-skills

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

FAQPage Schema
How do I enforce idiomatic Rust coding guidelines during AI code generation?

Idiomatic Rust coding guidelines are enforced by applying 265 expert rules covering ownership, error handling, and memory optimization to guide LLMs in writing safe, fast code.

What is the best way to review Rust code for async patterns and concurrency?

Reviewing Rust code for async patterns and concurrency involves evaluating against 26 categorized rule sets that prioritize improvements by impact for AI agents.

How do I refactor Rust code to improve memory optimization and API design?

To refactor Rust code for memory optimization and API design, apply prioritized coding guidelines that identify idiomatic improvements and suggest efficient, secure changes.

Do I need an AI coding agent to use these Rust code generation rules?

Yes, an AI coding agent that supports skills is required to use these Rust code generation rules, as the guidelines are designed to enhance automated code generation and refactoring.

How does rule prioritization impact AI-assisted Rust code refactoring?

Rule prioritization impacts AI-assisted Rust code refactoring by ordering 265 rules across 26 categories by impact, ensuring LLMs generate secure and efficient code changes effectively.