# Refactor Arch Hotspots

> [Code Quality] Identifies architectural hotspots: high-churn files, coupling issues, layer violations, and dependency tangles. Use to find systemic issues that cause repeated bugs or slow development.

- Skill: `majiayu000/refactor-arch-hotspots` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/refactor-arch-hotspots`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/refactor-arch-hotspots/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/refactor-arch-hotspots

---


# 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
