Rust Decompose

Structure Rust code into cohesive modules and functions. Use when writing new Rust feature code, adding a module or a non-trivial function, deciding how to organize a file, splitting a god-file into a directory module, breaking a long function into an orchestrator plus phase functions, keeping an owned resource (transaction, lock, accumulator) from leaking across boundaries, or reviewing module/function structure. Apply while writing, not only when refactoring. Architecture-agnostic — any Rust code, hexagonal or not.

jrollin a62520c 5 files · 40.6 KB Updated

File contents

jrollin/claudio/tree/main/plugins/claudio-rust/skills/rust-decompose commit a62520c3a7

Frequently asked questions

npx skillmds@latest add jrollin/rust-decompose