refactor-arch-hotspots
[代码质量]识别架构热点:高频修改文件、耦合问题、层违规和依赖混乱。用于导致重复错误或开发缓慢的系统性问题。
📖 中文导读:[代码质量]识别架构热点:高频修改文件、耦合问题、层违规和依赖混乱。用于导致重复错误或开发缓慢的系统性问题。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: refactor-arch-hotspots description: "[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."
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:
- High churn AND high complexity
- Frequently causing bugs
- Blocking feature development