一键导入
refactor
Generate concrete refactoring proposals with Before/After code based on coupling analysis results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate concrete refactoring proposals with Before/After code based on coupling analysis results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Khononov's Balanced Coupling model reference. Auto-loaded when analyzing coupling patterns, reviewing architecture, or interpreting analysis results.
Run coupling analysis and interpret results. Use when analyzing Rust project coupling patterns and generating improvement proposals.
Quick health check for coupling balance score. Use for daily score verification and CI quality gates.
Modularity review using Balanced Coupling model. Combines automated analysis with semantic code review to find implicit coupling and design issues.
Start interactive web UI for coupling analysis visualization. Graph exploration with filters, hotspots, and export.
Run mutation testing with cargo-mutants to evaluate test quality. Identifies untested code paths.
| name | refactor |
| description | Generate concrete refactoring proposals with Before/After code based on coupling analysis results. |
cargo run -- coupling $ARGUMENTS to analyze| Type | Description |
|---|---|
global-complexity | Strong coupling to distant modules |
cascading-change | Coupling to volatile modules |
inappropriate-intimacy | Internal access across boundaries |
high-efferent | Too many outgoing dependencies |
high-afferent | Too many incoming dependencies |
all | All issue types (default) |
# Before refactoring
cargo run -- coupling --summary ./src > before.txt
# After refactoring
cargo run -- coupling --summary ./src > after.txt
# Compare
diff before.txt after.txt
Code pattern examples: patterns.md