Tooluck logoTooluck
SKILL.md

rust-review

Agent skill frommorganlinton/BeautifulRust

Review existing Rust code for idiom, API design, error handling, safety, and maintainability, and produce a prioritized report where every finding cites the rule it breaks and gives a concrete fix. Use this whenever the user asks to review, audit, critique, grade, or "check" Rust code, a crate, a module, a .rs file, a diff, or a pull request, or asks what is wrong with their Rust or how to make it more idiomatic, even if they don't say "review". Pairs with the rust-best-practices skill, which covers writing new code.

How to install rust-review

install rust-review
# install the BeautifulRust pack with the skills CLI
npx skills add morganlinton/BeautifulRust

# or add only this skill to Claude Code: copy the folder

skills/rust-review/

# into

~/.claude/skills/rust-review/ (all projects)

.claude/skills/rust-review/ (one project)

skills/rust-review/SKILL.md

MITFull file
1# Rust review
2
3Review Rust code against the same rules the `rust-best-practices` skill uses for writing
4it, and report what to change. The output is a review, not a rewrite: the reader decides
5what to fix. Only rewrite code when the user asks for that.
6
7## 1. Decide the scope
8
9- **What to read.** Review exactly what the user pointed at: a file, a module, a crate,
10 or a diff. For a diff, review the changed lines and anything they break, not the whole
11 file.
12- **Library or application.** Check for a `lib.rs`, `pub` items used by other crates, or
13 a published `Cargo.toml`. Library code is held to the API-design rules strictly.
14 Application code gets the simplicity rules instead: concrete types, `anyhow`-style
15 errors, and no speculative generality. Say which you assumed at the top of the report.
16- **The edition and MSRV**, from `Cargo.toml`, so you don't recommend features the
17 project can't use.
18- **Frameworks.** If the crate depends on `bevy` or `bevy_ecs`, read the Bevy digest
19 (`bevy.md`) in the `rust-best-practices` skill's references first. It lists the Bevy
20 conventions to leave alone (by-value system parameters, the prelude, plain-data
21 components) and the ECS bugs to look for.
22
23## 2. Run the tools first, if you can
24
25If a Rust toolchain is available, run these from the crate root and fold the results into
26the report. They catch the mechanical issues, which leaves you free for design.
27
28```bash
29cargo fmt --check
30…

Excerpt shown under the repository's MIT license.

More skills in BeautifulRust

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates