refactor-arch-hotspots

Detect architectural hotspots by analyzing churn, coupling, and layer violations.

3|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/CANTAGESTUDIO/CosmicAtlasPacker --skill refactor-arch-hotspots
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-arch-hotspots
Source: https://github.com/CANTAGESTUDIO/CosmicAtlasPacker/tree/main/.claude/skills/refactor-arch-hotspots
Command: npx skills add https://github.com/CANTAGESTUDIO/CosmicAtlasPacker --skill refactor-arch-hotspots

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies hotspots in architecture like high churn, coupling, and layer violations to guide targeted refactors.

Core Features & Use Cases

  • Hotspot Categories: High-churn files, coupling analysis, layer violations, dependency tangles.
  • Prioritization: Focus on issues that hinder ongoing work.

Quick Start

Run hotspot analysis to surface architectural issues and plan improvements.

Frequently Asked Questions about refactor-arch-hotspots

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify architectural hotspots in my codebase?

Architectural hotspots are high-churn files, tightly coupled components, and layer violations that slow development. This Skill analyzes your codebase to detect these issues by computing coupling metrics, tracking file churn, identifying import cycles, and prioritizing problems by their impact on feature delivery.

What's the difference between afferent and efferent coupling in architecture?

Afferent coupling measures how many components depend on a module; efferent coupling measures how many components it depends on. High efferent coupling creates tight dependencies; high afferent coupling creates broad impact from changes. This Skill computes both to surface instability.

How do I detect layer violations and dependency cycles in my architecture?

Layer violations occur when components bypass intended architectural layers; dependency cycles create circular imports that block refactoring. This Skill scans your codebase to identify both patterns, flags import cycles, and helps you prioritize fixes based on churn and complexity.

When should I run hotspot analysis on my codebase?

Run hotspot analysis on large, evolving codebases with high churn, complex coupling, or layered architectures where bugs concentrate and refactoring efforts struggle. The Skill surfaces which areas drive the most friction so you can target improvements where they matter most.

Can I use hotspot analysis to prioritize which architectural problems to fix first?

Yes. This Skill ranks hotspots by churn, complexity, and impact on feature delivery, so you focus refactoring effort on issues blocking ongoing work rather than scattered low-impact changes.