cargo-knowledge-patch

A reference guide for changing Rust project configuration and dependency workflows with Cargo, Rust's build and package manager. It covers manifests, lockfiles, workspaces, publishing, scripts, and unstable Cargo features.

In plain words
What is it for?
Use it when editing Cargo files, dependencies, workspaces, builds, packaging, publishing settings, scripts, or unstable Cargo options.
Why use it?
Cargo behavior depends on the installed toolchain and project configuration, and older commands or settings may no longer apply. The guide helps inspect those details before making changes and testing them.

Skill for Claude CodeCodex

Part of the knowledge-patch plugin — 57 skills, 1 hook shipped together

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/nevaberry/nevaberry-plugins/cargo-knowledge-patch
Any agent
npx skills add Nevaberry/nevaberry-plugins --skill cargo-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code, Codex.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 57 skills, 1 hook.

Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,816 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.00007 $0.01816
Opus 5 $0.00003 $0.00908
Sonnet 5 $0.00001 $0.00363
Haiku 4.5 $0.00001 $0.00182

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

Security

Grade A, and why

cargo-knowledge-patch 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.

plugins/knowledge-patch/patches-claude/cargo-knowledge-patch/SKILL.md · 219 lines

How it starts

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

Cargo Knowledge Patch

Use this skill when changing Cargo manifests, configuration, dependency workflows, builds, workspaces, packaging, publishing, Cargo scripts, or unstable Cargo features. Inspect the repository and installed toolchain before applying the guidance: project manifests, lockfiles, configuration, tests, and observed behavior take precedence.

Working method

  1. Run cargo --version and identify whether the repository pins a toolchain.
  2. Inspect Cargo.toml, Cargo.lock, .cargo/config.toml, workspace manifests, and CI commands relevant to the task.
  3. Separate stable behavior from features that still require nightly Cargo and -Z flags.
  4. Check the compatibility and removal notes before copying an older command line or configuration key.
  5. Open the task-specific reference from the index and preserve the repository's minimum supported Rust version.
  6. Validate manifest and configuration changes with the narrowest applicable Cargo command before running the full project test suite.

Reference index

Reference Topics
upgrades-and-compatibility.md Security fixes, removals, deprecations, changed defaults, platform requirements, migration hazards
configuration-networking-and-cache.md Configuration merging and includes, cache cleanup, Git and SSH, proxies, runners, warning policy
builds-targets-and-artifacts.md Editions, targets, build directories, rustc and rustdoc, profiles, doctests, artifacts, cleaning
workspaces-dependencies-and-metadata.md Workspaces, feature unification, dependency trees, metadata, vendoring, target filtering
packaging-publishing-and-registries.md Package validation, archives, workspace publishing, registry data and APIs
scripts-build-scripts-and-subcommands.md Cargo scripts, build-script environment and metadata, external subcommands, completions and help
unstable-analysis-and-lints.md Build analysis, timings, SBOM data, Cargo lints, unit graphs, experimental build controls

Read the full file on GitHub · 219 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. 3d ago First seen · 219 lines · 7 tokens per session scan A de0f99747d9d

Subscribe to this mod's changes

cargo-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (24 stars, last pushed 6d ago), licensed MIT. It adds 7 tokens to every session and 1,816 once invoked, about $0.0000 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.

Related

Other skills, from other repositories