rust-review
Skill1 starsChanged 33 days agoMITView on GitHub
Review Rust code for soundness and robustness — unsafe blocks, panics and unwrap, error types, ownership in async code, Send/Sync, dependency and feature hygiene. Use when reviewing Rust crates, services or FFI code, or before publishing a crate.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- Furyfree/ai-workflowtheir own version, first seen Nov 29, 2026
- gurinderu/crafttheir own version, first seen Nov 29, 2026
- abipalli/agent-skillstheir own version, first seen Nov 29, 2026
- camilooscargbaptista/cto-toolkittheir own version, first seen Nov 29, 2026
- inference-gateway/skillstheir own version, first seen Nov 23, 2026
- KPISTOLAS/claude-skillstheir own version, first seen Nov 16, 2026
Used with
Projects with it also use rust-port, python-review and 6 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 7 projects that use this
kingsidharthSkillpython-review
Also in 4 projects that use this
TheKREATORSSkillgo-review
Comprehensive Go code review for idiomatic patterns, concurrency safety, error handling, and security. Invokes the go-reviewer agent.
Also in 3 projects that use this
huialiSkillrust-performance
Performance optimization expert covering profiling, benchmarking, memory allocation, SIMD, cache optimization, false sharing, lock contention, and NUMA-aware programming.
Also in 3 projects that use this
MicrosoftSkillrust-best-practices
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. 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.
Also in 6 projects that use this
GoogleSkilldomain-modeling
Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- cloudflare/workerd★ 9.3ksame name
- fallow-rs/fallow★ 5.4ksame name
- morganlinton/BeautifulRust★ 1.8ksame name
- tuan3w/herdr-mobile★ 40same name
- camilooscargbaptista/cto-toolkit★ 9same name
- po4yka/rust-skills★ 7same name
- fedemelo/agent-config★ 4same name
- jscott3201/yet-more-skills★ 4same name
- inference-gateway/skills★ 3same name
- kabudu/engineering-agent-skills★ 3same name
9 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 repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Async: no blocking calls (file system, CPU-heavy work, std::thread::sleep) on the async executor — use spawn_blocking.
- Very specific: line 36
Every unsafe block has a SAFETY comment that a reviewer can verify.
- Very specific: line 43
Do not publish crates or yank versions without maintainer approval.
“Common” is measured: kept by at least 6 in 10 of the 18 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 Review
Goal
Safe Rust stays safe: every unsafe block is justified and minimal, errors are typed and propagated, and the code does not panic on input it should reject.
Inputs
- Crate type (library, binary,
no_std), MSRV, edition, async runtime, feature flags, CI configuration.
Review checklist
unsafe: each block has a// SAFETY:comment stating the invariants; the block is as small as possible; safe wrappers enforce invariants; consider#![forbid(unsafe_code)]where no unsafe is needed. Run Miri on tests that exercise unsafe code.- Panics: no
unwrap()/expect()on fallible input in libraries or request paths; indexing and slicing on untrusted lengths useget(); integer overflow considered (checked_*,saturating_*). - Errors: libraries expose typed errors (
thiserroror hand-written enums); binaries may useanyhowwith context; noBox<dyn Error>leaking across stable APIs without reason. - Async: no blocking calls (file system, CPU-heavy work,
std::thread::sleep) on the async executor — usespawn_blocking; locks are not held across.await(or use async-aware locks deliberately); cancellation safety ofselect!branches. - Concurrency:
Send/Syncbounds make sense;Arc<Mutex<_>>contention considered; nostatic mut. - API design: borrowing over cloning in signatures,
impl Traitvs generics chosen deliberately, semver impact of public changes (cargo semver-checks). - Dependencies:
cargo auditorcargo denyfor advisories and licences; minimal features; no git dependencies in published crates. - Tooling:
cargo clippy -- -D warnings,cargo fmt --check, tests including property tests (proptest) for parsers.
Example fixture
pub fn parse_len(buf: &[u8]) -> usize {
let n = u32::from_be_bytes(buf[0..4].try_into().unwrap()) as usize;
unsafe { *buf.as_ptr().add(4 + n) as usize }
}Expected findings: panics on short input, unchecked arithmetic, out-of-bounds read in unsafe with no SAFETY reasoning; should return Result and use get().
Acceptance checks
- Clippy, fmt and tests pass; Miri run for code with
unsafe, or marked NOT RUN with reason. - Every
unsafeblock has a SAFETY comment that a reviewer can verify. - Negative case: malformed or truncated input returns an error instead of panicking (test included).
Output
Findings by severity, suggested diffs, tool results.
Safety
Do not publish crates or yank versions without maintainer approval. Treat FFI and unsafe changes as security-sensitive and require a second reviewer.
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.

