Rust Review

Rust specialist code review — ownership, lifetimes, error handling, unsafe usage

Invoke the rust-reviewer agent to perform a comprehensive Rust code review.

If an argument is provided and is a number, treat it as a GitHub PR number. If no argument, review local uncommitted changes (git diff --staged and git diff).

The agent will:

  1. Establish review scope
  2. Run cargo clippy, cargo fmt --check if available
  3. Review against Rust checklist (safety, ownership, lifetimes, error handling)
  4. Report findings with severity levels and approval verdict