rust-core-language

rust-core-language is a skill for Claude Code, Codex from fusengine/agents. It costs 58 tokens per session (1,258 once invoked), scanned A, original, MIT.

A guide to writing idiomatic Rust, including ownership and borrowing, the rules Rust uses to manage memory safely. It also addresses common problems in machine-generated Rust code.

In plain words
What is it for?
Use it to write or review Rust 2024 code and improve how data ownership, iteration, strings, and error-prone shortcuts are handled.
Why use it?
It helps avoid unnecessary cloning, excessive unwrap calls, unsuitable string types, and overcomplicated lifetime annotations.

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/fusengine/agents/rust-core-language
Any agent
npx skills add fusengine/agents --skill rust-core-language
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

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-core-language

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/rust-core-language.svg)](https://agentmods.dev/skills/fusengine/agents/rust-core-language)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/rust-core-language"><img src="https://agentmods.dev/badge/skills/fusengine/agents/rust-core-language.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00058 $0.01258
Opus 5 $0.00029 $0.00629
Sonnet 5 $0.00012 $0.00252
Haiku 4.5 $0.00006 $0.00126

Measured today against content hash a7a6287df832, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-core-language 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 today.

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.

plugins/rust-expert/skills/rust-core-language/SKILL.md · 100 lines

How it starts

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

It also covers correcting the recurring failure modes of machine-generated Rust: the clone tax (cloning to silence the borrow checker instead of redesigning ownership), unwrap/expect infestation, String vs &str misuse, indexed loops instead of iterators, and over-annotated lifetimes the compiler could elide.

Out of scope: error-type design (thiserror vs anyhow) belongs to rust-error-handling; async runtime questions belong to rust-async-concurrency; SOLID/file-layout rules belong to fuse-solid:solid-rust.

Rust Core Language

Idiomatic Rust for stable 1.96.1, edition 2024. This skill covers what the compiler will not catch for you: ownership design that avoids gratuitous cloning, and the recurring failure modes of machine-generated Rust.

Agent Workflow (MANDATORY)

  1. fuse-ai-pilot:research-expert — confirm the current stable version and any feature's stabilization release before relying on it (versions move fast).
  2. fuse-ai-pilot:explore-codebase — read the crate's edition in Cargo.toml and its existing ownership conventions before adding code.
  3. After writing code, run fuse-ai-pilot:sniper and cargo clippy.

Never state a stabilization version from memory — verify against doc.rust-lang.org/releases.html.

Overview

Topic When
Edition 2024 features Setting up a crate, using let chains / async closures
Ownership & borrowing Designing function signatures and data flow
LLM pitfalls Reviewing or repairing generated Rust before merge

Critical Rules

  1. Borrow before you own. Take &T / &str / &[T] in parameters unless the function must keep the value. See ownership-borrowing.md.
  2. .clone() needs a reason. A clone to silence a borrow-checker error is a design smell (the "clone tax"). Redesign ownership first; clone only when a second owner genuinely exists.
  3. No .unwrap() / .expect() on fallible values without a written justification. Grep for them before merge. Prefer ?, match, or a documented invariant.
  4. Arc::clone(&x) over x.clone() for reference-counted handles — it makes the cheap pointer-copy explicit and distinguishes it from a deep clone.
  5. Iterators over indexed loops. Prefer iter()/map()/filter()/collect() to for i in 0..len { v[i] } — no bounds-check noise, no off-by-one.
  6. Let elision work. Do not annotate lifetimes the compiler can infer.

Read the full file on GitHub · 100 lines

Files

What ships with it

5 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. today First seen · 100 lines · 58 tokens per session scan A a7a6287df832

Subscribe to this mod's changes

rust-core-language is a skill published in the GitHub repository fusengine/agents (25 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,258 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

rust-dev

This skill should be used when working with Rust code, reviewing Rust code, managing Rust dependencies, creating Rust projects, or fixing Rust compilation errors. It provides strict coding standards (especially FAIL FAST error handling), workspace architecture guidance, dependency management automation, and common…

onsails/skills · 57 tokens

radin-doctor

Check that radin's own install under /.claude is complete and its optional companion tools are reachable. Use for /radin-doctor, "check my radin install", "is radin installed correctly", "radin doctor", "verify radin install".

shortcuts/radin · 62 tokens

designing-interfaces

Creates a design system for software with a UI. Use when a project has a user interface and architecture is confirmed — whether creating from scratch or extracting patterns from existing code.

isvlasov/rageatc-oss · 39 tokens

managing-product

Extracts product requirements and produces a PRD. Use when a user wants to build software and needs to define what to build before architecture or implementation, when scoping an MVP, or when translating a vague idea into a buildable specification.

isvlasov/rageatc-oss · 52 tokens

orchestrating-software-dev

Runs software development projects from idea to completion. Use when starting a software project, adding a feature, fixing a bug, or resuming an in-progress build.

isvlasov/rageatc-oss · 39 tokens

systematic-debugging

Guides root cause investigation before proposing fixes. Use when debugging, diagnosing failures, investigating test errors, or tracing unexpected behaviour.

isvlasov/rageatc-oss · 30 tokens