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

vtcode / rust-skills

AGENTS.md897 starsChanged 16 days agoApache-2.0View on GitHub

193 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.

Files
AGENTS.md

Rust Best Practices

Comprehensive guide for writing high-quality, idiomatic, and highly optimized Rust code. Contains 193 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-16
8Type SafetyMEDIUMtype-10
9TestingMEDIUMtest-13
10DocumentationMEDIUMdoc-11
11Performance PatternsMEDIUMperf-11
12Project StructureLOWproj-11
13Clippy & LintingLOWlint-11
14Anti-patternsREFERENCEanti-15

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.

Reviews can't be read right now.

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.