rmc-trait-audit

Community

Audit trait usage and dispatch to find dead code.

Authormolaco
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you determine whether a Rust trait (and its methods) is a real abstraction boundary or just vestigial code by measuring usage, imports, and workspace-wide dispatch call sites.

Core Features & Use Cases

  • Trait-scoped audit: Analyzes a single trait T, including its methods, associated items, and fan-in across the workspace.
  • Fan-in and dispatch tracing: Computes who uses T and who calls specific trait methods, including dispatch through generic bounds and dyn T receivers.
  • Deletion/sealing and inlining decisions: Produces verdicts such as delete, seal, inline, keep, or thin-out based on observed importer/implementer patterns and call traffic.

Quick Start

Build the hypergraph for the target project, then run a trait audit for your trait-qualified name to get a per-method dispatch and usage verdict.

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-trait-audit
Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-trait-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.