rust-skills

Provide 179 prioritized Rust coding guidelines for code quality and performance.

48|3|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/kalamdb/KalamDB --skill rust-skills-kalamdb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-skills
Source: https://github.com/kalamdb/KalamDB/tree/main/.agents/skills/rust-skills
Command: npx skills add https://github.com/kalamdb/KalamDB --skill rust-skills-kalamdb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of writing high-performance, idiomatic Rust code by providing a structured, prioritized set of 179 best practices that help developers avoid common pitfalls and anti-patterns.

Core Features & Use Cases

  • Prioritized Rulebook: Access 14 categories of rules ranging from critical ownership and memory management to performance tuning and project structure.
  • Code Quality Assurance: Use these guidelines during code reviews or refactoring to ensure adherence to community-standard patterns like zero-copy, proper error handling, and async safety.
  • Use Case: When refactoring a hot path in a backend service, consult the Memory Optimization and Compiler Optimization categories to identify opportunities for reducing allocations and improving branch prediction.

Quick Start

Invoke the rust-skills skill to retrieve the best practices for implementing robust error handling in a new library.

Frequently Asked Questions about rust-skills

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

FAQPage Schema
What are the best practices for idiomatic Rust code generation and refactoring?

Idiomatic Rust code generation relies on a prioritized rulebook of 179 coding guidelines spanning 14 categories, ensuring robust ownership, memory management, and performance optimization during refactoring tasks.

How do I optimize memory allocations in a Rust backend service?

To optimize memory allocations in a Rust backend service, apply zero-copy patterns and consult specific memory optimization rules to identify opportunities for reducing allocations along hot paths.

Does this Rust coding standards guideline cover async safety and error handling?

Yes, these Rust coding standards cover async safety and proper error handling, providing community-standard patterns to ensure robust code quality during peer reviews and library development.

What's the best way to ensure consistent code review standards for Rust projects?

The best way to ensure consistent Rust code review standards is applying a prioritized set of guidelines derived from industry-leading codebases and the Rust Performance Book to catch anti-patterns.

Can I use these Rust performance tuning rules for memory-constrained systems?

Yes, you can use these Rust performance tuning rules for memory-constrained systems, as the guidelines specifically address compiler optimization, branch prediction, and memory management across various domains.

When should I not use standard Rust coding guidelines during development?

You should reconsider standard Rust coding guidelines when dealing with highly unconventional domain logic that requires bypassing compiler optimizations, though the rules generally help avoid common pitfalls and anti-patterns.