rust-coding-guidelines

Provide Rust coding guidelines covering naming, error handling, and concurrency.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/runecalico-ai/second_edition_spellbook --skill rust-coding-guidelines-runecalico-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-coding-guidelines
Source: https://github.com/runecalico-ai/second_edition_spellbook/tree/main/.cursor/skills/rust-coding-guidelines
Command: npx skills add https://github.com/runecalico-ai/second_edition_spellbook --skill rust-coding-guidelines-runecalico-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of rules and best practices for writing idiomatic and high-quality Rust code, helping developers improve code style, readability, and maintainability.

Core Features & Use Cases

  • Core Rules: Covers naming conventions, data types, string manipulation, error handling, memory management, concurrency, and async programming in Rust.
  • Clippy Lint Mapping: Provides quick fixes for common Clippy lints.
  • Deprecated to Better: Lists deprecated features and their modern alternatives.
  • Use Case: A developer is unsure about the best way to name a static variable in Rust or how to handle errors in an async function. They can consult this Skill for clear guidelines and examples.

Quick Start

Consult the rust-coding-guidelines skill for advice on Rust naming conventions.

Frequently Asked Questions about rust-coding-guidelines

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

FAQPage Schema
What are the best practices for writing idiomatic Rust code?

Idiomatic Rust code follows specific naming conventions, string manipulation rules, and error handling patterns. This Skill provides curated guidelines covering data types, memory management, concurrency, and async programming to improve code readability and maintainability.

How do I fix common Clippy lints in my Rust project?

Fixing Clippy lints is streamlined through a dedicated mapping that provides quick fixes for common warnings. This Skill lists deprecated features alongside their modern alternatives to help you update code style and resolve lint issues efficiently.

What is the best way to handle errors in async Rust functions?

Handling errors in async Rust functions requires following specific best practices outlined in this Skill. It provides clear guidelines and examples for error handling within asynchronous patterns to ensure high-quality, maintainable code.

Does this Rust coding guideline cover memory management and concurrency?

Yes, these Rust coding guidelines cover memory management and concurrency. The Skill includes core rules for data types, async programming, and naming conventions to help you structure high-quality Rust projects.

How do I name static variables in Rust correctly?

Naming static variables in Rust correctly involves following established naming conventions. This Skill provides clear guidelines and examples for static variable naming and other data types to ensure your code style remains consistent.