ワンクリックで
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