askill
rust

rustSafety 95Repository

Rust performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Rust code to ensure optimal performance patterns. Triggers on tasks involving memory allocation, ownership, borrowing, iterators, async code, or performance optimization.

32 stars
1.2k downloads
Updated 2/5/2026

Package Files

Loading files...
SKILL.md

Community Rust Best Practices

Comprehensive performance optimization guide for Rust applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Rust code
  • Optimizing memory allocation and ownership patterns
  • Working with iterators and collections
  • Writing async code with Tokio or other runtimes
  • Reviewing code for performance issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Memory AllocationCRITICALmem-
2Ownership & BorrowingCRITICALown-
3Data Structure SelectionHIGHds-
4Iterator & Collection PatternsHIGHiter-
5Async & ConcurrencyMEDIUM-HIGHasync-
6Algorithm ComplexityMEDIUMalgo-
7Compile-Time OptimizationMEDIUMcomp-
8Micro-optimizationsLOWmicro-

Quick Reference

1. Memory Allocation (CRITICAL)

2. Ownership & Borrowing (CRITICAL)

3. Data Structure Selection (HIGH)

4. Iterator & Collection Patterns (HIGH)

5. Async & Concurrency (MEDIUM-HIGH)

6. Algorithm Complexity (MEDIUM)

7. Compile-Time Optimization (MEDIUM)

8. Micro-optimizations (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a comprehensive guide with all rules in a single document, see AGENTS.md.

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/10/2026

An exceptionally well-structured reference hub for Rust performance optimization, featuring 42 categorized rules with clear priorities and triggers.

95
100
100
95
85

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publisherpproenca

Tags

api