rust-style-guide

rust-style-guide is a skill for Claude Code, Codex from fabro-sh/fabro. It costs 100 tokens per session (837 once invoked), scanned A, original, MIT.

A set of conventions for writing and reviewing Rust code, including code structure, errors, testing, formatting, and supported Rust versions.

In plain words
What is it for?
Use it when creating, reviewing, refactoring, or configuring Rust applications, libraries, services, command-line tools, and workspaces.
Why use it?
It gives the project a consistent way to make technical decisions and helps avoid style and compatibility problems.

Skill for Claude CodeCodex

About the project

Fabro is an open-source system for defining software-development workflows as graphs that AI coding agents execute with verification steps and opportunities for human intervention. Expert engineers and teams use it to coordinate agent tasks, combine models, share version-controlled processes, run agents in isolated sandboxes, and queue work through an API server. The catalogue entries are Fabro-specific skills, instructions, hooks, and settings for working with the system.

fabro-sh/fabro · 1,571 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fabro-sh/fabro/rust-style-guide
Any agent
npx skills add fabro-sh/fabro --skill rust-style-guide
Clone the repo
git clone --depth 1 https://github.com/fabro-sh/fabro

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-style-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabro-sh/fabro/rust-style-guide.svg)](https://agentmods.dev/skills/fabro-sh/fabro/rust-style-guide)
Your own site
<a href="https://agentmods.dev/skills/fabro-sh/fabro/rust-style-guide"><img src="https://agentmods.dev/badge/skills/fabro-sh/fabro/rust-style-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00100 $0.00837
Opus 5 $0.00050 $0.00418
Sonnet 5 $0.00020 $0.00167
Haiku 4.5 $0.00010 $0.00084

Measured 5d ago against content hash 69dc62569421, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-style-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.fabro/skills/rust-style-guide/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust Style Guide

Use this skill to apply the project's Rust style conventions while writing, reviewing, refactoring, or configuring Rust code.

Location: This skill's supporting files live in .fabro/skills/rust-style-guide/ at the repository root. Every linked path below (guidelines.md, guidelines/*.md, workflows/*.md) is relative to that directory. Read them with that prefix — e.g. .fabro/skills/rust-style-guide/guidelines.md.

Supporting Files

Routing Examples

Task Load
Create a new Rust project workflows/new-rust-project.md, guidelines.md
Verify a reusable library release workflows/reusable-library-release.md, guidelines.md
Investigate performance workflows/performance-investigation.md, guidelines.md
Review or refactor code workflows/code-review-refactor.md, guidelines.md
Define a public library error type guidelines.md, library/application errors, error propagation, public API evolution
Handle top-level CLI/application errors guidelines.md, library/application errors, error propagation, panics
Choose enum vs trait vs trait object guidelines.md, enums vs traits, trait design, public API evolution
Add a domain ID or validated value guidelines.md, newtypes, constructors, validation
Write async service code guidelines.md, async runtime, task lifecycle, shutdown, logging
Add instrumentation guidelines.md, logging and observability, error messages
Configure formatting, lints, or tests guidelines.md, rustfmt, Clippy, Cargo, CI
Review unsafe code or macros guidelines.md, unsafe and macros, public API evolution

Read the full file on GitHub · 45 lines

Files

What ships with it

43 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 45 lines · 100 tokens per session scan A 69dc62569421

Subscribe to this mod's changes

rust-style-guide is a skill published in the GitHub repository fabro-sh/fabro (1,571 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 837 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

lint-js

Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).

denoland/deno · 29 tokens

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.

affaan-m/ECC · 28 tokens

ccxt-rust

CCXT cryptocurrency exchange library for Rust developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in Rust projects. Use when working with crypto…

ccxt/ccxt · 96 tokens

rust-code-quality

Run a focused Rust quality review when the user requests one, when reviewing a Rust PR/commit, or when another selected review workflow delegates Rust-specific checks. Do not auto-load for every implementation edit.

rustfs/rustfs · 44 tokens

switchyard-rust-review

Review Switchyard Rust changes for correctness and maintainability. Use for pull requests or diffs touching crates, PyO3 bindings, async runtime behavior, streaming, protocol types, translation, algorithms, or LLM clients.

NVIDIA-NeMo/Switchyard · 50 tokens

rust-pro

Master modern Rust (2024 edition) with async patterns, advanced type system features, and production-ready systems programming. Expert in the current Rust ecosystem including Tokio, axum, and modern crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.

vudovn/ag-kit · 58 tokens