Skip to main content

rust-lean-refactor

Stars9
Forks0
UpdatedJuly 27, 2026 at 10:44

Reorganize Rust code to be lean, clean, and non-bloated: detect oversized files, functions, or modules and split them safely across crate/module boundaries without changing behavior. Guards against new circular mod dependencies, skips codegen/generated files, and verifies cargo check/clippy/test stay green at every step. Use when user asks to clean up, declutter, slim down, de-bloat, restructure, or split up Rust code, or complains a file/module/function is "gemuk"/too big/doing too much. Pair with rust-verify-harden for the hardening pass after structure is settled.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly