一键导入
refactor
Systematic code refactoring - analysis, pattern detection, incremental changes with verification. Use for code improvement and tech debt reduction.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic code refactoring - analysis, pattern detection, incremental changes with verification. Use for code improvement and tech debt reduction.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run full quality gate before release — fmt, clippy, test, mutants, similarity, coupling.
Run cargo-coupling and similarity-rs to identify refactoring targets, then create a prioritized plan.
Systematic bug investigation and fix workflow. Use when fixing bugs, investigating issues, or debugging test failures.
Pre-release verification workflow - version, security audit, performance, cross-platform builds, documentation.
Development environment setup - Rust toolchain, cross-compilation targets, dependencies, git hooks, IDE config.
Split complex tasks into sequential steps with parallel subtasks. Use for multi-step workflows needing dependency ordering and adaptive planning.
| name | refactor |
| description | Systematic code refactoring - analysis, pattern detection, incremental changes with verification. Use for code improvement and tech debt reduction. |
| argument-hint | [module-name or area] |
Refactor target: $ARGUMENTS
cargo clippy -- -W clippy::all -W clippy::pedantic
tokei src/
rg "TODO|FIXME|HACK" src/
Identify these code smells:
Prioritize targets and plan changes:
For each change:
cargo testcargo test
cargo clippy -- -D warnings
git diff --stat