Codex skills for Rust
With these skills Codex fixes borrow checker errors by restructuring ownership instead of adding clone or Rc<RefCell>, picks thiserror or anyhow by crate type, and audits unsafe blocks against their SAFETY preconditions with Miri. Further skills cover Axum 0.8 services, Tokio cancellation, Cargo workspaces, clap CLIs, WebAssembly and no_std Embassy firmware.
Start with these 3
- Rust CLI with clap Scriptable Rust CLIs that never panic on a pipe Codex designs the clap derive model first, validates values in the parser, and treats output as an interface: results on stdout, diagnostics on stderr, stable JSON Lines behind a flag, and exit codes documented in one place. It handles BrokenPipe so piping into head exits cleanly and covers every command with tests that run the compiled binary.
- Rust to WebAssembly Coarse-grained Wasm modules that stay small Codex first checks that Wasm fits the job, heavy compute in few calls rather than chatty DOM work, then sets up a cdylib crate with a narrow wasm-bindgen API that returns JsError instead of panicking. It picks the right wasm-pack target for your bundler, keeps the CLI and crate versions in lockstep, shrinks the output with release profile settings and wasm-opt, and tests both natively and in a headless browser.
- Embedded Rust with Embassy Async firmware in Rust without the yak shaving Codex sets up no_std Rust firmware with the right target triple, memory.x, probe-rs runner and defmt logging, then structures it as Embassy tasks that never block the executor. Drivers are written against embedded-hal 1.0 traits and tested on the host with mocks, shared state uses embassy-sync instead of static mut, and release profiles are tuned and measured for flash size.
10 more Rust skills
-
Rust Tokio Async
Tasks that start, stop and cancel on purpose -
Rust Axum
Extractors, state and tower layers that compile -
Rust Ownership
Satisfy the borrow checker without cloning everything -
Rust Error Handling
Typed errors for callers, full context for humans -
Cargo Workspaces
One lockfile, additive features, ordered releases -
Rust Unsafe Review
Prove every unsafe block or flag it -
Bevy Engine
Rust ECS games that compile on your Bevy version -
Tauri Apps
Small binaries, smallest possible permissions -
Fuzz Testing
Throw a million inputs at your parser first -
Solana Anchor
Validate every account the attacker hands you
General skills with Rust guidance
Not built around Rust, but they include steps or tools for it. Not part of the install-all command.
-
Codex Troubleshooting
From cryptic Codex error to named root cause -
Test-Driven Development
See it fail for the right reason, then pass -
Dependency Upgrades
One major at a time, changelog read first -
Merge Conflict Resolution
Keep both intents, not just one side's text -
Dead Code Removal
Delete unused code with evidence, not hope -
Semantic Versioning
Major, minor or patch, decided against the real API -
Naming Conventions
Names a reader can predict without opening the file -
Regex Crafting
Regexes with test tables and no catastrophic backtracking -
Browser Storage
The right store for every byte you keep client-side -
libSQL and Turso
Local-speed reads with a remote SQLite primary -
Dependency Scanning
Triage CVEs to fixes, not alert counts -
Mutation Testing
Find the bugs your green test suite would ship
Every Rust skill in one command
Installs these 13 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.
The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh
curl -fsSL codexskills.dev/install.sh | sh -s -- rust-clap-cli rust-wasm embedded-rust rust-tokio-async rust-axum rust-ownership rust-error-handling rust-cargo-workspaces rust-unsafe-review bevy-engine tauri-apps fuzz-testing solana-anchor Rust FAQ
Is there a Codex skill for Axum 0.8?
Rust Axum targets Axum 0.8, where paths use {id} and {*rest} and the old :id syntax panics at startup; when upgrading from 0.7 it also removes #[async_trait] from custom extractors. It keeps body extractors last, shares state through one Clone struct and maps failures through a single AppError, then tests routes in-process with oneshot.
Can Codex fix Rust borrow checker errors without cloning everything?
Rust Ownership reads the full rustc diagnostic for codes such as E0499, E0502 and E0505, then tries structural fixes first: ending a borrow early, splitting fields, mem::take, the entry API or index-based graphs. Clone and Rc
Do these skills cover async Rust with Tokio and graceful shutdown?
Rust Tokio Async gives every spawned task an owner through JoinSet or TaskTracker, wires shutdown with CancellationToken, and moves blocking work such as std::fs or bcrypt into spawn_blocking. It checks each select! branch for cancellation safety, because awaiting read_exact inside a select! loop can discard partially read data, and tests time-dependent logic with start_paused instead of real sleeps.
How do I install all 13 Rust skills at once?
Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- rust-clap-cli rust-wasm embedded-rust rust-tokio-async rust-axum rust-ownership rust-error-handling rust-cargo-workspaces rust-unsafe-review bevy-engine tauri-apps fuzz-testing solana-anchor. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.
Which Rust skill should I try first?
Rust CLI with clap is the closest fit for most Rust work. Mention it with $rust-clap-cli in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.