Home / cq27-dev / rag-rat · .agents/skills/rust-modern-style/SKILL.md · GitHub

rust-modern-style skillA

rust-modern-style is agent-read markdown (skill) from cq27-dev/rag-rat: Apply rag-rat's Rust style when writing or reviewing Rust: current stable idioms, module-qualified free functions and constants, explicit persistence contracts, and narrow APIs..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Rust Modern Style

Use this skill when writing or reviewing Rust in the rag-rat repository. It complements async-specific
guidance; this skill owns the workspace's general Rust, module, persistence, and API conventions.

## Baseline

- Target the Rust 2024 edition and the current workspace `rust-version`; do not add compatibility
  shims for older compilers that the workspace does not support.
- Prefer current stable idioms when they make control flow clearer: `let-else`, inline format args,
  `matches!`, `is_some_and`, and `is_none_or`.
- Modern does not mean clever. Prefer explicit `match`, `if let`, and early returns over iterator or
  combinator chains that hide domain states or side effects.
- Prefer `std::sync::OnceLock` or `LazyLock` over new `lazy_static!` usage.
- Use `&str` and slices at borrowed boundaries instead of `&String` and `&Vec<T>`.

## Imports

Types, traits, enums, and structs may be imported directly. In a mixed or large import group, bring
the module in with `{self, ..}` and qualify free functions, constants, and macros at the call site.
This preserves origin information where the code is read.

```rust
…

Read the whole file at its exact version.

How to install

Latest version
mdr add cq27-dev/rag-rat/rust-modern-style@git:20260728.7d950c9
Exact content
mdr add cq27-dev/rag-rat/rust-modern-style@sha256:89906fe55b65ef3e

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ic5uemtujmv3k44f.svg)](https://markdownregistry.com/a/art_ic5uemtujmv3k44f)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260728.7d950c9 latest2026-07-28 7d950c9 8,013 BA view · diff
git:20260728.ea6e9da2026-07-28 ea6e9da 8,011 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8013 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

GitHub

cq27-dev/rag-rat · 20 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ic5uemtujmv3k44f
GET https://markdownregistry.com/api/v1/resolve?ref=cq27-dev/rag-rat/rust-modern-style
GET https://markdownregistry.com/api/v1/blob/89906fe55b65ef3ea12935d737f7e4385ab6c8e9a8a22b188d40d91522084046

Your agent 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.

More from cq27-dev/rag-rat

configure-rag-rat-dream skill
cq27-dev/rag-rat · .agents/skills/configure-rag-rat-dream/SKILL.md · Use to enable and operate rag-rat's optional AI memory-maintenance passes — the `dream --verify` / `--compact` model…
git:20260711.a2328dc · audit A · 20 stars
dream-review skill
cq27-dev/rag-rat · .agents/skills/dream-review/SKILL.md · Use when asked to review, triage, or resolve rag-rat "dream" findings — the memory-maintenance worklist the `dream`…
git:20260923.d7898ea · audit A · 20 stars
init-rag-rat skill
cq27-dev/rag-rat · .agents/skills/init-rag-rat/SKILL.md · Use to set up rag-rat in a repository that is not indexed yet — when the rag-rat MCP server is DORMANT (its tools…
git:20260923.7774461 · audit A · 20 stars
using-rag-rat skill
cq27-dev/rag-rat · .agents/skills/using-rag-rat/SKILL.md · Use when working in a repository indexed by rag-rat (a `rag-rat.toml` at the root and a rag-rat MCP server available)…
git:20260923.d7898ea · audit A · 20 stars
AGENTS.md agents
cq27-dev/rag-rat · AGENTS.md
git:20260923.5873be4 · audit A · 20 stars
CLAUDE.md claude
cq27-dev/rag-rat · CLAUDE.md
git:20260609.b6c71a8 · audit B · 20 stars
configure-rag-rat-dream skill
cq27-dev/rag-rat · plugin/skills/configure-rag-rat-dream/SKILL.md · Use to enable and operate rag-rat's optional AI memory-maintenance passes — the `dream --verify` / `--compact` model…
git:20260711.a2328dc · audit A · 20 stars
dream-review skill
cq27-dev/rag-rat · plugin/skills/dream-review/SKILL.md · Use when asked to review, triage, or resolve rag-rat "dream" findings — the memory-maintenance worklist the `dream`…
git:20260923.d7898ea · audit A · 20 stars
init-rag-rat skill
cq27-dev/rag-rat · plugin/skills/init-rag-rat/SKILL.md · Use to set up rag-rat in a repository that is not indexed yet — when the rag-rat MCP server is DORMANT (its tools…
git:20260923.7774461 · audit A · 20 stars
using-rag-rat skill
cq27-dev/rag-rat · plugin/skills/using-rag-rat/SKILL.md · Use when working in a repository indexed by rag-rat (a `rag-rat.toml` at the root and a rag-rat MCP server available)…
git:20260923.d7898ea · audit A · 20 stars

Every file in cq27-dev/rag-rat

Browse by kind, by grade A, or by owner.