modern-rust-expert

Guide Rust code review and refactoring for edition 2024 and clippy compliance.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/jonathanbelolo/composable-rust --skill modern-rust-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modern-rust-expert
Source: https://github.com/jonathanbelolo/composable-rust/tree/main/.claude/skills/modern-rust-expert
Command: npx skills add https://github.com/jonathanbelolo/composable-rust --skill modern-rust-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance for writing cutting-edge, idiomatic Rust code following the Rust 2024 edition, with strict clippy compliance and a pragmatic, functional-but-pragmatic philosophy.

Core Features & Use Cases

  • Idiomatic Rust 2024: Guidance on modern syntax, trait patterns, and zero-cost abstractions.
  • Code Quality & Reviews: Best practices for structuring modules/crates, reviewing/refactoring, and documentation standards.
  • Use Case: When starting a new Rust project or upgrading an existing codebase to edition 2024, apply these guidelines to resolve common pitfalls and improve maintainability.

Quick Start

Prompt: "Act as a Modern Rust Expert and review this Rust module for edition-2024 compliance, async patterns, and clippy guidance."

Frequently Asked Questions about modern-rust-expert

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

FAQPage Schema
How do I write async traits in Rust 2024?

Async traits in Rust 2024 let you define asynchronous functions directly in traits without external macros. This Skill provides expert guidance on applying modern async trait patterns while ensuring clippy compliance and maintainable code structure.

What is RPITIT and how do I use it in Rust?

RPITIT (Return Position Impl Traits In Traits) allows returning impl Trait types directly from trait methods in Rust 2024. This Skill provides expert guidance on applying RPITIT alongside const generics and inline consts for maintainable code.

What's the best way to refactor an existing Rust codebase for edition 2024?

Refactoring for Rust 2024 involves upgrading syntax, adopting modern trait patterns like let-else, and ensuring clippy compliance. This Skill reviews your modules and crates to resolve common pitfalls and improve maintainability during the upgrade.

Does this Rust expert guidance help with clippy compliance and code reviews?

Yes, this Rust expert guidance emphasizes strict clippy compliance and robust documentation standards for code reviews. It helps structure modules and crates pragmatically while enforcing functional patterns across your entire Rust project.

When do I need let-else and const generics in modern Rust?

You need let-else for cleaner early returns and const generics for type-safe, zero-cost abstractions in modern Rust. This Skill guides when to apply these features practically to avoid common maintainability pitfalls in your code.