rust-best-practices

Review Rust code using Apollo GraphQL's idiomatic best practices.

8|1|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/HopeArtOrg/hope-re --skill rust-best-practices-hopeartorg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-best-practices
Source: https://github.com/HopeArtOrg/hope-re/tree/main/.agents/skills/rust-best-practices
Command: npx skills add https://github.com/HopeArtOrg/hope-re --skill rust-best-practices-hopeartorg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides guidelines for writing clean, efficient, and idiomatic Rust code, ensuring maintainability and performance.

Core Features & Use Cases

  • Best Practices Guide: Follows Apollo GraphQL's best practices for Rust development.
  • Comprehensive Coverage: Covers coding styles, error handling, performance optimization, and testing.
  • Use Case: When working on Rust projects, use this Skill to review code, decide on ownership patterns, handle errors, optimize performance, and write tests and documentation.

Quick Start

Activate the 'rust-best-practices' skill and read the chapter on error handling for tips on implementing error management in Rust.

Frequently Asked Questions about rust-best-practices

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

FAQPage Schema
What are the best practices for idiomatic Rust error handling?

Idiomatic Rust error handling involves using the Result type for recoverable errors and the Option type for absent values. This skill assists in implementing error management by providing guidelines for clean, maintainable error handling patterns.

How do I decide on ownership patterns during a Rust code review?

To decide on ownership patterns during a Rust code review, you analyze borrowing, lifetimes, and data sharing. This skill assists in reviewing code and making ownership decisions based on established guidelines.

What is the best way to optimize performance in Rust?

The best way to optimize performance in Rust is by following idiomatic coding guidelines to ensure efficiency. This skill provides best practices for performance optimization, covering coding styles and testing.

Do I need a specific Rust version to use Apollo GraphQL best practices?

Yes, you need Rust version 1.70 or higher and Cargo. This skill provides guidelines for writing clean, efficient code based on Apollo GraphQL's best practices for Rust development.

How do I write idiomatic Rust tests and documentation?

Writing idiomatic Rust tests and documentation involves following specific coding style guidelines to ensure maintainability. This skill covers testing and documentation practices for Rust development.