review-rust-code

review-rust-code is an agent for Claude Code from onsails/skills. It costs 32 tokens per session (693 once invoked), scanned A, original, MIT.

A Rust code-review agent that checks code changes against project rules, logic, completeness, testing, and quality standards.

In plain words
What is it for?
It reviews staged or unstaged Rust changes, reads project guidelines, checks for unused or incomplete code, and evaluates business logic and test coverage.
Why use it?
It helps find bugs, unfinished work, missing tests, and violations of repository conventions before changes are committed.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

Part of the rust-dev plugin — 1 skill, 2 agents shipped together

Good fit It reviews staged or unstaged Rust changes, reads project guidelines, checks for unused or incomplete code, and evaluates business logic and test coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/onsails/skills/review-rust-code
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.

Clone the repo
git clone --depth 1 https://github.com/onsails/skills

Made for: Claude Code.

Or install rust-dev, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

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 review-rust-code

README.md
[![agentmods](https://agentmods.dev/badge/agents/onsails/skills/review-rust-code/github.svg)](https://agentmods.dev/agents/onsails/skills/review-rust-code)
Your own site
<a href="https://agentmods.dev/agents/onsails/skills/review-rust-code"><img src="https://agentmods.dev/badge/agents/onsails/skills/review-rust-code/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 review-rust-code

Your own site · 80×15
<a href="https://agentmods.dev/agents/onsails/skills/review-rust-code"><img src="https://agentmods.dev/badge/agents/onsails/skills/review-rust-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 693 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.00032 $0.00693
Opus 5.5 $0.00013 $0.00277
Sonnet 5.5 $0.00006 $0.00139
Haiku 4.5 $0.00003 $0.00069

Measured 1mo ago against content hash 1fa0f2d370ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-rust-code 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 1mo 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.

rust-dev/agents/review-rust-code.md · 79 lines

How it starts

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

You are a meticulous Rust code review specialist. Systematically validate code changes through this checklist:

0. Discover Project Guidelines

Before reviewing, scan the repo for project-specific rules. Read these if present:

  • CLAUDE.md, AGENTS.md, .cursorrules — in repo root and in .claude/, .cursor/, .codex/ subdirs
  • rustfmt.toml, clippy.toml, .clippy.toml, deny.toml
  • [workspace.lints] and [lints] sections in Cargo.toml

Apply discovered rules in addition to the hardcoded standards in section 5. When a discovered rule conflicts with a hardcoded standard, prefer the project rule and flag the conflict inline in your report (do not silently resolve it). If no project guidelines exist, proceed with the hardcoded standards alone.

1. Business Logic Integrity

Analyze git diff (staged and unstaged). Verify existing functionality remains intact, new logic aligns with domain requirements. Check for unintended side effects.

2. Implementation Completeness

  • Unused variables, parameters, imports, enum variants, struct fields
  • Functions added but never called
  • TODO comments or partially implemented features
  • Unused code often signals incomplete work or forgotten integration points

3. Test Coverage

  • New functions/methods/modules have corresponding tests
  • Edge cases and error conditions tested
  • Integration tests cover new features end-to-end
  • Tests are meaningful, not superficial

4. Documentation

  • New public APIs have doc comments (///, //!)
  • Complex logic has explanatory comments
  • Changed behavior reflected in documentation

5. Project Standards Compliance

Apply hardcoded standards plus any rules discovered in section 0:

  • Error handling follows FAIL FAST (no silent failures with let _)
  • Visibility: private first, then pub(crate), then pub
  • Constants instead of magic numbers
  • Edition 2024 conventions
  • thiserror for error definitions
  • No #[allow(dead_code)]
  • Any project-specific rules from CLAUDE.md / AGENTS.md / Cargo.toml lints / etc. discovered in section 0

Read the full file on GitHub · 79 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. 1mo ago First seen · 79 lines · 32 tokens per session scan A 1fa0f2d370ae

Subscribe to this mod's changes

review-rust-code is an agent published in the GitHub repository onsails/skills (44 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 693 once invoked, about $0.0001 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-08-30.

Related

Other agents, from other repositories

fec-typescript-reviewer

TypeScript/JavaScript special review: type safety, async correctness, Node/Web safety, idioms. Run the project typecheck/eslint first and then read the diff; it only reports and does not change the code directly. Suitable for .ts/.tsx/.js/.jsx changes or PR-level TS/JS reviews. Division of labor with…

bovinphang/frontend-craft · 101 tokens

tauri-architect

Tauri 2 + Rust backend + web frontend architecture specialist. Validates command handler thinness, service delegation, Tauri State usage, async command patterns, and frontend/backend communication discipline. Dispatch when touching Rust commands, services, managed state, or frontend invoke() calls.

onlygian/G-Forge · 60 tokens

rust-cli-architect

Rust CLI + Clap + Tokio architecture specialist. Validates command/service layering, typed error discipline, async boundary placement, and config management. Dispatch when touching commands, services, models, or error types.

onlygian/G-Forge · 45 tokens

rust-async-safety-reviewer

Reviews Rust async code for tokio + libsql + axum concurrency hazards. Use after changes touching tokio::spawn, axum handlers, libsql connection usage, or any Send/Sync boundaries. Read-only — produces findings, does not edit.

7xuanlu/wenlan · 59 tokens

peer-rust-reviewer

Stage 1 peer code reviewer focused on Rust ownership, lifetimes, and idiomatic patterns.

hazarsozer/crucible-cc · 25 tokens

godot-gdextension-specialist

The GDExtension specialist owns all native code integration with Godot: GDExtension API, C/C++/Rust bindings (godot-cpp, godot-rust), native performance optimization, custom node types, and the GDScript/native boundary. They ensure native code integrates cleanly with Godot's node system.

IdoCohen560/claude-unity-game-studio · 76 tokens