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 agentmods add commands/mathisk2095/jko-claude-plugins/rust-teachgit clone --depth 1 https://github.com/mathisk2095/jko-claude-pluginsWrote 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/commands/mathisk2095/jko-claude-plugins/rust-teach)<a href="https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/rust-teach"><img src="https://agentmods.dev/badge/commands/mathisk2095/jko-claude-plugins/rust-teach.svg" alt="Measured on agentmods" 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 | $0.00039 | $0.00827 |
| Opus 5 | $0.00019 | $0.00413 |
| Sonnet 5 | $0.00008 | $0.00165 |
| Haiku 4.5 | $0.00004 | $0.00083 |
Grade A, and why
rust-teach 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 3d 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 — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust Teach
Scan this Rust project, understand its patterns, and persist the findings so all future sessions start with the right context.
Step 1: Explore the Codebase
Before asking questions, thoroughly scan the project:
- Cargo.toml: Edition, rust-version, dependencies, features, lint config, workspace structure
- src/lib.rs or src/main.rs: Module structure, re-exports, visibility patterns
- Error types:
rg --type rust 'enum.*Error|struct.*Error' src/ -l— what error handling strategy is used? - Error crate: Is it thiserror, anyhow, snafu, or hand-rolled?
- Logging: tracing, log, or println?
- Async runtime: tokio, async-std, smol, or sync-only?
- Testing: What test frameworks? proptest, rstest, mockall, insta?
- Clippy config: Check
Cargo.toml[lints.clippy]and anyclippy.toml - Unsafe usage:
rg --type rust 'unsafe' src/ -c— how much, where, documented? - Build profiles: LTO, overflow-checks, codegen-units settings
- CI config:
.github/workflows/,justfile,Makefile— what checks run? - Existing CLAUDE.md: Any Rust conventions already documented?
Note what you've learned and what remains unclear.
Step 2: Ask Clarifying Questions
Ask the user only what you couldn't infer from the codebase:
Project Context
- Is this a library, application, or both?
- What's the target audience? (internal team, open-source consumers, embedded, web services)
- Any performance constraints? (latency SLAs, memory limits, throughput targets)
Conventions
- Any strong opinions on iterator chains vs for loops?
- Preferred error handling approach if not clear from code?
- Any crates that should always/never be used?
- Minimum supported Rust version (MSRV) if different from Cargo.toml?
Safety & Quality
- How strict should unsafe review be? (zero tolerance, case-by-case, embedded-pragmatic)
- What clippy lint level does the team prefer?
- Any domain-specific rules? (e.g., "all network calls must be retried", "all DB queries go through the repository layer")
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.
- 3d ago First seen · 90 lines · 39 tokens per session scan A 39d72ce3b37a
rust-teach is a command published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 39 tokens to every session and 827 once invoked, about $0.0002 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.
Other commands, from other repositories
rust-build
Fix Rust build errors and borrow checker issues.
rust-review
Rust code review for ownership, safety, and idiomatic patterns.
audit-crate
Audit a single crate (used by /audit coordinator or standalone).
profile
Coordinate a reproducible Java profiling and optimization lifecycle.
add
Command "add" from paiml/rust-mcp-sdk, covering cargo pmcp add, usage, subcommands, add server and arguments.
mutation-test
Uses cargo-mutants to run mutation tests and verify test quality.