rust-core-language

rust-core-language is a skill for Claude Code from fusengine/agents. It costs 58 tokens per session (1,436 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fuse-rust plugin — 7 skills, 1 agent shipped together

Good fit Use it to write or review Rust 2024 code and improve how data ownership, iteration, strings, and error-prone shortcuts are handled.

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

Made for: Claude Code.

Or install fuse-rust, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

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/github.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/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-core-language

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,436 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00058 $0.01436
Opus 5.5 $0.00023 $0.00574
Sonnet 5.5 $0.00012 $0.00287
Haiku 4.5 $0.00006 $0.00144

Measured 2mo ago against content hash 100bffed4e3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

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

How it starts

The opening of the file, as written. The whole thing — 106 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.98.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 · 106 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. 2mo ago Changed · +6 lines 100bffed4e3d
  2. 3mo ago 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 (34 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,436 once invoked, about $0.0002 per session on Opus 5.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

rust-core-language compared with skills from other repositories

rust-core-language next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-core-languagefusengine/agentsSkill341mo agoMITA58Claude Code
polarsK-Dense-AI/scientific-agent-skillsSkill60k4d agoMITA47Claude Code
pinocchio-developmentsendaifun/skillsSkill1294mo agoApache-2.0A44Claude Code, Codex
building-telegram-botsisvlasov/rageatc-ossSkill104mo agoMITA68Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill60k4d agoMITA74Claude Code
phx-documentoliver-kriska/claude-elixir-phoenixSkill580todayMITA50Claude Code, Codex
cloudflare-workers-multi-langsecondsky/claude-skillsSkill2574d agoMITA45Claude Code