rmc-method-api
CommunityAudit a Rust type’s real method API.
Software Engineering#rust#codebase indexing#api audit#dead code detection#method usage#call-site analysis#trait dispatch
Authormolaco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps you identify which methods on a specific Rust type are actually used in the codebase, including dead APIs, test-only helpers, and naming inconsistencies.
Core Features & Use Cases
- Method-surface inventory: Pulls a single type’s complete method API surface (methods, associated consts, and associated types) using the Layer-4 module tree.
- Fan-in analysis: Computes per-method usage fan-in via
who_uses_summary, enabling you to rank critical entry points and detect unused methods. - Inherent vs trait dispatch clarity: Helps distinguish inherent methods from trait/impl dispatch patterns so you can reason about how callers reach the API.
- Practical outputs for review: Produces summaries listing dead methods and top-by-fan-in methods to drive refactors and API cleanup.
Quick Start
Run the skill to build the hypergraph for your workspace, generate the depth-4 module tree for your target crate and type, then rank each method by who_uses_summary fan-in to produce a dead-method list and top callers.
Dependency Matrix
Required Modules
None requiredComponents
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-method-api Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-method-api Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.