aio-rust

aio-rust is a skill for Claude Code from aiocean/claude-plugins. It costs 97 tokens per session (1,581 once invoked), scanned A, original, MIT.

A set of instructions for writing and checking Rust code, including a strict Clippy setup that rejects common ways programs can panic. Rust is a programming language, and Clippy is its code-quality checker.

In plain words
What is it for?
Use it when creating or changing Rust crates, Cargo workspaces, or .rs files; fixing build or Clippy errors; adding concurrency or async code; and reviewing the result.
Why use it?
It helps prevent crashes caused by unchecked errors, invalid indexing, and similar code before the program is released. It also gives replacement guidance when the checks reject code.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aio-rust plugin — 3 skills shipped together

Good fit Use it when creating or changing Rust crates, Cargo workspaces, or .rs files; fixing build or Clippy errors; adding concurrency or async code; and reviewing the result.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aiocean/claude-plugins
Claude Code
/plugin install aio-rust

Made for: Claude Code.

Or install aio-rust, the plugin that ships this one along with the rest of its 3 skills.

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 aio-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-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 aio-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,581 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.00097 $0.01581
Opus 5.5 $0.00039 $0.00632
Sonnet 5.5 $0.00019 $0.00316
Haiku 4.5 $0.00010 $0.00158

Measured 9d ago against content hash fea696373fb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aio-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/aio-rust-lints.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/aio-rust/skills/aio-rust/SKILL.md · 72 lines

How it starts

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

aio-rust

Rust code an agent writes should not be able to panic in production, and a tool, not the agent's discipline, should enforce that. A strict clippy profile turns the common panic sites into errors. This skill shows what to write instead.

The script is ${CLAUDE_PLUGIN_ROOT}/skills/aio-rust/scripts/aio-rust-lints.sh. Call it by its full path every time, because shell variables do not persist between commands.

Workflow

  1. Before editing a crate: bash ${CLAUDE_PLUGIN_ROOT}/skills/aio-rust/scripts/aio-rust-lints.sh setup <dir>. <dir> holds the Cargo.toml: the crate, a workspace member, or the workspace root. For a new crate, run cargo new first.
    • The script writes the profile into Cargo.toml ([workspace.lints] at a workspace root) and the test exemptions into clippy.toml.
    • At a workspace root, add [lints] workspace = true to each member's Cargo.toml.
    • Exit 1 means existing settings conflict. Edit the keys it lists in the tables that already exist, then run setup again until it exits 0.
  2. Write the code. When clippy rejects a panic site, rewrite it with the replacement table below.
  3. Before reporting done: bash ${CLAUDE_PLUGIN_ROOT}/skills/aio-rust/scripts/aio-rust-lints.sh check <dir>. It must exit 0. The check runs clippy on all targets with the profile passed on the command line, so it covers every crate whatever its Cargo.toml says. It then fails on any #[allow]/#[expect] of a profile lint in the source, and runs cargo test. cargo build and cargo test alone run no clippy lints, so they are not the gate.

The profile is deny for unwrap_used, expect_used, panic, todo, unimplemented, unreachable, indexing_slicing, string_slice, arithmetic_side_effects and cast_possible_truncation, plus unsafe_code = "forbid". Test code (#[cfg(test)], #[test]) may still unwrap, expect, panic and index. Macros such as #[tokio::main] and #[derive(clap::Parser)] work unchanged.

Replacement table

Read the full file on GitHub · 72 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. 9d ago First seen · 72 lines · 97 tokens per session scan A fea696373fb8

Subscribe to this mod's changes

aio-rust is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 4d ago), licensed MIT. It adds 97 tokens to every session and 1,581 once invoked, about $0.0004 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-11-21.

Related

aio-rust compared with skills from other repositories

aio-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aio-rustaiocean/claude-pluginsSkill44d agoMITA97Claude Code
rust-tracingBerriAI/litellmSkill64ktodaynoneA28Claude Code, Codex
rust-errorBerriAI/litellmSkill64ktodaynoneA72Claude Code, Codex
eval-hooksFlorianBruniaux/claude-code-ultimate-guideSkill7.5kyesterdayCC-BY-SA-4.0A115Claude Code
check-cache-bugsFlorianBruniaux/claude-code-ultimate-guideSkill7.5kyesterdayCC-BY-SA-4.0A38Claude Code
sandbox-unblockFlorianBruniaux/claude-code-ultimate-guideSkill7.5kyesterdayCC-BY-SA-4.0A65Claude Code
investigateFlorianBruniaux/claude-code-ultimate-guideSkill7.5kyesterdayCC-BY-SA-4.0A41Claude Code