rust-review

rust-review is a command for Claude Code from multiplex-ai/muggle-ai-teams. It costs 30 tokens per session (973 once invoked), scanned A, a copy of rust-review, MIT.

A Rust-focused code review command that checks changed Rust files, runs available build and test checks, and looks for safety and style problems. Rust is a programming language with strict rules for memory use and error handling.

In plain words
What is it for?
Use it to review Rust changes, check ownership and lifetime handling, inspect unsafe code, and group findings by severity.
Why use it?
It finds common Rust mistakes, security risks, and non-idiomatic code before they reach a commit or pull request.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the muggle-ai-teams plugin — 166 skills, 55 commands, 30 agents, 4 hooks shipped together

Good fit Use it to review Rust changes, check ownership and lifetime handling, inspect unsafe code, and group findings by severity.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/multiplex-ai/muggle-ai-teams/rust-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.

Clone the repo
git clone --depth 1 https://github.com/multiplex-ai/muggle-ai-teams

Made for: Claude Code.

Or install muggle-ai-teams, the plugin that ships this one along with the rest of its 166 skills, 55 commands, 30 agents, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/rust-review/github.svg)](https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/rust-review)
Your own site
<a href="https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/rust-review"><img src="https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/rust-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-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/rust-review"><img src="https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/rust-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 973 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 100% copy Near-identical to another mod 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.00030 $0.00973
Opus 5.5 $0.00012 $0.00389
Sonnet 5.5 $0.00006 $0.00195
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade A, and why

rust-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 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.

Origin

This is a copy

100% identical to rust-review — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/rust-review.md · 143 lines

How it starts

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

Rust Code Review

This command invokes the rust-reviewer agent for comprehensive Rust-specific code review.

What This Command Does

  1. Verify Automated Checks: Run cargo check, cargo clippy -- -D warnings, cargo fmt --check, and cargo test — stop if any fail
  2. Identify Rust Changes: Find modified .rs files via git diff HEAD~1 (or git diff main...HEAD for PRs)
  3. Run Security Audit: Execute cargo audit if available
  4. Security Scan: Check for unsafe usage, command injection, hardcoded secrets
  5. Ownership Review: Analyze unnecessary clones, lifetime issues, borrowing patterns
  6. Generate Report: Categorize issues by severity

When to Use

Use /rust-review when:

  • After writing or modifying Rust code
  • Before committing Rust changes
  • Reviewing pull requests with Rust code
  • Onboarding to a new Rust codebase
  • Learning idiomatic Rust patterns

Review Categories

CRITICAL (Must Fix)

  • Unchecked unwrap()/expect() in production code paths
  • unsafe without // SAFETY: comment documenting invariants
  • SQL injection via string interpolation in queries
  • Command injection via unvalidated input in std::process::Command
  • Hardcoded credentials
  • Use-after-free via raw pointers

HIGH (Should Fix)

  • Unnecessary .clone() to satisfy borrow checker
  • String parameter where &str or impl AsRef<str> suffices
  • Blocking in async context (std::thread::sleep, std::fs)
  • Missing Send/Sync bounds on shared types
  • Wildcard _ => match on business-critical enums
  • Large functions (>50 lines)

MEDIUM (Consider)

  • Unnecessary allocation in hot paths
  • Missing with_capacity when size is known
  • Suppressed clippy warnings without justification
  • Public API without /// documentation
  • Consider #[must_use] on non-must_use return types where ignoring values is likely a bug

Automated Checks Run

# Build gate (must pass before review)
cargo check

# Lints and suggestions
cargo clippy -- -D warnings

# Formatting
cargo fmt --check

# Tests
cargo test

# Security audit (if available)
if command -v cargo-audit >/dev/null; then cargo audit; else echo "cargo-audit not installed"; fi

Read the full file on GitHub · 143 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 · 143 lines · 30 tokens per session scan A 19e9eb0c5805

Subscribe to this mod's changes

rust-review is a command published in the GitHub repository multiplex-ai/muggle-ai-teams (2 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 973 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to rust-review, differing in 0 lines, and is treated as a copy.

Related

rust-review compared with commands from other repositories

rust-review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-reviewmultiplex-ai/muggle-ai-teamsCommand21mo agoMITA30Claude Code
analyze-filerubenCodeforges/codeforges-claude-pluginCommand312mo agoMITA17Claude Code
pi-plantznthou/claude-prismCommand10yesterdayMITB78Claude Code
select_reviews977043/river-reviewCommand8todayMITA20Claude Code, GitHub Copilot
setupKenmege/codex-claude-companionCommand21mo agoApache-2.0A12Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code