Hotspots - Refactoring Priority
SkillDev toolsIdentify high-priority refactoring targets using hotspot scoring. Ranks modules by issue severity and coupling count.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Hotspots - Refactoring Priority skill
What this skill tells your AI
The instructions your AI receives, as published by nwiizo/cargo-coupling in .claude/skills/hotspots/SKILL.md and read by ahel’s review.
Execution Steps
- Run
cargo run --release -- coupling --ai $ARGUMENTS(default:./src) - Calculate hotspot score for each module
- Display ranked list with recommendations
Commands
# Default (top 5)
cargo run -- coupling --hotspots ./src
# Top 10
cargo run -- coupling --hotspots=10 ./src
# With explanations
cargo run -- coupling --hotspots --verbose ./src
Scoring Formula
| Factor | Weight | Description |
|---|---|---|
| Issue count | x30 | Number of coupling issues |
| Coupling count | x5 | In/out dependency count |
| Health: Critical | +50 | Critical health status |
| Health: Needs Review | +20 | Needs review status |
| Circular dependency | +40 | Part of a cycle |
Output Format
## Refactoring Hotspots
### 1. [Module] (Score: XX)
- **Issues**: [Types and count]
- **Coupling**: In X / Out Y
- **Recommended action**: [Specific improvement]
Analysis Dimensions
- Why problematic — Issue types, coupling patterns
- Priority — Blast radius, difficulty, expected benefit
- Refactoring proposals — Interface separation, dependency inversion, module splitting, facade
Notes
- Score 0 = no issues
- Circular dependencies = highest priority
- Focus on top 5 for actionable results
Signals
- GitHub stars
- 96
- Forks
- 2
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
hotspots- Source
- github.com/nwiizo/cargo-coupling