cargocargo-macheterust

Use cargo-machete when an agent needs to find and remove unused Rust dependencies before dependency growth increases build times, review noise, and manifest drift.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cargocargo-macheterust" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4f7f793e1e0527724998343d275913be99e035de45850cfc4fd30cdccbb9da2b. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use cargo-machete when an agent needs to find and remove unused Rust dependencies before dependency growth increases build times, review noise, and manifest drift.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "在 Cargo 项目中使用 cargo-machete 移除未使用的 Rust 依赖项,避免它们在构建和审查过程中悄悄增加体积"
slug: "remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete"
version: "1.0.0"
displayName: "在cargo-machete安静地使构建和审查膨胀之前,移除未使用的Rust依赖项"
summary: "当代理需要在依赖项继续膨胀构建时间、审查噪音和清单漂移之前查找并删除未使用的 Rust 依赖项时,请使用 cargo-machete。"
license: "MIT"
description: "当代理需要在依赖项继续膨胀构建时间、审查噪音和清单漂移之前查找并删除未使用的 Rust 依赖项时,请使用 cargo-machete。"
github_stars: 1280
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 1280
  npm_package: "cargo-machete"
  npm_weekly_downloads: 2073590

在cargo-machete安静地使构建和审查臃肿之前,移除未使用的Rust依赖项

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.

Prerequisites

Rust toolchain, Cargo project, and shell access for dependency scans and cleanup edits.

Installation

Use the upstream install or setup path that matches your environment:

  • cargo-machete is a Cargo tool that detects unused dependencies in Rust
  • cargo install cargo-machete
  • Run cargo-machete in a directory that contains one or more Rust projects (using Cargo for
  • cargo machete /absolute/path/to/my/directory

Requirements and caveats from upstream:

  • Docker Image

  • A docker image for cargo machete.

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档未明确说明具体使用场景和时机,仅在前言中简要提及。

    Recommendation: 建议添加 When to Use 章节,详细说明何时以及为什么需要使用 cargo-machete。

  • 缺少端到端示例 Reported severity: Minor

    文档提供了基本用法,但缺少完整的端到端操作示例。

    Recommendation: 建议添加一个完整的示例,展示从安装到扫描再到移除未使用依赖的完整流程。

Highlights

  • 提供了解决 Rust 项目中未使用依赖项的实际问题,具有明确的实用价值
  • 工具来源明确,基于上游官方 cargo-machete 工具
Trigger Precision65/100

Areas to improve

  • 触发词描述不够具体 Reported severity: Minor

    description 描述了功能但未提供具体的触发命令或关键词。

    Recommendation: 建议在 description 中添加具体的触发命令,如 'cargo machete',以提高触发精准度。

Highlights

  • description 清晰描述了核心功能:查找并删除未使用的 Rust 依赖项
Structure and Standards60/100

Areas to improve

  • 缺少清晰的步骤划分 Reported severity: Minor

    文档结构较为松散,缺少清晰的 Phase 或步骤划分。

    Recommendation: 建议将文档划分为清晰的步骤,如 '安装'、'扫描'、'移除' 等阶段。

  • 缺少出口条件说明 Reported severity: Minor

    文档未说明操作完成后的状态或如何确认操作成功。

    Recommendation: 建议添加出口条件说明,如 '扫描完成后,cargo-machete 会列出所有未使用的依赖项'。

Highlights

  • frontmatter 完整,包含必要的元数据信息
  • 文档长度适中,未超过 500 行限制
Execution Reliability62/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Minor

    文档未说明如何处理常见异常情况,如项目路径不存在或依赖扫描失败。

    Recommendation: 建议添加异常处理说明,指导用户在遇到问题时如何解决。

  • 不可逆操作缺少确认机制 Reported severity: Minor

    移除依赖项是不可逆操作,但文档未说明如何确认或备份。

    Recommendation: 建议添加确认机制说明,如 '在执行移除操作前,建议先备份 Cargo.toml 文件'。

Highlights

  • 工具来源明确,使用官方 cargo install 命令
  • 参数基本正确,符合 cargo-machete 的官方用法
Evidence Verifiability (mean of the first four)66/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

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.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.