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.
npx skills add pproenca/dot-skills --skill adversarial-rustgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote 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/pproenca/dot-skills/adversarial-rust)<a href="https://agentmods.dev/skills/pproenca/dot-skills/adversarial-rust"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/adversarial-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.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/adversarial-rust"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/adversarial-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00223 | $0.02734 |
| Opus 5.5 | $0.00089 | $0.01094 |
| Sonnet 5.5 | $0.00045 | $0.00547 |
| Haiku 4.5 | $0.00022 | $0.00273 |
Grade A, and why
adversarial-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 3mo 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adversarial Rust
An adversarial, architecture-level review-and-refactor pass for Rust. Where a greenfield idiom skill answers "which tool should I reach for now?", this skill takes code that already exists and imported the wrong mental model — objects and interfaces from Java/C#, shared-everything graphs from garbage-collected languages, exceptions, C-style loops and sentinels, detached-promise concurrency — names the paradigm it betrays, and prescribes the refactor that collapses it back to idiomatic Rust.
Every rule is grounded in a single production codebase: the codex-rs workspace (github.com/openai/codex, codex-rs/ at commit f1affbac5e, ~125 crates / ~2,500 Rust files). The Correct side of each rule is what that codebase actually does, the enforcement evidence is its workspace lint config (unwrap_used, redundant_clone, needless_collect, await_holding_lock and ~30 more denied), and the carve-outs are the real exceptions it keeps — so "when NOT to apply" is never hypothetical. There is no rule for things a capable model already gets right.
When to Apply
- Reviewing or refactoring existing Rust for architecture, not just style — "make this actually idiomatic", "why does this feel like Java in Rust"
- Flattening ported ceremony — dependency-injection traits with one implementation,
Deref-simulated inheritance, stateless*Manager/*Servicestructs, getter/setter boilerplate, a builder for every struct - Untangling fought ownership —
.clone()sprinkled until it compiles,Rc<RefCell<T>>object graphs, self-referential struct attempts - Fixing anemic data — boolean/string state machines, parallel
Optionfields, raw primitives carrying domain meaning, god-structs ofOptions escaping the serde boundary - Removing exception-style flow —
unwrapon expected failures, sentinel returns,catch_unwindas try/catch,anyhowon library API surfaces - Collapsing habitual indirection —
Box<dyn Trait>for closed sets, boxed callback parameters, index loops and per-stepcollect()chains - Repairing imported concurrency habits — blocking calls inside
async fn, guards held across.await, async task fan-out for CPU-bound work, fire-and-forgettokio::spawn
What ships with it
28 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.
- AGENTS.md 8.7 KB
- assets/templates/_template.md 1.2 KB
- metadata.json 3.0 KB
- references/_sections.md 5.8 KB
- references/arch-default-literal-over-builder.md 1.8 KB
- references/arch-drop-di-trait-single-impl.md 2.7 KB
- references/arch-free-functions-over-manager-struct.md 2.2 KB
- references/arch-no-deref-inheritance.md 2.4 KB
- references/arch-public-fields-over-getter-ceremony.md 2.2 KB
- references/conc-blocking-pool-over-async-cpu-fanout.md 2.8 KB
- references/conc-narrow-locks-before-await.md 2.8 KB
- references/conc-own-spawned-task-handles.md 3.2 KB
- references/conc-spawn-blocking-over-blocking-async.md 2.7 KB
- references/dyn-enum-over-box-dyn-closed-set.md 2.9 KB
- references/dyn-generics-over-boxed-callbacks.md 2.7 KB
- references/flow-no-catch-unwind-try-catch.md 2.8 KB
- references/flow-option-over-sentinel-values.md 2.5 KB
- references/flow-result-over-unwrap-expected.md 2.6 KB
- references/flow-thiserror-library-anyhow-application.md 2.8 KB
- references/iter-combinator-over-index-loop.md 2.6 KB
- references/iter-stay-lazy-single-collect.md 2.7 KB
- references/own-id-map-over-self-referential.md 2.3 KB
- references/own-no-rc-refcell-object-graph.md 2.2 KB
- references/own-restructure-over-clone.md 2.7 KB
- references/type-enum-over-bool-string-state.md 2.6 KB
- references/type-newtype-parse-dont-validate.md 2.6 KB
- references/type-result-over-parallel-options.md 2.2 KB
- references/type-split-option-god-struct.md 2.8 KB
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.
- 3mo ago First seen · 95 lines · 223 tokens per session scan A 2d5af930f3a3
adversarial-rust is a skill published in the GitHub repository pproenca/dot-skills (231 stars, last pushed 3mo ago), licensed MIT. It adds 223 tokens to every session and 2,734 once invoked, about $0.0009 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-08-30.
adversarial-rust compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| adversarial-rustpproenca/dot-skills | Skill | 231 | 3mo ago | MIT | A | 223 | Claude Code, Codex |
| rust-skillsleonardomso/rust-skills | Skill | 781 | 5d ago | MIT | A | 56 | Claude Code, Codex |
| rust-best-practicesbgauryy/octocode | Skill | 971 | today | MIT | A | 47 | Claude Code, Codex |
| cargo-fallowfallow-rs/fallow-skills | Skill | 145 | today | MIT | A | 104 | Claude Code, Codex |
| rust-reviewliuyanghejerry/Clausura | Skill | 205 | 5d ago | MIT | A | 25 | Claude Code, Codex |
| architectural_reviewEmilLindfors/a2a-rs | Skill | 92 | yesterday | MIT | A | 82 | Claude Code, Codex |
| hexagonal_reviewEmilLindfors/a2a-rs | Skill | 92 | yesterday | MIT | A | 65 | Claude Code, Codex |