Agent skill

Rust Skills

by noh-rs in noh-rs/nohrs

Comprehensive Rust coding guidelines with 179 rules across 14 categories.

MITAuto-check passedDevelopment

Install Rust Skills

skills CLI
$ npx skills add noh-rs/nohrs --skill rust-skills -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install noh-rs/nohrs rust-skills --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/noh-rs/nohrs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/rust-skills .claude/skills/rust-skills && rm -rf skills-src

Use ~/.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/

Facts

Skill name
rust-skills
GitHub stars
156
Token cost
~5.3k tokens
SKILL.md length
1,466 words
Files
184
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive Rust coding guidelines with 179 rules across 14 categories.

  • Works in 12 steps: Ownership & Borrowing (CRITICAL) → Error Handling (CRITICAL) → Memory Optimization (CRITICAL) → …
  • Refactoring Rust code
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and Recommended Cargo.toml Settings, plus 2 more sections
  • Calls cargo

What it does

Rust Skills is an agent skill from noh-rs/nohrs. Comprehensive Rust coding guidelines with 179 rules across 14 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, API design, memory optimization, performance, testing, and common anti-patterns. Invoke with /rust-skills.

Its SKILL.md is about 5.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 184 other files (for example `AGENTS.md`, `CLAUDE.md` and `README.md`).

It sits in Development, covering API design, Load testing and Refactoring. It works with Rust. The repository describes itself as: Launcher × Explorer - a fast, keyboard-driven Finder alternative, extensible with sandboxed WASM plugins. Built in Rust. The licence is MIT.

When your agent uses it

  • Refactoring Rust code
  • Tasks that involve API design
  • Tasks that involve Load testing

Example prompts

  • “/rust-skills”

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Ownership & Borrowing (CRITICAL)
  2. Error Handling (CRITICAL)
  3. Memory Optimization (CRITICAL)
  4. API Design (HIGH)
  5. Async/Await (HIGH)
  6. Compiler Optimization (HIGH)
  7. Naming Conventions (MEDIUM)
  8. Type Safety (MEDIUM)
  9. Testing (MEDIUM)
  10. Documentation (MEDIUM)
  11. Performance Patterns (MEDIUM)
  12. Project Structure (LOW)

What it can do on your machine

Read from SKILL.md and the folder at commit 42b90ff. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • rust-lang.github.io
    • nnethercote.github.io
    • rust-unofficial.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rust Skills loads about 5.3k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 1,466 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~5.3k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from noh-rs/nohrs at commit 42b90ff, republished under its MIT licence (© noh-rs). 1,466 words, ~5,258 tokens.

Download SKILL.mdSave it as .claude/skills/rust-skills/SKILL.md (or your agent's skills folder). This skill also uses 183 other files; get the full folder from GitHub.
name
rust-skills
description
Comprehensive Rust coding guidelines with 179 rules across 14 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, API design, memory optimization, performance, testing, and common anti-patterns. Invoke with /rust-skills.
license
MIT
metadata.author
leonardomso
metadata.version
1.0.0
metadata.sources
Rust API Guidelines, Rust Performance Book, ripgrep, tokio, serde, polars codebases

Rust Best Practices

Comprehensive guide for writing high-quality, idiomatic, and highly optimized Rust code. Contains 179 rules across 14 categories, prioritized by impact to guide LLMs in code generation and refactoring.

When to Apply

Reference these guidelines when:

  • Writing new Rust functions, structs, or modules
  • Implementing error handling or async code
  • Designing public APIs for libraries
  • Reviewing code for ownership/borrowing issues
  • Optimizing memory usage or reducing allocations
  • Tuning performance for hot paths
  • Refactoring existing Rust code

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Ownership & BorrowingCRITICALown-12
2Error HandlingCRITICALerr-12
3Memory OptimizationCRITICALmem-15
4API DesignHIGHapi-15
5Async/AwaitHIGHasync-15
6Compiler OptimizationHIGHopt-12
7Naming ConventionsMEDIUMname-16
8Type SafetyMEDIUMtype-10
9TestingMEDIUMtest-13
10DocumentationMEDIUMdoc-11
11Performance PatternsMEDIUMperf-11
12Project StructureLOWproj-11
13Clippy & LintingLOWlint-11
14Anti-patternsREFERENCEanti-15

Quick Reference

1. Ownership & Borrowing (CRITICAL)
2. Error Handling (CRITICAL)
3. Memory Optimization (CRITICAL)
4. API Design (HIGH)
5. Async/Await (HIGH)
6. Compiler Optimization (HIGH)
7. Naming Conventions (MEDIUM)
8. Type Safety (MEDIUM)
Show full SKILL.md (555 more words)Show less
9. Testing (MEDIUM)
10. Documentation (MEDIUM)
11. Performance Patterns (MEDIUM)
12. Project Structure (LOW)
13. Clippy & Linting (LOW)
14. Anti-patterns (REFERENCE)

toml
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true

[profile.bench]
inherits = "release"
debug = true
strip = false

[profile.dev]
opt-level = 0
debug = true

[profile.dev.package."*"]
opt-level = 3  # Optimize dependencies in dev

How to Use

This skill provides rule identifiers for quick reference. When generating or reviewing Rust code:

  1. Check relevant category based on task type
  2. Apply rules with matching prefix
  3. Prioritize CRITICAL > HIGH > MEDIUM > LOW
  4. Read rule files in rules/ for detailed examples
Rule Application by Task
TaskPrimary Categories
New functionown-, err-, name-
New struct/APIapi-, type-, doc-
Async codeasync-, own-
Error handlingerr-, api-
Memory optimizationmem-, own-, perf-
Performance tuningopt-, mem-, perf-
Code reviewanti-, lint-

Sources

This skill synthesizes best practices from:

© noh-rs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 183 other files in .codex/skills/rust-skills of noh-rs/nohrs.

  • SKILL.md
  • AGENTS.md
  • CLAUDE.md
  • LICENSE
  • README.md
  • rules/anti-clone-excessive.md
  • rules/anti-collect-intermediate.md
  • rules/anti-empty-catch.md
  • rules/anti-expect-lazy.md
  • rules/anti-format-hot-path.md
  • rules/anti-index-over-iter.md
  • rules/anti-lock-across-await.md
  • rules/anti-over-abstraction.md
  • rules/anti-panic-expected.md
  • rules/anti-premature-optimize.md
  • rules/anti-string-for-str.md
  • rules/anti-stringly-typed.md
  • rules/anti-type-erasure.md
  • rules/anti-unwrap-abuse.md
  • rules/anti-vec-for-slice.md
  • … and 164 more

Open the folder on GitHubat commit 42b90ff

Compare with similar skills

Rust Skills 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.

Rust Skills compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust Skills this skillnoh-rs/nohrs156—~5.3kAutomated safety check: PassMIT
Rust SkillsJMBeresford/retrom2.1k1 repos~9.5kAutomated safety check: PassMIT
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Code Qualitystatic-web-server/static-web-server2.4k—~1.1kAutomated safety check: PassApache-2.0
Rust Best Practicesscott-fryxell/brayness125—~888Automated safety check: PassMIT
Rust Trait API Designhashgraph-online/awesome-codex-plugins1.3k—~929Automated safety check: PassMIT

Similar skills

  • Rust Skills

    JMBeresford/retrom

    Comprehensive Rust coding guidelines with 265 rules across 26 categories.

    2.1k GitHub starsUsed in 1 repo~9.5k tokens
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Code Quality

    static-web-server/static-web-server

    Review or self-check a change to the Static Web Server (SWS) project before it is called done — correctness, invariants, API design, concurrency, maintainability, and an SWS-specific review checklist.

    2.4k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Rust Best Practices

    scott-fryxell/brayness

    Idiomatic Rust guide based on Apollo GraphQL's best practices handbook.

    125 GitHub stars~888 tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Rust Trait API Design

    hashgraph-online/awesome-codex-plugins

    Design and review Rust trait APIs, generic bounds, dispatch models, and conversion contracts for clear public interfaces.

    1.3k GitHub stars~929 tokensUpdated today
    Backend & APIsAuto-check passed
  • A skill your agent uses when optimizing, refactoring, reviewing, or fixing AtomUI controls, including control API contracts, member layout, file splitting, lifecycle, AXAML structure, correctness…

    842 GitHub stars~3.4k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from noh-rs/nohrs

  • Pull Request

    noh-rs/nohrs

    Take a change from working tree to a merge-ready pull request, then keep iterating until the CI checks and AI reviewers (CodeRabbit, cubic) all pass.

    156 GitHub stars~4.1k tokensUpdated 8 days ago
    Auto-check passed

Works with

Questions about Rust Skills

What does Rust Skills do?

Comprehensive Rust coding guidelines with 179 rules across 14 categories. Rust Skills is an agent skill from noh-rs/nohrs. Comprehensive Rust coding guidelines with 179 rules across 14 categories.

When should I use Rust Skills?

Rust Skills fits situations like: refactoring Rust code; tasks that involve API design; tasks that involve Load testing.

How do I install Rust Skills in Claude Code?

Run `npx skills add noh-rs/nohrs --skill rust-skills -a claude-code`. Or copy the skill folder (.codex/skills/rust-skills in noh-rs/nohrs) into .claude/skills/rust-skills in your project. Claude Code loads it when a task matches its description.

How do I install Rust Skills in Codex?

Run `npx skills add noh-rs/nohrs --skill rust-skills -a codex`. Or copy the skill folder (.codex/skills/rust-skills in noh-rs/nohrs) into .agents/skills/rust-skills in your project. Codex loads it when a task matches its description.

Can I use Rust Skills in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add noh-rs/nohrs --skill rust-skills -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-skills, .gemini/skills/rust-skills, .github/skills/rust-skills and .opencode/skills/rust-skills in your project.

What does Rust Skills need to run?

Going by SKILL.md and its folder, Rust Skills needs the command-line tools its instructions call (cargo).

Does Rust Skills access the network?

SKILL.md names 3 domains. As links in the text: rust-lang.github.io, nnethercote.github.io and rust-unofficial.github.io. This is read from the text; nothing was executed.

Is Rust Skills safe to install?

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.

What licence does Rust Skills use?

Rust Skills is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rust Skills use?

About 5.3k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rust Skills?

Skills that share tags, products or a category with Rust Skills: Rust Skills (JMBeresford/retrom, 2.1k stars), Rust Best Practices (farm-fe/farm, 5.6k stars), Code Quality (static-web-server/static-web-server, 2.4k stars) and Rust Best Practices (scott-fryxell/brayness, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust Skills?

noh-rs (a GitHub organization) maintains it in noh-rs/nohrs, which has 156 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 2, 2026.

Source: noh-rs/nohrs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.