Codex-skill-rust

Codex-skill-rust is a skill for Claude Code, Codex from opencue/cuecards. It costs 42 tokens per session (2,304 once invoked), scanned A, original, MIT.

A Rust development guide covering code style, project structure, testing, building, and quality checks with Cargo, Rust’s build tool.

In plain words
What is it for?
Working on Rust source files and Cargo projects, including formatting code, choosing module layouts, running tests and builds, and configuring lints.
Why use it?
It gives coding agents consistent conventions for organizing Rust projects and validating changes.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/opencue/cuecards/claude-skill-rust
Any agent
npx skills add opencue/cuecards --skill claude-skill-rust
Clone the repo
git clone --depth 1 https://github.com/opencue/cuecards

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 Codex-skill-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencue/cuecards/claude-skill-rust.svg)](https://agentmods.dev/skills/opencue/cuecards/claude-skill-rust)
Your own site
<a href="https://agentmods.dev/skills/opencue/cuecards/claude-skill-rust"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/claude-skill-rust.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00042 $0.02304
Opus 5 $0.00021 $0.01152
Sonnet 5 $0.00008 $0.00461
Haiku 4.5 $0.00004 $0.00230

Measured 5d ago against content hash 7c7434cb12f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Codex-skill-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 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.

.agents/skills/claude-skill-rust/SKILL.md · 332 lines

How it starts

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

Rust Development Guide

Code Style

  • Follow standard Rust conventions and idioms
  • Use rustfmt for code formatting
  • Configure lints in lib.rs (see Crate-Level Lint Configuration below)
  • Prefer descriptive variable and function names

Module File Organization

Prefer the modern <module_name>.rs style over the legacy mod.rs style for module files.

Preferred (modern style):

src/
├── lib.rs
├── config.rs        # mod config
├── config/
│   └── parser.rs    # mod config::parser
├── network.rs       # mod network
└── network/
    ├── client.rs    # mod network::client
    └── server.rs    # mod network::server

Avoid (legacy style):

src/
├── lib.rs
├── config/
│   ├── mod.rs       # mod config
│   └── parser.rs    # mod config::parser
└── network/
    ├── mod.rs       # mod network
    ├── client.rs    # mod network::client
    └── server.rs    # mod network::server

Benefits of the modern style:

  • File names directly indicate the module name (no ambiguous mod.rs files)
  • Easier navigation in editors and file browsers
  • Clear correspondence between module path and file path
  • Supported since Rust 2018 edition

Crate-Level Lint Configuration

Define lint rules at the top of lib.rs (or main.rs for binaries) rather than via command-line flags. This ensures consistent enforcement and documents project standards.

#![deny(unsafe_code)]
#![cfg_attr(all(not(debug_assertions), not(test)), deny(clippy::all))]
#![cfg_attr(all(not(debug_assertions), not(test)), deny(clippy::pedantic))]
#![cfg_attr(all(not(debug_assertions), not(test)), deny(missing_docs))]
// Allow some pedantic lints that are too strict for this project
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::enum_variant_names)]
// Until 1.0.0, allow dead code and unused dependency warnings
#![allow(dead_code)]
#![allow(unused_crate_dependencies)]

Read the full file on GitHub · 332 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. 5d ago First seen · 332 lines · 42 tokens per session scan A 7c7434cb12f3

Subscribe to this mod's changes

Codex-skill-rust is a skill published in the GitHub repository opencue/cuecards (5 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 2,304 once invoked, about $0.0002 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.