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
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
| Priority | Category | Impact | Prefix | Rules |
| 1 | Ownership & Borrowing | CRITICAL | own- | 14 |
| 2 | Error Handling | CRITICAL | err- | 14 |
| 3 | Memory Optimization | CRITICAL | mem- | 15 |
| 4 | API Design | HIGH | api- | 17 |
| 5 | Async/Await | HIGH | async- | 16 |
| 6 | Compiler Optimization | HIGH | opt- | 12 |
| 7 | Naming Conventions | MEDIUM | name- | 16 |
| 8 | Type Safety | MEDIUM | type- | 10 |
| 9 | Testing | MEDIUM | test- | 13 |
| 10 | Documentation | MEDIUM | doc- | 11 |
| 11 | Performance Patterns | MEDIUM | perf- | 11 |
| 12 | Project Structure | LOW | proj- | 11 |
| 13 | Clippy & Linting | LOW | lint- | 11 |
| 14 | Anti-patterns | REFERENCE | anti- | 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.
Other versions14 projects use a version of this.
Word for word · 1
- vinhnx/VTCode★ 896100% same
Edited · 0
None found.
Wrote their own version · 13
- JMBeresford/retrom★ 2.1ksame name
- sockudo/sockudo★ 841same name
- RustNSparks/sockudo★ 828same name
- leonardomso/rust-skills★ 506same name
- noh-rs/nohrs★ 156same name
- launchapp-dev/animus-cli★ 39same name
- chasebuild/fuelcheck-cli★ 15same name
- keyline-dev/keyline★ 6same name
- nurmdrafi/pi-native★ 4same name
- Yeseh/skillet★ 3same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- rust-skillsCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- rust-skillsSkill
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.

