Codex Rust Code Review for Ownership and Error Handling
Review ordinary Rust changes for borrowing, avoidable allocation, error propagation, public API documentation, and relevant tests.
中文Install in Codex
Codex, a Rust checkout, and the repository's Cargo toolchain.
- Copy the pinned `.codex/skills/rust-code-review/` directory into `.agents/skills/rust-code-review/` in the project.
- Invoke `$rust-code-review` with a local diff and the project's own validation commands.
Example task
In a practice crate, review a change that clones a string before iterating over it. Ask for findings that preserve the return contract.What to check
Expect the allocation location, a borrowing alternative where suitable, and a related behavior check.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should every crate use the same Clippy command?
Follow the target workspace's supported lint command and feature configuration.