Skill Detail

Remove unused Rust dependencies before they quietly bloat builds and reviews with cargo-machete

Use cargo-machete when an agent needs to find and remove unused Rust dependencies before they keep inflating build time, review noise, and manifest drift.

Code Quality & ReviewMulti-Framework
Code Quality & Review Multi-Framework Security Reviewed
⭐ 1.3k GitHub stars ⬇ 2.1M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Rust toolchain, Cargo project, and shell access for dependency scans and cleanup edits.
Install & setup
Install cargo-machete with the Rust toolchain using the method documented by the project, run it against the target Cargo project, review the unused-dependency findings, and then remove confirmed dead entries from the manifest before re-running tests.
Author
bnjbvr
Publisher
Individual
Last updated
Apr 15, 2026
Quick brief

Tool: cargo-machete. This skill gives an agent a narrow maintenance job: inspect a Rust project for dependencies that are declared but no longer used, then produce a cleanup candidate list for safe manifest pruning.

How it works

What this skill actually does

When to use it: invoke this before release, dependency refreshes, or cleanup passes when a Rust repository may have accumulated stale crates over time. Using this skill is different from using the product normally because the workflow is targeted: scan for unused dependencies, verify the findings, and hand back a minimal cleanup patch instead of generic package-management advice.

Scope boundary: this is not a generic Cargo listing and not a broad dependency-management platform card. Its boundary is specific: detect unused Rust dependencies so the repository can be slimmed down with cargo-machete.