rust-best-practices

Apply Apollo GraphQL's Rust Best Practices Handbook to write idiomatic Rust code.

19|3|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/dirien/yet-another-agent-harness --skill rust-best-practices-dirien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-best-practices
Source: https://github.com/dirien/yet-another-agent-harness/tree/main/.claude/skills/rust-best-practices
Command: npx skills add https://github.com/dirien/yet-another-agent-harness --skill rust-best-practices-dirien

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a concise, codified set of Rust best-practices derived from Apollo GraphQL's handbook to help teams write idiomatic, safe, and maintainable Rust code, reducing review time and onboarding friction.

Core Features & Use Cases

  • Establishes guidelines for ownership, borrowing, and error handling with Result types.
  • Supports writing tests and documentation that align with Rust best practices.
  • Serves as a reference during code reviews, refactoring, and platform upgrades to maintain consistency across Rust projects.
  • Real-world use: when starting a new Rust project or auditing an existing codebase to improve readability and safety.

Quick Start

Follow this rule: read the Rust Best Practices guide before writing or reviewing Rust code and apply the guidelines in your ongoing work.

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 ownership and borrowing in Rust?

Rust ownership and borrowing best practices involve establishing clear guidelines for managing memory safely without a garbage collector. This skill codifies rules from Apollo GraphQL's handbook to help teams write idiomatic, safe, and maintainable code.

How do I handle errors using Result types in Rust?

Error handling with Result types in Rust is guided by established best practices to ensure error safety and maintainability. This skill provides codified guidelines derived from Apollo GraphQL's handbook to enforce proper Result type usage across your codebase.

What is the best way to write idiomatic Rust code for large codebases?

Writing idiomatic Rust code for large codebases requires enforcing code quality, error safety, and maintainability across reviews and onboarding. This skill applies Apollo GraphQL's Rust Best Practices Handbook to maintain consistency across new and existing Rust projects.

Does this Rust best practices guide cover testing and documentation?

Yes, this Rust best practices guide covers comprehensive testing and documentation practices. It supports writing tests and documentation that align with established Rust best practices to improve readability and safety during codebase audits.

Can I use these Rust guidelines for code reviews and refactoring?

You can use these Rust guidelines as a reference during code reviews, refactoring, and platform upgrades. The skill serves to maintain consistency and reduce review time and onboarding friction across your Rust projects.

When do I need a codified set of Rust best practices?

You need a codified set of Rust best practices when starting a new Rust project or auditing an existing codebase to improve readability and safety. It reduces review time and onboarding friction by providing clear guidelines for ownership, borrowing, and error handling.