AgentSkillsCN

fast-rust

为编写、重构与审查快速、可靠且易于维护的 Rust 代码提供实用指导。

SKILL.md
--- frontmatter
name: fast-rust
description: Practical guidance for writing, refactoring, and reviewing fast, reliable, and maintainable Rust code.

fast-rust

Concise guidance for high-quality Rust engineering, balancing correctness, maintainability, and performance.

Purpose and Triggers

  • Writing new code, refactoring, reviewing, or designing public APIs/CLIs.
  • Rust or files with .rs.
  • Prefer clear boundaries, error semantics, and evolvability.

Decision Order

  1. Correctness and clear boundaries
  2. Readability and maintainability
  3. Extensibility and evolution cost
  4. Performance and optimization

Workflow

  1. Locate the relevant topic below.
  2. Apply the guidance and examples.
  3. Read the reference if you need more detail.

Topics

TopicGuidanceReference
Error DesignDesign error boundaries and semantics before propagationreferences/error-design.md
CompilationOptimize build time and release performance with measured changesreferences/compilation-optimization.md
Type ExerciseType-level exercise for expression engines and dispatchreferences/type-exercise.md

References

  • Each topic file lists source URLs in frontmatter urls.