Rust Skills
JMBeresford/retrom
Comprehensive Rust coding guidelines with 265 rules across 26 categories.
Rust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and…
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Goldziher/ai-rulez rust-conventions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .claude/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .claude/skills/rust-conventions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .claude/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Goldziher/ai-rulez rust-conventions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .agents/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .agents/skills/rust-conventions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .agents/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Goldziher/ai-rulez rust-conventions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .cursor/skills/rust-conventions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .cursor/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Goldziher/ai-rulez.git --path internal/builtins/languages/rust/skills/rust-conventions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Goldziher/ai-rulez rust-conventions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .gemini/skills/rust-conventions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .gemini/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Goldziher/ai-rulez rust-conventionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .github/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .github/skills/rust-conventions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .github/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Goldziher/ai-rulez --skill rust-conventions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Goldziher/ai-rulez rust-conventions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/ai-rulez.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/internal/builtins/languages/rust/skills/rust-conventions .opencode/skills/rust-conventions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rust-conventions" agent skill from https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/rust/skills/rust-conventions into .opencode/skills/rust-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-conventions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rust-conventionsRust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and…
Rust Conventions is an agent skill from Goldziher/ai-rulez. Rust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and security scanning. Load when writing or reviewing Rust code.
Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering API design. It works with Rust. The repository describes itself as: One source of truth for AI assistant configs: 14 built-in presets (Claude, Cursor, Copilot, Codex, Gemini, Xum, …), full-parity custom presets, and distributable plugin bundles… The licence is MIT.
Read from SKILL.md and the folder at commit 2dbd6a4. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
cargoFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
rust-lang.github.iorust-unofficial.github.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rust Conventions loads about 746 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 317 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Goldziher/ai-rulez at commit 2dbd6a4, republished under its MIT licence (© Goldziher). 317 words, ~746 tokens.
.claude/skills/rust-conventions/SKILL.md (or your agent's skills folder).cargo fmt + clippy -D warnings, zero warnings policy.Result<T, E> with a derive-based error crate (e.g., thiserror) for library errors, a context-adding error crate (e.g., anyhow) for applications. ? for propagation — never .unwrap() in library code.unsafe — every block needs // SAFETY: comment explaining invariants.&str over String in params, Cow<'_, str> for conditional ownership, Arc for shared ownership.impl Trait in argument position for static dispatch, dyn Trait for dynamic dispatch when heterogeneous collections needed.pub(crate) for internal visibility. Workspace inheritance for multi-crate repos.#[cfg(test)] for unit tests, tests/ for integration, a coverage tool (e.g., cargo-llvm-cov) for coverage.tokio runtime, 'static + Send + Sync bounds, tokio::spawn for concurrency.cargo audit for CVE scanning, cargo deny for license and advisory policies.Cargo.lock, prefer well-maintained crates.tracing crate) — not println!.as_/to_/into_ conventions for conversions, iter()/iter_mut()/into_iter() for iterators. Getters are field() not get_field(). See Rust API Guidelines.Clone, Debug, Default, Eq, PartialEq, Hash, Send, Sync. Use From/AsRef/AsMut for conversions, FromIterator/Extend for collections.bitflags over enums for flag sets. Avoid bool params — use custom types or enums.new() as static inherent methods. No out-parameters. Only smart pointers implement Deref/DerefMut.? (not unwrap). Document errors, panics, and safety invariants. Hyperlink related items.unwrap(), unguarded unsafe, panics in libraries, Vec/HashMap across FFI.© Goldziher, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in internal/builtins/languages/rust/skills/rust-conventions of Goldziher/ai-rulez.
Open the folder on GitHubat commit 2dbd6a4
Rust Conventions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rust Conventions this skillGoldziher/ai-rulez | 159 | — | ~746 | Automated safety check: Pass | MIT | |
| Rust SkillsJMBeresford/retrom | 2.1k | 1 repos | ~9.5k | Automated safety check: Pass | MIT | |
| Rust Skillsnoh-rs/nohrs | 156 | — | ~5.3k | Automated safety check: Pass | MIT | |
| API Designaxone-protocol/contracts | 123 | — | ~1.1k | Automated safety check: Pass | BSD-3-Clause | |
| Rust Best Practicesmajiayu000/spellbook | 287 | — | ~955 | Automated safety check: Pass | MIT | |
| Rust Trait API Designhashgraph-online/awesome-codex-plugins | 1.3k | — | ~929 | Automated safety check: Pass | MIT |
JMBeresford/retrom
Comprehensive Rust coding guidelines with 265 rules across 26 categories.
noh-rs/nohrs
Comprehensive Rust coding guidelines with 179 rules across 14 categories.
axone-protocol/contracts
Best practices for designing CosmWasm smart contract APIs. An agent skill from axone-protocol/contracts.
majiayu000/spellbook
A skill your agent uses when writing, modifying, or reviewing Rust code.
hashgraph-online/awesome-codex-plugins
Design and review Rust trait APIs, generic bounds, dispatch models, and conversion contracts for clear public interfaces.
static-web-server/static-web-server
Optimize or review performance for the Static Web Server (SWS) project — profiling, bottlenecks, resource usage, compression, and caching
Goldziher/ai-rulez
Manage AI assistant governance rules across 52 harnesses (Claude Code, Cursor, Codex, Copilot, Gemini CLI, OpenCode, Devin, and more) using ai-rulez.
Goldziher/ai-rulez
Concrete code-quality thresholds and anti-patterns: 120-char lines, max 20 cyclomatic complexity, max 4 nesting levels, max 50 lines per function, no magic numbers, no global state, composition over…
Goldziher/ai-rulez
How to write a good test: behaviour-describing names (shouldreturnerrorwheninputisempty, givenwhenthen), exact-value assertions over truthiness, snapshot and property-based testing…
Goldziher/ai-rulez
vite+ unified TypeScript toolchain conventions: the vp CLI for package/node management, oxlint/oxfmt, type-aware linting, vitest, rolldown/tsdown bundling, task caching, and migration.
Goldziher/ai-rulez
Cross-language binding architecture rules: bindings as minimal glue, canonical API surface ordering (core, ABI, language), per-language test suites in CI, generated-code discipline, and error/async…
Goldziher/ai-rulez
cgo conventions for linking Go to a C or Rust static library: import "C" directives, type/string conversion, CString memory management, thread safety, and Go pointer pinning.
Works with
Categories
Rust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and…. Rust Conventions is an agent skill from Goldziher/ai-rulez. Rust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and security scanning.
Rust Conventions fits situations like: tasks that involve API design.
Run `npx skills add Goldziher/ai-rulez --skill rust-conventions -a claude-code`. Or copy the skill folder (internal/builtins/languages/rust/skills/rust-conventions in Goldziher/ai-rulez) into .claude/skills/rust-conventions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Goldziher/ai-rulez --skill rust-conventions -a codex`. Or copy the skill folder (internal/builtins/languages/rust/skills/rust-conventions in Goldziher/ai-rulez) into .agents/skills/rust-conventions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Goldziher/ai-rulez --skill rust-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-conventions, .gemini/skills/rust-conventions, .github/skills/rust-conventions and .opencode/skills/rust-conventions in your project.
Going by SKILL.md and its folder, Rust Conventions needs the command-line tools its instructions call (cargo).
SKILL.md names 2 domains. As links in the text: rust-lang.github.io and rust-unofficial.github.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Rust Conventions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 746 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rust Conventions: Rust Skills (JMBeresford/retrom, 2.1k stars), Rust Skills (noh-rs/nohrs, 156 stars), API Design (axone-protocol/contracts, 123 stars) and Rust Best Practices (majiayu000/spellbook, 287 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Goldziher (a GitHub user) maintains it in Goldziher/ai-rulez, which has 159 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 9, 2026.
Source: Goldziher/ai-rulez on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.