rust-best-practices
Skill0 starsChanged 15 days agoNo licenceView on GitHub
Guide for writing idiomatic Rust code. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.
57 other projects use a version of this, 36 of them edited.
Adopted by
Most recently taken up by
- salasebas/skillstheir own version, first seen Nov 29, 2026
- nooblk-98/burnbaredited, first seen Nov 29, 2026
- existential-birds/beagletheir own version, first seen Nov 29, 2026
- Furyfree/ai-workflowtheir own version, first seen Nov 29, 2026
- TudorAndrei/skillstheir own version, first seen Nov 29, 2026
- sajaddp/sonjoo-seo-auditedited, first seen Nov 29, 2026
Used with
Projects with it also use rust-port, rust-async-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
fedemeloSkillrust-port
Port code from C, C++, Python, Go, JavaScript, or TypeScript into idiomatic Rust that keeps the original behavior: ownership instead of manual memory, Result instead of error codes and exceptions, enums instead of flag ints and magic strings, and tests that prove the port matches. Use this whenever the user asks to port, translate, convert, migrate, or rewrite code in Rust ("rewrite this in Rust", "what would this look like in Rust", "move this module to Rust"), even if they don't say "port". Pairs with the rust-best-practices skill, which covers the target code's style.
Also in 5 projects that use this
klauswgSkillrust-async-patterns
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.
Also in 11 projects that use this
GitHubSkillrust-mcp-server-generator
Generate a complete Rust Model Context Protocol server project with tools, prompts, resources, and tests using the official rmcp SDK
Also in 3 projects that use this
CloudflareSkillrust-review
Rust code review for workerd. Covers CXX FFI safety, unsafe code patterns, JSG resource conventions, error handling, and a review checklist adapted from the C++ review skills. Load this skill when reviewing Rust code in src/rust/.
Also in 6 projects that use this
huialiSkillrust-testing
Also in 9 projects that use this
gihwan-devSkilltauri-v2
Tauri v2 cross-platform app development with Rust backend. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC patterns (invoke, emit, channels), configuring permissions/capabilities, troubleshooting build issues, or deploying desktop/mobile apps. Triggers on Tauri, src-tauri, invoke, emit, capabilities.json.
Also in 7 projects that use this
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 36
- farm-fe/farm★ 5.6k94% same
- crbnos/carbon★ 2.9k94% same
- openbezal/rhema★ 35494% same
- apollographql/apollo-mcp-server★ 32394% same
- apollographql/skills★ 13892% same
- microsoft/scope★ 9394% same
- Blushyes/reef★ 8494% same
- kannandreams/agent-top★ 2692% same
- dirien/yet-another-agent-harness★ 1994% same
- Bitslix/BLXCode★ 1594% same
26 more not listed
Wrote their own version · 21
- morganlinton/BeautifulRust★ 1.8ksame name
- pedronauck/skills★ 659same name
- Cosmian/kms★ 380same name
- existential-birds/beagle★ 91same name
- baekenough/oh-my-customcode★ 47same name
- tuan3w/herdr-mobile★ 40same name
- ryo-ebata/cc-audit★ 26same name
- mduongvandinh/ai-best-practices-skills★ 18same name
- thrashr888/thrashr888-agent-kit★ 5same name
- fedemelo/agent-config★ 4same name
11 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 repository20 other files it gives its agents.
- binary-releaseSkill
- bump-and-release-e2eSkill
- dendritic-nix-flakeSkill
- kokoro-speakSkill
- nix-git-hooksSkill
- nix-manage-dotfiles-softlySkill
- project-creatorSkill
- rust-workspaceSkill
- skill-refinementSkill
- visual-app-acceptanceSkill
- agentic-playwright-nixSkill
- android-app-reverserSkill
- blog-postSkill
- cli-demo-generatorSkill
- explainerSkill
- feature-e2e-nixSkill
- find-skillsSkill
- justfile-hygieneSkill
- manage-skillsSkill
- skill-creatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 2 are common, 0 are distinctive, and 15 are very specific to this project.
2
Common
Most of the 56 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.
“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
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
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.

