rmc-reexport-chain
CommunityTrace Rust re-exports through facades.
Authormolaco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
When a Rust item is exposed through multiple pub use facade modules, it becomes unclear which canonical definition is actually being re-exported and how far the public API is “disguised” behind intermediate hops.
Core Features & Use Cases
- Re-export chain tracing: Walks pub use re-export edges breadth-first (with cycle detection) up to 8 hops to show where an item is visible from each facade depth.
- Pub type masquerading detection (heuristic): Flags cases where a module declares a pub type alias whose name overlaps with a pub use binding in the same module, indicating an alias may be acting as a re-export disguised as a type.
- Facade hygiene auditing: Helps decide whether to keep long facade chains or simplify by dropping intermediate hops and flattening to the canonical target.
Quick Start
Build the hypergraph index for your workspace, then run re_export_chain for the canonical target you want to trace and review the hop-by-hop visibility links.
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-reexport-chain Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-reexport-chain 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.