rust-code-review

rust-code-review is a skill for Claude Code, Codex from beel-collab/presets.dev. It costs 43 tokens per session (928 once invoked), scanned A, original, MIT.

A code-review guide for Rust changes. Rust is a programming language that checks memory and thread safety at compile time, while async code lets tasks pause while waiting for work to finish.

In plain words
What is it for?
Use it to review public Rust functions, asynchronous tasks, and new unsafe blocks. It also checks the project’s minimum supported Rust version before judging language features.
Why use it?
It helps identify library paths that can unexpectedly stop on an error, unnecessary unsafe code, and asynchronous tasks that do not handle cancellation correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to review public Rust functions, asynchronous tasks, and new unsafe blocks. It also checks the project’s minimum supported Rust version before judging language features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beel-collab/presets.dev/rust-code-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add beel-collab/presets.dev --skill rust-code-review
Clone the repo
git clone --depth 1 https://github.com/beel-collab/presets.dev

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/beel-collab/presets.dev/rust-code-review/github.svg)](https://agentmods.dev/skills/beel-collab/presets.dev/rust-code-review)
Your own site
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/rust-code-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/rust-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/rust-code-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/rust-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00928
Opus 5.5 $0.00017 $0.00371
Sonnet 5.5 $0.00009 $0.00186
Haiku 4.5 $0.00004 $0.00093

Measured 17d ago against content hash 74245ef8445e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

antigravity/rust/rust-code-review/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust Code Review Skill for Antigravity CLI

Install

Install the native export at .agents/skills/rust-code-review/SKILL.md (one file shared with Codex). Copy that export, not this catalog file. Catalog fields such as tools and author are for presets.dev. Install one skill file per name. Cursor, GitHub Copilot, Codex, Antigravity CLI, and Devin can all read .agents/skills, so a second copy with the same name collides.

Rust Code Review

Shared skill rust-code-review for Rust. Codex and Antigravity CLI both read .agents/skills/rust-code-review/SKILL.md. Install this one file. Codex calls it with $rust-code-review or /skills. Cursor, GitHub Copilot, and Devin also read .agents/skills. A second copy with the same name collides. Do not install another tool's file there.

When to run

Run this review for a Rust change: a public function, an async task, or a new unsafe block.

When to leave it

Stop for a non-Rust repository. Do not bump the MSRV or the toolchain unless the user asked.

Steps

  1. Read the MSRV and the toolchain file. A feature from a newer Rust used without a bump, or a silent MSRV bump, is a high finding.
  2. Search the diff for unwrap, expect, and unsafe. unwrap on I/O or parsed input is a high finding. unsafe without an invariant comment is a high finding.
  3. Search for .await while a std::sync::Mutex or parking_lot guard is in scope, and for std::thread::sleep or blocking I/O inside an async function. Each is a high finding. A tokio::sync::Mutex held across .await is valid. Do not flag it.
  4. Check that a spawned task can finish when the parent is canceled.
  5. Run cargo test for the package only if the user asked. Otherwise write not run.

Output

Findings with severity, file, line, the panic or safety hole, and a Result-based or safe alternative.

## Findings
- high | path:line | what is wrong | what to do instead

## No findings
Say "No findings" and list the files you opened. A search you skipped is not a clean result.

## Example
Input: an async function holds `std::sync::Mutex` across `.await`.
Output: high | src/worker.rs:31 | a std mutex guard must not be held across `.await` | drop the guard first, or use `tokio::sync::Mutex` when the guard must span the await.

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 85 lines · 43 tokens per session scan A 74245ef8445e

Subscribe to this mod's changes

rust-code-review is a skill published in the GitHub repository beel-collab/presets.dev (3 stars, last pushed 6d ago), licensed MIT. It adds 43 tokens to every session and 928 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

rust-code-review compared with skills from other repositories

rust-code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-code-reviewbeel-collab/presets.devSkill36d agoMITA43Claude Code, Codex
rust-engineersammcj/agentic-codingSkill1743d agoApache-2.0A39Claude Code, Codex
rust-developmentsammcj/agentic-codingSkill1743d agoApache-2.0A13Claude Code, Codex
swift-developmentsammcj/agentic-codingSkill1743d agoApache-2.0A13Claude Code, Codex
rust-developmentnavikt/copilotSkill65yesterdayMITA27Claude Code, Codex
self-reviewsammcj/agentic-codingSkill1743d agoApache-2.0A24Claude Code
python-anti-patternsFluxonLab/SkillrySkill13yesterdaynoneA46Claude Code, Codex