Skip to main content

rust-lean-refactor

星标9
分支0
更新时间2026年7月27日 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.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly