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

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating, reviewing, refactoring, or configuring Rust applications, libraries, services, command-line tools, and workspaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabro-sh/fabro/rust-style-guide
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,720 stars · on GitHub · fabro.sh

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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-style-guide

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00100 $0.00837
Opus 5.5 $0.00040 $0.00335
Sonnet 5.5 $0.00020 $0.00167
Haiku 4.5 $0.00010 $0.00084

Measured 1mo ago against content hash 69dc62569421, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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,720 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 837 once invoked, about $0.0004 per session on Opus 5.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.