hotspots

Identify high-risk files in a codebase using churn, complexity, and coupling.

71|7|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/mbwsims/claude-universe --skill hotspots
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hotspots
Source: https://github.com/mbwsims/claude-universe/tree/main/skills/hotspots
Command: npx skills add https://github.com/mbwsims/claude-universe --skill hotspots

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finds the riskiest files in a codebase where bugs are most likely to hide by analyzing change frequency, complexity, and coupling.

Core Features & Use Cases

  • Churn analysis: Uses git history to surface files that change most often.
  • Complexity evaluation: Assesses line count, function density, and nesting depth.
  • Coupling inspection: Counts how many other files depend on each candidate.
  • Risk scoring: Combines signals into a ranked list of hotspots, optionally enriched with lenskit graph data.
  • Practical scenarios: Ideal for code health reviews, pre‑change impact assessments, and technical debt prioritization.

Quick Start

Ask Claude to run the hotspots skill on your repository to receive a ranked list of risky files.

Frequently Asked Questions about hotspots

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

FAQPage Schema
How do I identify risky code files using git history and complexity metrics?

You can identify risky code files by analyzing git history for churn, evaluating complexity metrics like nesting depth, and counting file coupling to generate a ranked list of hotspots. This highlights where bugs are most likely to hide.

What is a code hotspot analysis and when should I use it?

Code hotspot analysis pinpoints files with high change frequency, complexity, and coupling. Use it during code health reviews, pre-change impact assessments, or technical debt prioritization to find where bugs are likely to strike.

How do I run a hotspot analysis on my repository?

To run a hotspot analysis, ask Claude to execute the analysis on your repository. It requires access to your git history to compute change frequency and optionally uses lenskit graph data to enrich the risk scores.

Does code churn analysis require any specific dependencies or tools?

Code churn analysis requires access to your git history to track file change frequency. It optionally integrates with lenskit analysis tools to compute and enrich graph data for deeper coupling and risk score insights.

What metrics are used to calculate technical debt and code risk scores?

Technical debt and risk scores are calculated by combining churn frequency from git history, complexity metrics like line count and function density, and coupling data counting how many other files depend on each candidate.

Can I assess code coupling and complexity without a dedicated graph analysis tool?

You can assess complexity and basic coupling without extra tools, but computing advanced risk scores is optionally enriched by lenskit graph data to provide deeper insights into how files depend on each other.