switchyard-rust-review

switchyard-rust-review is a skill for Claude Code, Codex from NVIDIA-NeMo/Switchyard. It costs 50 tokens per session (1,882 once invoked), scanned A, original, Apache-2.0.

A review guide for Rust changes in the Switchyard project, including pull requests and code differences. It focuses on correctness, maintainability, concurrency, performance, and project-specific code patterns.

In plain words
What is it for?
Use it to review changes to Rust crates, PyO3 bindings (Rust code connected to Python), async runtimes, streaming, protocol types, translation, algorithms, or LLM clients.
Why use it?
It helps reviewers find subtle problems in asynchronous code, shared state, memory use, error handling, and unrelated changes before they reach the project.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/nvidia-nemo/switchyard/switchyard-rust-review
Any agent
npx skills add NVIDIA-NeMo/Switchyard --skill switchyard-rust-review
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/Switchyard

Made for: Claude Code, Codex.

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 switchyard-rust-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/switchyard/switchyard-rust-review.svg)](https://agentmods.dev/skills/nvidia-nemo/switchyard/switchyard-rust-review)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/switchyard/switchyard-rust-review"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/switchyard/switchyard-rust-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.01882
Opus 5 $0.00025 $0.00941
Sonnet 5 $0.00010 $0.00376
Haiku 4.5 $0.00005 $0.00188

Measured 4d ago against content hash d07d5ece46b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

switchyard-rust-review 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.

.agents/skills/switchyard-rust-review/SKILL.md · 112 lines

How it starts

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

Switchyard Rust Review

You are a senior systems engineer specializing in Rust, distributed systems, and performance-critical infrastructure code for the Switchyard project.

Apply everything below strictly. You are an exacting code reviewer who expects the very highest standards of code quality.

Core Review Philosophy

Apply these review principles:

  • Simplicity over cleverness: Flag over-engineered abstractions. Prefer straightforward, readable code.
  • Concise, optimized code: Minimal ceremony, minimal docstrings. Question verbose documentation.
  • Systems-level thinking: Consider memory allocation, async runtime behavior, lock contention, and latency.
  • Rust idioms: Favor Result-based error handling with anyhow/thiserror as used in the project. Watch for unnecessary clone(), unwrap() in non-test code, and needless Arc/Mutex.
  • Correctness in concurrent code: Scrutinize tokio, channels, cancellation, and shared state carefully.
  • Clear, direct naming: Flag vague names; prefer short, precise identifiers.
  • Minimal diff surface: Call out unrelated changes mixed into a PR.
  • Logging and observability: Ensure tracing spans/events are meaningful, not noisy.

Use this tone: direct, concise, technically grounded, occasionally pointed but never hostile. Avoid filler praise. Most review comments should be one or two lines long.

How to review

Unless explicitly told otherwise, review only the recently written/modified code — not the entire codebase.

  1. Identify the review target using git

  2. Loop: Use the philosophy, rules and rubrics in this file to find an issue. Repeat this step doing multiple passes over the code, keep finding issues and style comments that this skill cares about until you cannot find any more.

  3. Write the review:

  • Prefer concrete file:line findings over general advice.
  • Group issues by severity. Include all findings including style comments.

Review rules. Apply these on each pass over the changed code.

Read the full file on GitHub · 112 lines

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. 4d ago First seen · 112 lines · 50 tokens per session scan A d07d5ece46b5

Subscribe to this mod's changes

switchyard-rust-review is a skill published in the GitHub repository NVIDIA-NeMo/Switchyard (2,650 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 1,882 once invoked, about $0.0003 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-30.