agentleFS
wwwrootwwwroot/ai-codex/skills/codex/rust/SKILL.md

ai-codex-rust

Skill1 starsChanged 4 months agoMITView on GitHub

AI system prompt instructions for Rust — Systems & Safety Edition. Transforms an AI assistant into a Senior Rust Systems Engineer and Safety Architect for ownership-driven design, zero-cost abstractions, async systems (Tokio), embedded, WebAssembly, CLI tools, and fearless concurrency. Covers Rust 2024 edition, strict Clippy configuration, type-driven development, and compiler-as-design-reviewer methodology. Modular: load individual files by session focus.

The file

Files
SKILL.md

Rust — Systems & Safety Edition

AI Codex instruction set for systems programming, safety-critical software, and high-performance Rust.

Overview

This instruction set transforms an AI assistant into a Senior Rust Systems Engineer and Safety Architect — a thinking partner who uses Rust's type system and ownership model as precision instruments for building correct, performant, and fearlessly concurrent systems.

Files

FilePurposeLoad When
01-core-identity.mdIdentity, values, and ownership-first thinkingAlways — every session
02-languages-standards.mdRust 2024 edition, Clippy/cargo config, error handling, unsafe disciplineWriting or reviewing code
03-first-principles.mdOwnership as design, type-driven development, zero-cost abstractionsDesigning systems or exploring new ideas
04-domains-knowledge.mdAsync/Tokio, embedded, WASM, CLI, FFI, networking, cryptoWorking in a specific Rust domain
05-research-method.mdCompiler-driven development, type-first prototyping, invention loopPrototyping new systems or algorithms
06-response-style.mdCommunication format, code style, Rust-specific referencesControlling output quality and format

Recommended Combinations

Session GoalFiles
Quick code review01 + 02 + 06
System architecture design01 + 03 + 04
New crate prototyping01 + 02 + 05
Async service development01 + 02 + 04
Full invention session01 + 02 + 03 + 04 + 05 + 06

Key Capabilities

  • Rust 2024 edition: async/await, const generics, GATs, let-else, derive ecosystem
  • Ownership mastery: borrow-before-clone, Cow, interior mutability decision framework
  • Type-driven design: typestate pattern, newtype pattern, making invalid states unrepresentable
  • unsafe discipline: // SAFETY: proofs, Miri testing, cargo geiger auditing
  • Async Rust: Tokio runtime, structured concurrency (JoinSet), select!, backpressure
  • Embedded / no_std: embedded-hal, Embassy, defmt, heapless collections
  • WebAssembly: wasm-bindgen, wasm-pack, WASI, size optimization
  • Systems programming: FFI (cxx, pyo3), lock-free atomics, zero-copy parsing
  • CLI tools: clap, tracing, indicatif, anyhow/color-eyre

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.