architectural-hotspotslisted
Install: claude install-skill Stoica-Mihai/claude-skills
# Architectural Hotspots
Static dependency-graph analyzer that ranks files along four orthogonal
dimensions instead of inventing a single composite score:
- **Hubs** — many other files depend on them (high fan-in).
- **Tangles** — they depend on many other files (high fan-out).
- **God modules** — large files concentrating too much responsibility.
- **Cycles** — strongly-connected components of size > 1 in the import graph.
Each dimension answers a different question; the human reader combines them.
A file showing up in **two** sections is more interesting than one with a high
score in any single dimension.
## When to run this
Run it when the user is asking a *strategic* question about the codebase —
"where should I start refactoring", "what's tightly coupled", "is this app
architecturally sound", "which files keep biting us". Do not run it for
narrow questions about a specific file or function.
Skip it on:
- Single-file edits or bugfix tasks.
- Codebases with fewer than ~30 source files — the analyzer needs scale to
be useful, and on small repos the user can read the structure directly.
- Repos that are mostly generated code or templates.
## How to run
The analyzer is a single Python 3 script with no third-party dependencies.
```bash
python plugins/architectural-analysis/skills/architectural-hotspots/scripts/find_hotspots.py <repo_path>
```
Useful flags:
- `--top N` — rows per section (default 15).
- `--god-loc N` — LOC threshold for the god-modules section (def