rust-supply-chain

rust-supply-chain is a skill for Claude Code, Codex from rewrite-rs/skills. It costs 90 tokens per session (1,098 once invoked), scanned A, original, BSD-3-Clause.

A guide for auditing the Rust libraries a project depends on. It checks for known security problems, abandoned packages, licence conflicts, forbidden or duplicate crates, and unnecessary dependency weight.

In plain words
What is it for?
Use it when reviewing Cargo.lock, running cargo audit or cargo deny, adding dependencies, checking licences, investigating advisories, or deciding whether an unmaintained or duplicate crate should remain.
Why use it?
It turns tool reports into decisions about what to upgrade, replace, vendor, or formally accept. It checks the locked dependency versions actually built and considers the project's minimum supported Rust version (MSRV).

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the rewrite-rs-skills plugin — 28 skills shipped together

Good fit Use it when reviewing Cargo.lock, running cargo audit or cargo deny, adding dependencies, checking licences, investigating advisories, or deciding whether an unmaintained or duplicate crate should remain.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rewrite-rs/skills/rust-supply-chain
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.

Any agent
npx skills add rewrite-rs/skills --skill rust-supply-chain
Clone the repo
git clone --depth 1 https://github.com/rewrite-rs/skills

Made for: Claude Code, Codex.

Or install rewrite-rs-skills, the plugin that ships this one along with the rest of its 28 skills.

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 rust-supply-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/rewrite-rs/skills/rust-supply-chain/github.svg)](https://agentmods.dev/skills/rewrite-rs/skills/rust-supply-chain)
Your own site
<a href="https://agentmods.dev/skills/rewrite-rs/skills/rust-supply-chain"><img src="https://agentmods.dev/badge/skills/rewrite-rs/skills/rust-supply-chain/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.

agentmods 80×15 button for rust-supply-chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/rewrite-rs/skills/rust-supply-chain"><img src="https://agentmods.dev/badge/skills/rewrite-rs/skills/rust-supply-chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,098 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00090 $0.01098
Opus 5 $0.00045 $0.00549
Sonnet 5 $0.00018 $0.00220
Haiku 4.5 $0.00009 $0.00110

Measured 9d ago against content hash 67e34a0c30c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rust-supply-chain 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 9d 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.

skills/misc/rust-supply-chain/SKILL.md · 95 lines

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.

Rust Supply Chain

An audit that ends in a list of advisory IDs has done the easy half. The hard half is saying, per advisory, whether this repo actually reaches the vulnerable code path and what to do about it.

What this covers, and the one rule

Four questions: is anything we depend on known-vulnerable, is anything unmaintained, does every licence in the tree comply with the policy, and is the tree carrying weight it does not need. Read Cargo.lock as the authority on what is actually built — not Cargo.toml, which states ranges — and read the MSRV from docs/agents/rust.md, because a fix that bumps a dependency past the MSRV is not a fix. The rule: every finding ends in a decision — upgrade, replace, vendor, or accept with a written reason and an expiry. An unactioned advisory list is noise, and noise trains people to ignore the tool.

Two tools, overlapping on purpose

cargo audit reads the RustSec advisory database and answers exactly one question: is anything in the tree known-vulnerable. cargo deny answers four — advisories, bans, licenses, sources — including that same one, against a policy file; with no deny.toml it runs on built-in defaults that encode no policy. A repo running cargo deny check does not need cargo audit separately; a repo that wants only advisory checking and no policy file is better off with cargo audit alone. Say which the repo should run and why, rather than adding both. The policy file in full, annotated, is in DENY.md; it lands in the target repo only on explicit request.

Reading an advisory properly

An ID and a severity are the start. The question is whether this repo reaches the affected code — a parsing vulnerability in a crate used only in a build script for developer tooling is a different decision from the same advisory in a network-facing path. The mechanics: cargo tree --invert <crate> shows who pulled it in, which tells you whether the dependency is direct (you upgrade) or transitive (you upgrade the intermediary, or wait for it). State plainly that "no upstream fix yet" is a real outcome with real options — pin, patch via [patch.crates-io], vendor, or replace — and that recording the choice matters more than which one is picked.

Read the full file on GitHub · 95 lines

Files

What ships with it

2 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.

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. 9d ago First seen · 95 lines · 90 tokens per session scan A 67e34a0c30c7

Subscribe to this mod's changes

rust-supply-chain is a skill published in the GitHub repository rewrite-rs/skills (1 stars, last pushed 23d ago), licensed BSD-3-Clause. It adds 90 tokens to every session and 1,098 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

polars

High-performance DataFrame library for Python ETL, analytics, and pandas migration. Use for expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.

K-Dense-AI/scientific-agent-skills · 47 tokens

rust-engineer

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or…

Jeffallan/claude-skills · 120 tokens

rust-crate-ci

Load before editing any Rust crate in this repo (currently runners/swarm-sandbox-runner). Covers the mandatory local validation gate, common rustfmt/clippy pitfalls, and Windows-specific Rust correctness patterns that CI enforces but are hard to catch locally without a Windows toolchain.

ZaxbyHub/opencode-swarm · 60 tokens

solana-development

Build, test, deploy, and audit Solana programs with Anchor or native Rust, and build with ZK Compression (Light Protocol). Use when developing Solana smart contracts, implementing token operations, optimizing compute, deploying to networks, auditing programs for vulnerabilities, or creating compressed tokens/PDAs.

tenequm/skills · 63 tokens

rust-skills

Comprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, concurrency, unsafe code, API design, memory optimization, performance, numeric safety, conversions, serde, pattern matching, macros…

leonardomso/rust-skills · 84 tokens

pinocchio-development

Comprehensive guide for building high-performance Solana programs using Pinocchio - the zero-dependency, zero-copy framework. Covers account validation, CPI patterns, optimization techniques, and migration from Anchor.

sendaifun/skills · 44 tokens