with one click
rust-bounded-module-refactor
// Refactor Rust crates toward httprunner-style bounded-context directories with thin mod.rs facades.
// Refactor Rust crates toward httprunner-style bounded-context directories with thin mod.rs facades.
{what this skill teaches agents}
Structure public Rust crate docs so docs.rs reads as both a quick-start guide and an API reference
Validate internal Rust module splits without accidentally treating them like feature work.
Automated workflow patterns for publishing Rust crates to crates.io from GitHub Actions, including version injection, token auth, and multi-crate dependency ordering.
Update documentation after a source-tree move without breaking repo-root command guidance
Audit repo-wide source-tree relocations while preserving root entrypoints and catching hidden path-bearing surfaces.
| name | rust-bounded-module-refactor |
| description | Refactor Rust crates toward httprunner-style bounded-context directories with thin mod.rs facades. |
| domain | rust-architecture |
| confidence | high |
| source | observed — compared httpgenerator and christianhelle/httprunner module layouts |
Use this skill when a Rust crate has grown around large flat files and needs a clearer internal structure without changing its external behavior. It fits especially well when a reference repo already demonstrates the preferred taste, as httprunner does for httpgenerator.
parser, types, cli, upgrade, openapi) rather than after implementation details.mod.rs at the folder root.mod ...;.mod.rs with pub use ...;.lib.rs / main.rs focused on wiring, not internal logic.pub mod foo;, prefer turning foo.rs into foo\mod.rs instead of renaming the namespace; that preserves downstream paths while still enabling internal splits.#[cfg(...)] leaf files for OS-specific behavior instead of burying platform branches in one large file.tests.rs or focused *_tests.rs files inside the folder).README.md for significant multi-file folders.christianhelle/httprunner:src/core/src/parser/christianhelle/httprunner:src/core/src/types/christianhelle/httprunner:src/cli/src/cli/christianhelle/httprunner:src/cli/src/upgrade/src\rust\core\src\openapi\normalize.rs → server/operation/parameter/request-body/schema submodulessrc\rust\core\src\generator.rs → file modes/rendering/samples/helperssrc\rust\cli\src\ui.rs → presenter/rendering/formatting/table helperssrc\rust\cli\src\execution.rs → orchestration/validation/auth resolutionsrc\rust\cli\src\telemetry.rs → events/sinks/recorder/redaction while keeping httpgenerator_cli::telemetry::* stable