rust

rust is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 74 tokens per session (1,542 once invoked), scanned A, original, MIT.

Implementation and review guidance for Rust, a programming language often used for backend, systems, and desktop application code. It covers ownership, async work, errors, modules, serialization, concurrency, and performance.

In plain words
What is it for?
Use it to build, refactor, debug, or review Rust logic, including data models, asynchronous tasks, filesystem operations, concurrency, and tests.
Why use it?
It provides consistent patterns for writing reliable Rust code, especially when the Rust side handles files, processes, background work, or communication with a frontend.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to build, refactor, debug, or review Rust logic, including data models, asynchronous tasks, filesystem operations, concurrency, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/rust
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 JakubMikolajek/codex-skills-collection --skill rust
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: 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/jakubmikolajek/codex-skills-collection/rust/github.svg)](https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/rust)
Your own site
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/rust"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/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/jakubmikolajek/codex-skills-collection/rust"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,542 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.00074 $0.01542
Opus 5 $0.00037 $0.00771
Sonnet 5 $0.00015 $0.00308
Haiku 4.5 $0.00007 $0.00154

Measured 10d ago against content hash d8f1a8297235, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 162 lines

How it starts

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

Rust Implementation Patterns

Use this skill for idiomatic Rust with a practical bias toward Tauri-backed desktop application logic. Assume the Rust side often owns heavy operations such as filesystem work, process orchestration, indexing, background tasks, editor services, and stable IPC with the frontend.

Delivery Workflow

Use the checklist below and track progress:

Rust progress:
- [ ] Step 1: Discover crate boundaries, module layout, and Tauri integration points
- [ ] Step 2: Model ownership, data flow, and error shapes explicitly
- [ ] Step 3: Implement logic with small focused types and functions
- [ ] Step 4: Handle async work, IO, and concurrency without blocking UI flows
- [ ] Step 5: Verify tests, formatting, linting, and boundary behavior

Core Rust Rules

  • Model ownership intentionally before writing broad mutable flows.
  • Prefer simple types and explicit lifetimes over clever abstractions.
  • Use the type system to make invalid states difficult to represent.
  • Keep functions small, intention-revealing, and focused on one capability.
  • Avoid writing TypeScript, C++, or Java in Rust syntax.

Data Modeling and Errors

  • Prefer structs and enums that encode real domain meaning.
  • Use Result and Option intentionally; do not erase failure modes behind generic strings.
  • Model recoverable application errors explicitly and keep infrastructure errors distinguishable.
  • Use thiserror or the project-standard error pattern when structured errors improve clarity.
  • Keep serialization DTOs separate from internal domain types when the boundary is non-trivial.

Async, IO, and Concurrency

  • Keep blocking filesystem, process, or indexing work off the main async path when it can stall responsiveness.
  • Use the project's async runtime conventions consistently.
  • Preserve cancellation and shutdown behavior where long-running tasks exist.
  • Prefer message passing, task isolation, or scoped ownership over broad shared mutable state.
  • Make background work observable and controllable when it affects the UI experience.

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file 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. 10d ago First seen · 162 lines · 74 tokens per session scan A d8f1a8297235

Subscribe to this mod's changes

rust is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (5 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 1,542 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories