一键导入
refactor-analysis
Run cargo-coupling and similarity-rs to identify refactoring targets, then create a prioritized plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run cargo-coupling and similarity-rs to identify refactoring targets, then create a prioritized plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run full quality gate before release — fmt, clippy, test, mutants, similarity, coupling.
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.
Comprehensive quality assurance - tests, linting, formatting, code analysis, and release build verification.
| name | refactor-analysis |
| description | Run cargo-coupling and similarity-rs to identify refactoring targets, then create a prioritized plan. |
Analyze code coupling and duplication, then create a prioritized refactoring plan.
Coupling analysis:
cargo coupling --exclude-tests --ai --hotspots=10
Focus on: High Afferent (too many dependents), God Modules, circular deps.
Similarity scan:
similarity-rs ./src --min-tokens 50
Focus on: 95%+ similarity pairs, extract shared functions.
Combine findings into a prioritized plan:
Create GitHub issues for each refactoring target with refactoring label.
Execute high-priority items if requested, verifying with cargo test after each change.