skills/cantagestudio/cosmicatlaspacker/refactor-arch-hotspots

refactor-arch-hotspots

SKILL.md

Refactor: Architecture Hotspots

Find structural issues that create ongoing maintenance burden.

Hotspot Categories

1. High-Churn Files

Files changed frequently indicate poor abstraction boundaries.

2. Coupling Analysis

  • Afferent Coupling (Ca): Who depends on this?
  • Efferent Coupling (Ce): What does this depend on?
  • Instability (I): Ce / (Ca + Ce)

3. Layer Violations

  • UI accessing database directly
  • Business logic in controllers
  • Circular module dependencies

4. Dependency Tangles

  • Import cycles
  • Bidirectional dependencies
  • God modules everything imports

Prioritization

Focus on hotspots that are:

  1. High churn AND high complexity
  2. Frequently causing bugs
  3. Blocking feature development
Weekly Installs
3
GitHub Stars
2
First Seen
Feb 26, 2026
Installed on
opencode3
gemini-cli3
github-copilot3
codex3
amp3
kimi-cli3