rust-quality

Enforce Rust API guidelines, error handling, and Clippy lint discipline across crates.

27|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/forecast-bio/ferray --skill rust-quality-forecast-bio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-quality
Source: https://github.com/forecast-bio/ferray/tree/main/.claude/skills/rust-quality
Command: npx skills add https://github.com/forecast-bio/ferray --skill rust-quality-forecast-bio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces idiomatic Rust API design, strong error handling, comprehensive lint discipline, and safe use of unsafe code across crates to improve reliability and maintainability.

Core Features & Use Cases

  • API design guidelines: ensures UpperCamelCase types, snake_case functions, and consistent trait implementations across libraries and binaries.
  • Error handling discipline: promotes Result-based error handling, leverages thiserror/anyhow, and documents safety and failure modes.
  • Lint and safety discipline: applies Clippy pedantic rules, forbids unsafe blocks without SAFETY notes, and enforces robust doc and testing practices.
  • Documentation and structure: encourages proper rustdoc coverage, module layout, and prelude exposure for ergonomic API consumption.
  • Use Case: during code reviews, refactors, or new crate design, apply these rules to ensure shippable Rust code.

Quick Start

Review a Cargo project and adjust the crate to align with Rust API Guidelines, error handling, lint expectations, and documentation standards.

Frequently Asked Questions about rust-quality

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

FAQPage Schema
How do I enforce Rust API design guidelines during code reviews?

Enforce Rust API design guidelines during code reviews by verifying UpperCamelCase types, snake_case functions, and consistent trait implementations, ensuring shippable, idiomatic Rust code across libraries and binaries.

What is the best way to handle errors in Rust crates using Result and thiserror?

Handle errors in Rust crates using Result-based patterns with thiserror or anyhow, documenting safety and failure modes. This discipline promotes robust error handling and improves crate reliability and maintainability.

Does Clippy pedantic lint discipline work with no_std and embedded Rust projects?

Clippy pedantic lint discipline applies to no_std and embedded Rust projects, enforcing strict lint rules and robust documentation. It ensures conformance to Rust API Guidelines across varied project types including async and GPU-accelerated crates.

How do I document unsafe blocks with SAFETY notes in Rust code reviews?

Document unsafe blocks with SAFETY notes in Rust code reviews by forbidding unsafe code without thorough safety documentation. Enforce strict safety discipline to ensure all unsafe blocks are properly justified and tested.

Why does my Rust crate need prelude exposure and rustdoc coverage for ergonomic API consumption?

Your Rust crate needs prelude exposure and rustdoc coverage to ensure ergonomic API consumption and proper documentation structure. Encouraging proper module layout and rustdoc coverage improves maintainability and developer experience.

Can I apply Rust quality review rules to async and GPU-accelerated crates?

Yes, you can apply Rust quality review rules to async and GPU-accelerated crates. The review process enforces API design, error handling, and lint discipline across all crate types, ensuring conformance to Rust API Guidelines.