Rust Module Organizer

•
432
•

Standardizes Rust project structure using private modules with public re-exports for clean, maintainable APIs.

The organize-modules skill streamlines Rust development by enforcing professional module organization patterns. It primarily implements the 'private modules with public re-exports' strategy, which allows developers to hide internal file structures while exposing a flat, ergonomic public API. Beyond simple organization, the skill handles advanced Rust features like conditional visibility for documentation and tests, rustfmt suppression for specialized files, and hierarchical refactoring to ensure your crate remains easy to use and maintain as it grows.

主要功能

01Manages rustfmt behavior for custom-aligned module files
02Refactors hierarchical structures into stable public interfaces
03Implements private module patterns with public re-exports for flat APIs
04Automates visibility fixes for unresolved intradoc links
05Configures conditional visibility for rustdoc and internal testing
06432 GitHub stars

使用场景

01Exposing private types to documentation without breaking encapsulation
02Refactoring a cluttered Rust crate into a clean, flat public API
03Organizing large mod.rs files to prevent namespace pollution