1. Habit
  2. Skills
  3. Rust Skills skill
leonardomso · 6K installs

Rust Skills skill
Runs by itself, Rust pull request opened.

Keep Rust code idiomatic and safe.

Install the Rust Skills skill and make it a habit: follow https://gethabit.dev/skills/leonardomso/rust-skills.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

6K installs613 starsMIT licenceSource on GitHub ↗

Rust Skills

by leonardomso · 6K installs

The skill

The rust skills skill gives 265 Rust coding rules in 26 categories, from ownership and error handling to async, unsafe, API design and performance, ranked by impact.

Only when you ask.

The habit

Keep Rust code idiomatic and safe.

↻ Runs by itselfRust pull request opened

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after 20 files or 2 fix rounds per run.

  1. 01

    Map the task

    Your agent picks the rule prefixes for the change, such as own-, err- and async-.

  2. 02

    Check critical rules

    It checks CRITICAL categories first, then HIGH, then MEDIUM.

  3. 03

    Read rule files

    It opens the matching file in rules/ for examples when unsure.

  4. 04

    Check anti-patterns

    It scans for anti- rules like unwrap in production or locks across await.

  5. 05

    Fix and verify

    It fixes findings and runs cargo fmt --check, clippy and tests.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Rust Skills skill helps.

Use it when

  • ✓ You write new Rust code
  • ✓ You review a Rust pull request
  • ✓ You tune Rust performance

Skip it when

  • – The project is not Rust
  • – You only need a formatter

Questions

Rust Skills skill, answered.

How many rules are there?

265 rules in 26 categories, ranked from CRITICAL to LOW.

Which Rust version?

Rust 1.96 and the 2024 edition.

How do I install the Rust Skills skill?

Copy the prompt at the top into your agent. It installs the skill from leonardomso/rust-skills and sets up the habit. Or run npx skills add leonardomso/rust-skills --skill rust-skills.

Is the Rust Skills skill free?

Yes. It is published under MIT. Habit is free too.

Rust Skills. Now as a habit.

Install the Rust Skills skill and make it a habit: follow https://gethabit.dev/skills/leonardomso/rust-skills.md

  • Free
  • No account
  • Undo in one line

All leonardomso skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by leonardomso, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.