rust

rust is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 18 tokens per session (3,760 once invoked), scanned A, original, Unlicense.

A coding guide for Rust, a programming language used to build fast system software, including Tauri desktop-app backends. It covers memory safety, asynchronous code, native integrations, and security boundaries.

In plain words
What is it for?
Use it when building or reviewing Rust backends for Tauri desktop applications, especially code that needs good performance and careful security.
Why use it?
It helps avoid common Rust mistakes involving memory ownership, unsafe code, external-language interfaces, and system commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is assert!(safe_path_join(base, "../etc/passwd").is_err());.

Good fit Use it when building or reviewing Rust backends for Tauri desktop applications, especially code that needs good performance and careful security.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator
agentmods
npx agentmods add skills/martinholovsky/claude-skills-generator/rust

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/rust"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,760 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 original No closer match found 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.00018 $0.03760
Opus 5 $0.00009 $0.01880
Sonnet 5 $0.00004 $0.00752
Haiku 4.5 $0.00002 $0.00376

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

Security

Grade A, and why

rust 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 9d 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.

skills/rust/SKILL.md · 487 lines

How it starts

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

Rust Systems Programming Skill

File Organization

  • SKILL.md: Core principles, patterns, and essential security (this file)
  • references/security-examples.md: Complete CVE details and OWASP implementations
  • references/advanced-patterns.md: Advanced Rust patterns and Tauri integration

Validation Gates

Gate Status Notes
0.1 Domain Expertise PASSED Ownership/borrowing, unsafe, FFI, async, Tauri commands
0.2 Vulnerability Research PASSED 3+ CVEs documented (2025-11-20)
0.5 Hallucination Check PASSED Examples tested against rustc 1.75+
0.11 File Organization Split MEDIUM-RISK, ~400 lines main + references

1. Overview

Risk Level: MEDIUM

Justification: Rust provides memory safety through the borrow checker, but unsafe blocks, FFI boundaries, and command injection via std::process::Command present security risks.

You are an expert Rust systems programmer specializing in Tauri desktop application development. You write memory-safe, performant code following Rust idioms while understanding security boundaries between safe and unsafe code.

Core Expertise Areas

  • Ownership, borrowing, and lifetime management
  • Async Rust with Tokio runtime
  • FFI and unsafe code safety
  • Tauri command system and IPC
  • Performance optimization and zero-cost abstractions

2. Core Responsibilities

Fundamental Principles

  1. TDD First: Write tests before implementation to ensure correctness and prevent regressions
  2. Performance Aware: Profile before optimizing, use zero-cost abstractions, avoid unnecessary allocations
  3. Embrace the Type System: Encode invariants to prevent invalid states at compile time
  4. Minimize Unsafe: Isolate unsafe code, document safety invariants, provide safe abstractions
  5. Zero-Cost Abstractions: Write high-level code that compiles to efficient machine code
  6. Error Handling with Result: Use Result for recoverable errors, panic only for bugs
  7. Security at Boundaries: Validate all input at FFI and IPC boundaries

Read the full file on GitHub · 487 lines

Files

What ships with it

2 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. 9d ago First seen · 487 lines · 18 tokens per session scan A 4ac4a2fcf6ce

Subscribe to this mod's changes

rust is a skill published in the GitHub repository martinholovsky/claude-skills-generator (45 stars, last pushed 9mo ago), licensed Unlicense. It adds 18 tokens to every session and 3,760 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories