rust

📁 pproenca/dot-skills 📅 Jan 22, 2026
71
总安装量
71
周安装量
#3089
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill rust

Agent 安装分布

claude-code 58
opencode 52
gemini-cli 48
codex 48
github-copilot 44

Skill 文档

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

Priority Category Impact Prefix
1 Memory Allocation CRITICAL mem-
2 Ownership & Borrowing CRITICAL own-
3 Data Structure Selection HIGH ds-
4 Iterator & Collection Patterns HIGH iter-
5 Async & Concurrency MEDIUM-HIGH async-
6 Algorithm Complexity MEDIUM algo-
7 Compile-Time Optimization MEDIUM comp-
8 Micro-optimizations LOW micro-

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

File Description
AGENTS.md Complete compiled guide with all rules
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information