agentleFS
vinhnxvinhnx/VTCode/.agents/skills/rust-skills/AGENTS.md

VTCode / rust-skills

AGENTS.md903 starsChanged 27 days agoApache-2.0View on GitHub

194 Rust coding rules across 14 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, API design, memory optimization, performance, testing, and common anti-patterns. Invoke with /rust-skills.

15 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
AGENTS.md

Rust Best Practices

Comprehensive guide for writing high-quality, idiomatic, and highly optimized Rust code. Contains 194 rules across 14 categories, prioritized by impact to guide LLMs in code generation and refactoring.

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Ownership & BorrowingCRITICALown-14
2Error HandlingCRITICALerr-14
3Memory OptimizationCRITICALmem-15
4API DesignHIGHapi-17
5Async/AwaitHIGHasync-16
6Compiler OptimizationHIGHopt-12
7Naming ConventionsMEDIUMname-17
8Type SafetyMEDIUMtype-11
9TestingMEDIUMtest-15
10DocumentationMEDIUMdoc-11
11Performance PatternsMEDIUMperf-11
12Project StructureLOWproj-12
13Clippy & LintingLOWlint-12
14Anti-patternsREFERENCEanti-17

Full rule reference and detailed examples live in rules/; per-source digests live in references/ (adapted from BeautifulRust, MIT). See the SKILL.md for complete quick-reference tables, task-based guidance, and sources.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.