rmc-crate-audit

Community

Audit a Rust crate’s public surface and health.

Authormolaco
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Identifies dead or misleading public API surfaces and highlights structural and complexity risks in a Rust crate so teams can prioritize safe cleanup and refactors.

Core Features & Use Cases

  • Crate-scoped structural audit: builds a module tree snapshot, re-export map, and dead-public detection, then cross-tabulates them to find dead canonical items and dead facade re-exports.
  • Dependency direction analysis: determines outgoing vs incoming dependencies to assess whether the crate is single-purpose or a shared library with strong coupling.
  • Complexity-driven prioritization: runs file-aggregated complexity analysis and links hot spots to usage summaries to target changes that matter most.
  • Public surface validation: confirms whether root-level canonical types and key methods have real external fan-in using usage queries, flagging test-only or empty targets.
  • Method-level deepening (Layer 4): analyzes types’ methods for unused or critical-path fan-in with visibility derived from source spans.

Quick Start

Run rmc-crate-audit for the crate name you want and the workspace path to generate a severity-ranked findings table and recommended actions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rmc-crate-audit
Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-crate-audit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.