Show file hotspots (high churn times complexity) for review prioritization. Use when the user asks where defects concentrate or which files to review first.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Hotspots?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/michael-denyer-hotspots)
---
name: hotspots
description: Show file hotspots (high churn times complexity) for review prioritization. Use when the user asks where defects concentrate or which files to review first.
---
Identify the files most likely to harbor defects:
1. Run: `bbu analyze-repo --output=json --days=90 --no-ci`, or call the
`get_hotspots` MCP tool with `days=90` when the `black-box-unlock` server
is connected (`roles=["source"]` drops tests and docs from the ranking).
2. Take the top 10 by `hotspot_score` from the `hotspots` array (MCP
`get_hotspots`) or the `files` array (CLI `analyze-repo`).
3. Present a table: path, commits, complexity, hotspot_score, bugfix_commits.
4. For the top 3, read the file and name the specific complexity driver
(deep nesting, long functions, mixed responsibilities). `xray_file` gives
per-function revisions, line spans, and complexity for Python, JS/TS, Go,
Rust, Ruby, Java, Kotlin, C#, Swift, PHP, and Dart, and revision counts for
other languages with a git diff driver.
5. Suggest the single highest-leverage refactoring for each.
The score is Tornhill's hotspot formula: change frequency x complexity.
A high score means the team keeps modifying code that is hard to modify safely.