rust-engineer

rust-engineer is a skill for Claude Code, Codex from eric861129/SKILLS_All-in-one. It costs 120 tokens per session (1,388 once invoked), scanned A, a copy of rust-engineer, MIT.

A Rust development guide for writing, reviewing, and debugging safe Rust programs, including asynchronous applications and systems software.

In plain words
What is it for?
Use it to design Rust types and traits, build async programs with Tokio, manage errors, minimize unsafe code, and run formatting, linting, and tests.
Why use it?
It helps handle Rust's ownership, borrowing, lifetime, trait, and error-handling rules while checking code quality and tests.

Skill for Claude CodeCodex

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

Good fit Use it to design Rust types and traits, build async programs with Tokio, manage errors, minimize unsafe code, and run formatting, linting, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eric861129/skills_all-in-one/rust-engineer
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 eric861129/SKILLS_All-in-one --skill rust-engineer
Clone the repo
git clone --depth 1 https://github.com/eric861129/SKILLS_All-in-one

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/eric861129/skills_all-in-one/rust-engineer/github.svg)](https://agentmods.dev/skills/eric861129/skills_all-in-one/rust-engineer)
Your own site
<a href="https://agentmods.dev/skills/eric861129/skills_all-in-one/rust-engineer"><img src="https://agentmods.dev/badge/skills/eric861129/skills_all-in-one/rust-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/skills/eric861129/skills_all-in-one/rust-engineer"><img src="https://agentmods.dev/badge/skills/eric861129/skills_all-in-one/rust-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,388 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.
Origin 95% copy Near-identical to another mod 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.00120 $0.01388
Opus 5 $0.00060 $0.00694
Sonnet 5 $0.00024 $0.00278
Haiku 4.5 $0.00012 $0.00139

Measured 5d ago against content hash 2d2f54b45fa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rust-engineer 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 5d 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.

Origin

This is a copy

95% identical to rust-engineer — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

public/SKILLS/Development & Code Tools/rust-engineer/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust Engineer

Senior Rust engineer with deep expertise in Rust 2021 edition, systems programming, memory safety, and zero-cost abstractions. Specializes in building reliable, high-performance software leveraging Rust's ownership system.

Core Workflow

  1. Analyze ownership — Design lifetime relationships and borrowing patterns; annotate lifetimes explicitly where inference is insufficient
  2. Design traits — Create trait hierarchies with generics and associated types
  3. Implement safely — Write idiomatic Rust with minimal unsafe code; document every unsafe block with its safety invariants
  4. Handle errors — Use Result/Option with ? operator and custom error types via thiserror
  5. Validate — Run cargo clippy --all-targets --all-features, cargo fmt --check, and cargo test; fix all warnings before finalising

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Ownership references/ownership.md Lifetimes, borrowing, smart pointers, Pin
Traits references/traits.md Trait design, generics, associated types, derive
Error Handling references/error-handling.md Result, Option, ?, custom errors, thiserror
Async references/async.md async/await, tokio, futures, streams, concurrency
Testing references/testing.md Unit/integration tests, proptest, benchmarks

Key Patterns with Examples

Ownership & Lifetimes

// Explicit lifetime annotation — borrow lives as long as the input slice
fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
    if x.len() > y.len() { x } else { y }
}

// Prefer borrowing over cloning
fn process(data: &[u8]) -> usize {   // &[u8] not Vec<u8>
    data.iter().filter(|&&b| b != 0).count()
}

Trait-Based Design

use std::fmt;

trait Summary {
    fn summarise(&self) -> String;
    fn preview(&self) -> String {          // default implementation
        format!("{}...", &self.summarise()[..50])
    }
}

#[derive(Debug)]
struct Article { title: String, body: String }

impl Summary for Article {
    fn summarise(&self) -> String {
        format!("{}: {}", self.title, self.body)
    }
}

Read the full file on GitHub · 168 lines

Files

What ships with it

5 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. 5d ago First seen · 168 lines · 120 tokens per session scan A 2d2f54b45fa2

Subscribe to this mod's changes

rust-engineer is a skill published in the GitHub repository eric861129/SKILLS_All-in-one (52 stars, last pushed 4mo ago), licensed MIT. It adds 120 tokens to every session and 1,388 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to rust-engineer, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories