Hotspots - Refactoring Priority

SkillDev tools

Identify 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.

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

  1. Run cargo run --release -- coupling --ai $ARGUMENTS (default: ./src)
  2. Calculate hotspot score for each module
  3. 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

FactorWeightDescription
Issue countx30Number of coupling issues
Coupling countx5In/out dependency count
Health: Critical+50Critical health status
Health: Needs Review+20Needs review status
Circular dependency+40Part 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

  1. Why problematic — Issue types, coupling patterns
  2. Priority — Blast radius, difficulty, expected benefit
  3. 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