1---2name: antonygiomarxdev-maverick-rust-clean-code3description: Rust — clean code4---56# Rust — clean code78## Practical principles (community-aligned)910- **Readability over micro-optimization** unless a path is measured as hot.11- **Explicit over implicit**: clear return types; visible conversions (`.into()`, `TryFrom`).12- **Errors as values**: propagate `Result`; prefer `?` over nested `if let Err`.13- **Less shared mutable state**; when it exists, keep boundaries clear (`Arc`, channels, or single-owner design).1415## Review checklist1617- [ ] Does the function fit one screen and does its name describe the observable effect?18- [ ] Is every `pub` justified, or can visibility shrink?19- [ ] Any `unwrap`/`expect` outside tests or documented invariants?20- [ ] Do tests assert observable behavior, not brittle implementation details?2122## Warning signs2324- Many parameters of the same primitive type → context struct or builder.25- Heavy `clone` to appease the borrow checker without revisiting API boundaries → redesign ownership at the boundary.2627---28> Source: [antonygiomarxdev/maverick](https://github.com/antonygiomarxdev/maverick) — distributed by [TomeVault](https://tomevault.io).29<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/antonygiomarxdev-maverick-rust-clean-code in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Rust — clean code It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.