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-critiquegit 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-critique)<a href="https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/rust-critique"><img src="https://agentmods.dev/badge/commands/mathisk2095/jko-claude-plugins/rust-critique.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.00047 | $0.00928 |
| Opus 5 | $0.00023 | $0.00464 |
| Sonnet 5 | $0.00009 | $0.00186 |
| Haiku 4.5 | $0.00005 | $0.00093 |
Grade A, and why
rust-critique 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 4d 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 Critique
Conduct a thorough code critique. Think like a senior Rust engineer reviewing a PR — be direct, be specific, explain WHY each finding matters.
First: Use the rust-expert skill for review process and reference files.
Preparation
- Find the workspace root:
cargo locate-project --workspace --message-format plain 2>/dev/null | xargs dirname. - Determine if this is a library or application crate.
- Read the target files. If no target specified, scan
src/starting withlib.rsormain.rs. - Check
Cargo.tomlfor edition, dependencies, lint config, and features.
Automated Scans
Run these to gather data before the review:
# Panic sources
rg --type rust '\.(unwrap|expect)\(' src/ --glob '!*test*' -c 2>/dev/null | awk -F: '{s+=$2} END {print "unwrap/expect:", s+0}'
# Unsafe without safety comments
rg --type rust -B1 'unsafe \{' src/ -n 2>/dev/null | rg -v 'SAFETY' | rg -c 'unsafe' 2>/dev/null | awk -F: '{s+=$2} END {print "unsafe without SAFETY:", s+0}'
# Clone frequency
rg --type rust '\.clone()' src/ -c 2>/dev/null | awk -F: '{s+=$2} END {print "clone calls:", s+0}'
# Arc<Mutex usage
rg --type rust 'Arc<Mutex<' src/ -c 2>/dev/null | awk -F: '{s+=$2} END {print "Arc<Mutex<>:", s+0}'
# Debug artifacts
rg --type rust '(println!|dbg!|todo!|unimplemented!)' src/ --glob '!*test*' -c 2>/dev/null | awk -F: '{s+=$2} END {print "debug artifacts:", s+0}'
# Clippy
cargo clippy --all-targets --all-features --message-format short 2>&1 | tail -5
The Review
Work through the review process from the rust-expert skill, consulting reference files as needed. For each finding:
- File and line — where exactly
- Severity — blocking / important / nit / suggestion / praise
- What — name the problem clearly
- Why it matters — the concrete consequence (bug, crash, CVE, maintenance cost). If you cannot name a concrete consequence, demote to suggestion.
- Fix — before/after code block when non-obvious
- Command — which command to run if applicable (
/rust-harden,/rust-types,/rust-polish)
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.
- 4d ago First seen · 90 lines · 47 tokens per session scan A 83b3fd406d75
rust-critique is a command published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed 6d ago), licensed MIT. It adds 47 tokens to every session and 928 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
route
Generate a Kibana server route with proper validation, error handling, and TypeScript types. Supports all HTTP methods and common patterns like CRUD operations and Elasticsearch queries.
embeddable
Generate a custom Embeddable panel that can be placed on Kibana Dashboards, with factory registration, input/output types, and React rendering.
expression
Generate custom Expression Functions and Renderers for use in Kibana Canvas, Lens, and Dashboard visualizations.
saved-object
Generate a custom Saved Object type with registration, mappings, migrations, CRUD service, and management integration for a Kibana plugin.
ui-action
Generate custom UI Actions and Triggers for inter-plugin communication in Kibana — register actions, attach to triggers, execute across plugins.
mcp-config
Generate a .mcp.json configuration file that connects Claude Code to Elasticsearch and Kibana MCP servers alongside this plugin, enabling live cluster access during plugin development.