Skip to content

Rust Engineer

Helps the agent write, review and debug idiomatic Rust code, including ownership, traits, async and error handling.

Stars
12,176
Licence
MIT
Files
6 files

What it does

When installed, the agent works as a Rust specialist: it designs ownership and borrowing patterns, writes trait-based APIs, builds async code with tokio, and handles errors with Result/Option and thiserror. It follows stated rules such as minimising unsafe code, documenting every unsafe block, avoiding unwrap() in production code, and running cargo clippy, cargo fmt and cargo test before finishing. Supporting reference notes on ownership, traits, error handling, async and testing are loaded when relevant.

Great for

  • Developers writing or refactoring Rust applications who want consistent, idiomatic code
  • Engineers stuck on borrow checker, lifetime or async/tokio problems
  • Teams wanting code reviews against Rust best practices

Skip it if

  • Non-Rust projects, since the guidance is specific to Rust and Cargo
  • Production code that is not reviewed by a human, because generated Rust still needs compiling, testing and security review
  • Anyone expecting the skill to run a project's tests itself; it only instructs the agent to run cargo commands in the user's environment

Try asking

  • “Review this Rust module for ownership and borrowing problems and suggest fixes”
  • “Design a trait hierarchy for a plugin system in my Rust crate”
  • “Convert this blocking file-processing function to async with tokio”
  • “Add thiserror-based custom error types and tests to my Rust library”
Step-by-step guide: how to use Rust EngineerInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 6 original files, the MIT licence and an attribution note.

    rust-engineer.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip rust-engineer.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip rust-engineer.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Give the agent the relevant Cargo.toml and the error or compiler message so it can reason about the exact issue.
  • Ask for tests and doctests alongside the code, since the skill's output template expects them.
  • Review any unsafe blocks and async/blocking boundaries manually, as these are the highest-risk areas in generated Rust.

What's inside

  • references/async.md
  • references/error-handling.md
  • references/ownership.md
  • references/testing.md
  • references/traits.md
  • SKILL.md

Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.