format_rust SKILL.md skillA
format_rust from theafh/ai-modules is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add theafh/ai-modules/format_rust@v1.3.2Pins v1.3.2 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- theafh/ai-modules
- Path
plugins/ai_dev/skills/format_rust/SKILL.md- Versions recorded
- 3
- Latest version
- v1.3.2, committed Sep 5, 2026
- First version recorded
- May 3, 2026
- Size
- 6,433 bytes
- Repository stars
- 38
- License
- MIT
Apply clippy-aligned Rust practices when writing or editing Rust code (.rs). Covers procedural flow, clippy-driven clarity improvements, minimal imports, Result/Option idioms, the error-versus-invariant model with panic discipline and clippy unwrap_used enforcement, fallible builders following the error idiom by consumer, string prefix/suffix handling, borrowing clarity, iteration style, string building, and function signature grouping.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# format_rust ## Preferred style Use clear, procedural flow with small, single‑purpose functions and explicit data flow; keep names concrete so intent is obvious at a glance. ## Clippy‑driven improvements Write code that naturally satisfies clippy by choosing the simplest correct form, and treat clippy warnings as signals to improve clarity, safety, and maintainability. ## Imports Use only necessary imports and prefer direct module paths; remove unused imports promptly to keep warnings clean. ## Errors versus broken invariants Treat a failure the world causes, such as a missing file, malformed input, a value that does not parse, or a timeout, as a `Result` the caller handles with `?`. Treat a failure that means one of the program's own guarantees is false as a panic, because continuing would compute on state already known to be void. Reach for `unwrap` only in that second category: it is an assertion, not a fallback. At each fallible call, decide whether failure there means the world is wrong or the code is wrong, and route accordingly. Using `unwrap` because writing the error type is tedious claims a broken invariant while actually sitting in an unhandled error. …
Read the whole file at its exact version.
How to install
mdr add theafh/ai-modules/format_rust@sha256:ecd5d410d591a0cfThe line at the top of this page pins the label v1.3.2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_3eogwbpyyblie2g6)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between May 3, 2026 and Sep 5, 2026, about one every 63 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.3.2 latest | 2026-09-05 | e04ae6b | 6,433 B | A | view · diff |
| v1.3.1 | 2026-08-09 | 37e3ba6 | 6,427 B | A | view · diff |
| v1.3.0 | 2026-05-03 | 218abb8 | 2,092 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6433 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
theafh/ai-modules · 38 stars · license MIT · pushed 2026-10-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3eogwbpyyblie2g6 GET https://markdownregistry.com/api/v1/resolve?ref=theafh/ai-modules/format_rust GET https://markdownregistry.com/api/v1/blob/ecd5d410d591a0cfb6c2257f849c17311c24ff42cc6a45f59e0d8a71a7cabebb
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.