Beautiful Rust
Skill : A reusable method: instructions, procedures, sometimes scripts or templates · requires any-agent
Three skills and a clippy configuration that teach an agent to write, review and port idiomatic Rust.
Careful work: the rules come from five recognized references (Google, the official Rust guidelines, Effective Rust, Microsoft), and when they contradict each other the skill picks a side and says why. The review cites the rule broken and shows the fix; the port starts with the original tests to prove equivalence. The lint configuration plugs into your continuous integration.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
A coding agent often produces Rust that compiles but isn't idiomatic: public fields, unwrap() everywhere, undocumented errors. Beautiful Rust gives your agent three skills and a clippy configuration to write, review and port Rust following established rules.
In practice, rust-best-practices loads whenever the agent writes or changes Rust. rust-review reviews a file, a crate or a diff and writes a three-tier report (must fix, should fix, consider), where each finding gives the file:line location, the rule it breaks and the smallest fix. rust-port converts C, C++, Python, Go or JavaScript, starting by porting the original tests, then delivers a PORTING.md file listing the deliberate differences.
The rules are distilled from five references (Google, the rust-lang API Guidelines, Effective Rust, Rust Design Patterns, Microsoft). A condensed digest of each is bundled for the agent, and when they disagree, the skill picks a side and explains why. The lints/ folder adds a clippy configuration that enforces the machine-checkable rules in continuous integration.
It is for developers who have an agent (Claude Code, Codex, Copilot, Cursor, Gemini CLI) write or review Rust and want a consistent style. It does not replace your tests or your own review: a port or rewrite is still code produced by an agent. If you don't write Rust, it is of no use to you.
What it offers
- ·The rust-best-practices skill triggers on its own when the agent writes or changes Rust (ownership and borrowing, API design, errors, concurrency, unsafe, documentation, tests).
- ·The rust-review skill runs cargo fmt, clippy and the tests when a toolchain is available, then writes a three-tier report with file:line, the rule broken and the smallest fix.
- ·The rust-port skill converts C, C++, Python, Go or JavaScript by designing a Rust API instead of a literal transliteration, and verifies with cargo test and clippy.
- ·Each port comes with a PORTING.md that maps the old API and tests to the new ones and lists every deliberate difference.
- ·Five references are condensed into the skill, and where they disagree, it picks a side and says why.
- ·A drop-in clippy configuration flags unwrap() outside tests, unsafe without a // SAFETY: comment, #[allow] without a reason, bool parameters, lossy as casts, missing # Errors and # Panics docs, and leftover dbg! and todo!.
- ·A script (scripts/check-lints.sh) checks that every lint in the table actually fires on a test crate containing one violation per lint.
- ·A Bevy 0.20 reference is read automatically when the project depends on bevy or bevy_ecs: it protects the engine's conventions and lists ECS bugs that compile cleanly.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, codex, copilot, cursor, gemini-cli
- Host
- any-agent
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Active
- Last release
- 30 October 2026
Links and repository checked on 29 November 2026 · added on 29 November 2026
How to install Beautiful Rust
npx skills add morganlinton/BeautifulRust