rust-development
Skill21 starsChanged 31 days agoApache-2.0View on GitHub
Expert Rust development guidance covering naming conventions, type safety, error handling, documentation, and best practices based on official Rust guidelines. Use this skill when writing new Rust code, reviewing or modifying existing Rust code, designing Rust APIs or libraries, refactoring Rust codebases, or whenever the user mentions Rust, Cargo, clippy, rustfmt, traits, lifetimes, or `.rs` files.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- salasebas/skillstheir own version, first seen Nov 8, 2026
- ai-agent-assembly/agent-assemblytheir own version, first seen Nov 8, 2026
- 1bye/raketheir own version, first seen Nov 8, 2026
- tstapler/dotfilestheir own version, first seen Oct 10, 2026
- sammcj/agentic-codingtheir own version, first seen Oct 8, 2026
- navikt/copilottheir own version, first seen Sep 14, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- sammcj/agentic-coding★ 169same name
- 1bye/rake★ 131same name
- navikt/copilot★ 61same name
- tstapler/dotfiles★ 8same name
- thrashr888/thrashr888-agent-kit★ 5same name
- ai-agent-assembly/agent-assembly★ 4same name
- carloss765/agent-skills★ 1same name
- fatihaydin9/rust-development-skill★ 1same name
- feamcor/skills★ 1same name
- salasebas/skills★ 1same name
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.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
All code must pass these checks:
“Common” is measured: kept by at least 6 in 10 of the 10 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.
Files
Rust Development
This skill enforces new code or code changes to conform to proper Rust guidelines.
When to Use
Activate this skill when:
- Writing new Rust code
- Reviewing or modifying existing Rust code
- Designing Rust APIs, libraries, or applications
- Refactoring Rust codebases
Required Gates (Before Submitting Code)
All code must pass these checks:
cargo +nightly fmt # format
cargo clippy -- -D warnings # lint with no warnings
cargo test # tests pass
cargo doc --no-deps # docs buildCode that fails clippy or is not properly formatted should not be committed. See project-and-tooling.md for required lints and rustfmt.toml config.
Reference Files
Load the relevant file when working on the matching topic:
| Topic | File |
Naming conventions (RFC 430), case rules, conversion methods (as_/to_/into_), getter/iterator method conventions | naming.md |
Type safety (newtypes, primitive obsession, bitflags, builders) and trait implementations (Clone, Debug, From/TryFrom, Deref rules, object safety, Serde behind feature flags) | types.md |
Error type requirements, thiserror for libraries, anyhow for applications, propagating with ?, let ... else for early returns | error-handling.md |
Public-item docs, # Arguments/# Errors/# Panics/# Safety/# Examples sections, #[doc(hidden)] for implementation details | documentation.md |
Minimizing unsafe, thread safety, Drop must not fail, avoiding allocations, iterators over indexing, &str over String, Cow | safety-and-performance.md |
| API design (no out-parameters, intermediate results, constructors as static methods, generics over concrete types, input validation) and forward compatibility (private fields, sealed traits) | api-design.md |
Cargo.toml metadata, module organization, feature flags, test organization, property-based testing, required clippy lints, rustfmt.toml, pre-commit checks | project-and-tooling.md |
Guidelines Sources
These guidelines are based on:
- Microsoft Rust Guidelines
- Rust API Guidelines
- The Rust Programming Language Book
- Rust community best practices
Code Review Checklist
Required
- Code passes
cargo clippy -- -D warnings - Code is formatted with
cargo +nightly fmt - Tests pass with
cargo test
Naming (naming.md)
- Follows RFC 430 case conventions
- Conversions use
as_/to_/into_correctly - No
get_prefix on simple getters - Iterator methods follow conventions
Types (types.md)
- Uses newtypes for distinct concepts
- Avoids bool/Option parameters with unclear meaning
- Implements appropriate standard traits
- Error types implement
Error + Send + Sync
Safety (safety-and-performance.md)
- Minimizes
unsafecode - Documents safety invariants
- Validates inputs at boundaries
Documentation (documentation.md)
- All public items documented
- Examples compile and demonstrate usage
- Error/panic conditions documented
Performance (safety-and-performance.md)
- Avoids unnecessary allocations
- Uses iterators appropriately
- Takes references where ownership isn't needed
Testing (project-and-tooling.md)
- Unit tests for core logic
- Integration tests for public API
- Edge cases covered
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.

