rust-rt-audit

rust-rt-audit is a skill for Claude Code from gertsylvest/meta-team. It costs 79 tokens per session (820 once invoked), scanned A, original, MIT.

A check for Rust digital-signal-processing crates that verifies they follow rules needed for predictable real-time audio code. It checks for forbidden memory allocation, blocking operations, and panic-prone code, including in the compiled output.

In plain words
What is it for?
Use it before merging a Rust DSP crate to verify no_std support, panic behaviour, targeted lints, banned constructs, and allocator calls in the compiled LLVM intermediate code.
Why use it?
Real-time audio code cannot safely pause for memory allocation or recover from many kinds of failure; these checks catch violations before merging.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash audit.sh ./rust/audio-dsp.

Good fit Use it before merging a Rust DSP crate to verify no_std support, panic behaviour, targeted lints, banned constructs, and allocator calls in the compiled LLVM intermediate code.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gertsylvest/meta-team
agentmods
npx agentmods add skills/gertsylvest/meta-team/rust-rt-audit

Made for: Claude Code.

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-rt-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/gertsylvest/meta-team/rust-rt-audit/github.svg)](https://agentmods.dev/skills/gertsylvest/meta-team/rust-rt-audit)
Your own site
<a href="https://agentmods.dev/skills/gertsylvest/meta-team/rust-rt-audit"><img src="https://agentmods.dev/badge/skills/gertsylvest/meta-team/rust-rt-audit/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-rt-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/gertsylvest/meta-team/rust-rt-audit"><img src="https://agentmods.dev/badge/skills/gertsylvest/meta-team/rust-rt-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 820 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.00079 $0.00820
Opus 5 $0.00039 $0.00410
Sonnet 5 $0.00016 $0.00164
Haiku 4.5 $0.00008 $0.00082

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

Security

Grade A, and why

rust-rt-audit 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.

The scan reads SKILL.md. This mod also ships 1 executable file (audit.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.

library/skills/rust-rt-audit/SKILL.md · 67 lines

How it starts

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

Rust Real-Time Audit

Verify that a Rust DSP crate respects the real-time-safety rules:

  1. The crate is #![no_std] and does not depend on alloc.
  2. The crate uses panic = "abort" so panics cannot unwind across an FFI or worklet boundary.
  3. No clippy-detectable panic-prone constructs (unwrap, expect, slice indexing, integer overflow) are present.
  4. No banned heap/blocking constructs (Vec::, Box::, Mutex, format!, println!, etc.) appear in the source.
  5. The compiled LLVM-IR contains no calls to __rust_alloc / __rust_realloc / __rust_dealloc.

The first four are cheap and run in seconds. The fifth is the authoritative check — a clean grep can lie, but an IR with no allocator symbols cannot.

Requirements

  • rustup with a stable toolchain.
  • cargo (bundled with rustup).
  • The crate being audited must compile.

Optional but recommended:

  • clippy component (rustup component add clippy) for the lint pass. The script skips clippy cleanly if it is missing.

Instructions

The argument is in $ARGUMENTS. Pass it directly to the audit script:

bash "$(dirname "$0")/audit.sh" $ARGUMENTS

The argument is the path to the crate directory (the one containing Cargo.toml).

Output sections

Section What it reports
NO_STD Whether #![no_std] is declared in src/lib.rs
NO_ALLOC_DEP Whether the crate has any dependency on alloc (direct or via Cargo.toml)
PANIC_ABORT Whether panic = "abort" is set in the release profile
CLIPPY Lint results from a curated set of panic/allocation-detecting lints
HOT_PATH_GREP Grep hits for banned constructs in src/**.rs
LLVM_IR_ALLOC Whether __rust_alloc* symbols appear in the release LLVM-IR

Typical usage

# Audit a single DSP crate
bash audit.sh ./rust/audio-dsp

# Audit every DSP crate in a workspace
for crate in rust/dsp-*; do bash audit.sh "$crate"; done

What to look for

  • NO_STD failing is a structural problem — the crate should be split so DSP code lives in a no_std crate and any std-dependent code moves to a sibling crate.
  • NO_ALLOC_DEP failing means a transitive dependency pulled in alloc. Use cargo tree -e features to find the culprit and either gate it behind a feature flag or replace it.
  • PANIC_ABORT failing is a one-line Cargo.toml fix.
  • CLIPPY or HOT_PATH_GREP hits require code changes — see the agent profile's Real-Time-Safe Rust section for the rationale and the safe replacements.
  • LLVM_IR_ALLOC failing despite a clean source grep usually means a third-party crate is allocating. cargo tree + the IR's call site (look at the function name preceding call __rust_alloc) identify the source.

Read the full file on GitHub · 67 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 · 67 lines · 79 tokens per session scan A fd9868bf81fc

Subscribe to this mod's changes

rust-rt-audit is a skill published in the GitHub repository gertsylvest/meta-team (5 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 820 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.