rust-review
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Review a Rust patch for concrete correctness, performance, API, and test gaps. Use for code review; do not create extra approval loops or rewrite code without authorization.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- XGENT-ai/skillstheir own version, first seen Nov 8, 2026
- po4yka/rust-skillstheir own version, first seen Nov 8, 2026
- inference-gateway/skillstheir own version, first seen Nov 5, 2026
- kabudu/engineering-agent-skillstheir own version, first seen Nov 1, 2026
- fedemelo/agent-configtheir own version, first seen Nov 1, 2026
- tuan3w/herdr-mobiletheir own version, first seen Nov 1, 2026
Used with
Projects with it also use rust-port, rust-best-practices and 1 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.
weedmoSkillrust-port
Port an existing codebase or hot path to Rust from any language (Python, C, C++, Go, JS/TS, Java/Kotlin, C#) with an oracle-first workflow: profile to pick targets, freeze equivalence tests before porting, design the FFI boundary, then gate on differential tests and 1-thread vs N-thread release benchmarks. Use when the user asks to rewrite, port, migrate, or speed up code in Rust (PyO3/maturin, napi-rs, jni-rs, cxx, c2rust), or to review such a port.
Also in 6 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 4 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- cloudflare/workerd★ 9.1ksame name
- fallow-rs/fallow★ 5.3ksame name
- morganlinton/BeautifulRust★ 1.8ksame name
- tuan3w/herdr-mobile★ 29same name
- po4yka/rust-skills★ 5same name
- fedemelo/agent-config★ 4same name
- inference-gateway/skills★ 3same name
- kabudu/engineering-agent-skills★ 3same name
- BenSchZA/skills★ 1same name
- hdprajwal/agent-skills★ 1same 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 repository81 other files it gives its agents.
- agent-cli-designSkill
- agent-tool-boundariesSkill
- behavior-first-implementationSkill
- bounded-prototypeSkill
- bounded-pr-sliceSkill
- building-fdd-validationSkill
- context-efficiencySkill
- cross-language-contractsSkill
- cross-platform-agent-instructionsSkill
- design-interviewSkill
- diagnosis-loopSkill
- domain-languageSkill
- edge-cloud-syncSkill
- handoff-continuitySkill
- immutable-pr-reviewSkill
- memory-context-hygieneSkill
- module-designSkill
- orchestrateSkill
- owner-decision-gateSkill
- parallel-portfolioSkill
- pr-gate-loopSkill
- pyo3-async-lifecycleSkill
- pyo3-buffer-performanceSkill
- pyo3-free-threadingSkill
- pyo3-ownership-errorsSkill
- pyo3-wheel-releaseSkill
- python-api-typingSkill
- python-async-concurrencySkill
- python-ci-releaseSkill
- python-data-boundariesSkill
- python-packaging-environmentsSkill
- python-performanceSkill
- python-pytestSkill
- python-reviewSkill
- python-test-designSkill
- python-threading-workersSkill
- python-workflowSkill
- react-components-stateSkill
- react-performanceSkill
- repository-groundingSkill
- rust-api-designSkill
- rust-async-concurrencySkill
- rust-build-diagnosticsSkill
- rust-ci-releaseSkill
- rust-memory-layoutSkill
- rust-nextestSkill
- rust-numerics-simdSkill
- rust-performanceSkill
- rust-protocol-codecsSkill
- rust-python-bindingsSkill
- rust-storage-durabilitySkill
- rust-test-designSkill
- rust-unsafe-ffiSkill
- rust-workflowSkill
- rust-workspace-dependenciesSkill
- shadcn-react-componentsSkill
- shadcn-svelte-componentsSkill
- simplify-existing-codeSkill
- source-verificationSkill
- svelte-components-runesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Read the intended outcome, diff, applicable instructions, affected callers, and relevant tests.
- Distinctive: line 19
Check malformed input, numeric boundaries, ownership and borrowing, cancellation, partial mutation, resource cleanup, and concurrency.
- Very specific: line 23
If unsafe or FFI is involved, review reachable safe callers and safety invariants.
- Distinctive: line 37
Avoid style-only noise, speculative redesign, blanket dependency objections, and requests for tests unrelated to the changed risk.
- Distinctive: line 39
Read review prompts for focused adversarial questions.
“Common” is measured: kept by at least 6 in 10 of the 12 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 Semantic Review
Review the patch in context, not just the changed lines. Respect repository reviewer roles, severity vocabulary, and stopping rules. This skill supplies technical findings; it does not add an approval panel or authorize editing, merging, or publishing.
Understand the change
Read the intended outcome, diff, applicable instructions, affected callers, and relevant tests. Trace one real operation through the changed path. Identify the invariants that were previously enforced and whether the patch moves, removes, or duplicates their authority.
Separate confirmed behavior from assumptions. Repository documentation and agent summaries are navigation aids; confirm decisive claims in source or executed evidence. A code graph can identify callers but does not replace reading the actual branch/feature behavior.
Follow failure paths
Check malformed input, numeric boundaries, ownership and borrowing, cancellation, partial mutation, resource cleanup, and concurrency. Look for accidental type-domain conversion, stale IDs, length arithmetic overflow, unbounded allocations/queues, swallowed errors, or silently changed defaults. Review Drop, early return, and panic paths where they own resources.
At API boundaries, inspect behavior and compatibility, not only signature changes. At protocol boundaries, preserve wire identity and authoritative specification meaning. At storage boundaries, inspect acknowledge/recovery ordering and derived-index invalidation. At numerical boundaries, apply the documented exact/tolerance contract rather than a generic epsilon.
If unsafe or FFI is involved, review reachable safe callers and safety invariants. Do not accept Send/Sync or layout assumptions merely because the code compiles. Use the relevant specialist only for a real question, not a mandatory checklist expansion.
Test the evidence
Confirm that the selected test commands actually include the affected crate, feature, and consumer path. Separate nextest from doctests, excluded bindings, and hardware/OS qualification. Read assertions: a test name, snapshot, or high coverage percentage does not show that the suspected bug would be detected.
For performance claims, verify equivalent workload and semantics, timing boundaries, host/codegen settings, and uncertainty. A benchmark smoke pass is not performance evidence. Ask whether the improvement transfers from the microkernel to the stated product metric; require no broader claim than the measurements support.
Try to disprove each suspected defect with existing guards and caller constraints before reporting it. When practical, run a small reproducer or regression under the permitted role. Do not run duplicate heavy builds already coordinated by the parent or perturb a benchmark host.
Report actionable findings
For a confirmed finding, give the severity in the repository's vocabulary, exact file/symbol, triggering input or schedule, consequence, and minimal repair/test. Rank by impact, not confidence of phrasing. Label an unverified risk or design question rather than presenting it as a defect.
Avoid style-only noise, speculative redesign, blanket dependency objections, and requests for tests unrelated to the changed risk. If no actionable issues remain, say so with the reviewed scope and unrun checks. Do not demand endless rounds after the existing stopping rule is met.
Read review prompts for focused adversarial questions.
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.

