Skip to content
Back to skills

Hotspots

ASecurity

Show file hotspots (high churn times complexity) for review prioritization. Use when the user asks where defects concentrate or which files to review first.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentpythonrustgojavarubyphpswiftkotlinc#refactoring

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add michael-denyer/black-box-unlock --skill hotspots --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hotspots?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hotspots
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/michael-denyer-hotspots/badge)](https://www.skillsdirectory.com/skills/michael-denyer-hotspots)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.