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.
git clone --depth 1 https://github.com/KalarisLabs/Skill-Doctornpx agentmods add skills/kalarislabs/skill-doctor/rust-perfWrote 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.
[](https://agentmods.dev/skills/kalarislabs/skill-doctor/rust-perf)<a href="https://agentmods.dev/skills/kalarislabs/skill-doctor/rust-perf"><img src="https://agentmods.dev/badge/skills/kalarislabs/skill-doctor/rust-perf/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.
<a href="https://agentmods.dev/skills/kalarislabs/skill-doctor/rust-perf"><img src="https://agentmods.dev/badge/skills/kalarislabs/skill-doctor/rust-perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.01019 |
| Opus 5.5 | $0.00025 | $0.00408 |
| Sonnet 5.5 | $0.00013 | $0.00204 |
| Haiku 4.5 | $0.00006 | $0.00102 |
Grade A, and why
rust-perf 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust performance
Load this before optimizing. Do not sacrifice invariants (determinism, additive-only, no mandatory LLM) for speed.
Pre-registered targets (§7.3) — not measured results
Treat these as the optimization budget. Write them into benches as assert ceilings once harness exists. Until then, design so they are reachable. Never publish a number as measured unless sd-bench/RESULTS.md was produced by the harness on a tagged release.
| Metric | Target |
|---|---|
| Throughput (offline L1, warm cache off) | ≥ 2,000 skills/min |
| Peak RSS | < 40 MB |
| Install | one binary, ~12 MB, zero runtime deps |
| Cold install → first result | < 15 s |
Parity with Cisco/NVIDIA on synthetic TPR is the detection claim; adoption is this table. Competitors cannot move install footprint without leaving Python.
What to optimize (in order)
- Do not compile YARA at scan time.
build.rsonce. Scan = match. - mmap skill files with
memmap2when size > ~64 KiB. Keep small files on the stack/heap. - Zero extra alloc on the miss path. A clean skill should not build a
Vec<Finding>of zeros then throw it away — return empty slice /SmallVec. - Rayon over files and engines, not over lines inside one 2 KB SKILL.md.
- Sorted walk once. Determinism and perf:
ignore/walkdir→ collect →sort→ process. - Canonical digest over sorted
(path, content)pairs; hash streaming, not a giant concatenatedString. - No tokio, no async, no reqwest on the default path. Async startup cost kills cold-install.
- Binary size: default features slim.
LTO=thinin release profile.strip = true. Avoidtokio+reqwest+opensslin the default binary (use rustls only if L4 is on). Target ~12 MB stripped musl. - RSS: do not hold every file's bytes after L1 on that file finishes. Drop mmaps per file. Global caches are digest → findings, bounded.
- Ruleset is embedded bytes, not a temp directory of
.yarfiles at runtime.
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.
- 1mo ago First seen · 71 lines · 63 tokens per session scan A 3e49ec7ce4ea
rust-perf is a skill published in the GitHub repository KalarisLabs/Skill-Doctor (13 stars, last pushed yesterday), licensed Apache-2.0. It adds 63 tokens to every session and 1,019 once invoked, about $0.0003 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-11.
Other skills, from other repositories
rust-patterns
Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.
update-v8-version
Update Codex's pinned v8 / rustyv8 versions, validate the release-candidate path, and investigate failed V8 canary or artifact builds. Use when asked to bump V8, update rustyv8 artifacts, prepare or validate a V8 release candidate, check v8-canary, or diagnose why a V8 version update no longer builds.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
omh-rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
azure-keyvault-secrets-rust
Client library for Azure Key Vault Secrets — secure storage for passwords, API keys, and other secrets.
gcs-rust-download-object-api
Fix "DownloadObjectRequest not found" error in google-cloud-storage Rust crate. Use when: (1) Trying to download objects from GCS using the Rust SDK, (2) Looking for a download request type in http::objects::download module, (3) Compile error about missing type. The downloadobject method uses GetObjectRequest from the…