/universe:hotspots [directory]from universe
Identifies riskiest files in a codebase using churn, complexity, and coupling analysis. Activated by phrases like 'find hotspots' or '/hotspots'.
Ships in universe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find the riskiest files in the codebase — the ones where bugs are most likely to hide. Risk correlates with: high change frequency (churn), high complexity, many dependencies, and multiple authors.
A file that changes every week, has 500 lines of complex logic, and is imported by 20 other files is a ticking time bomb. This skill finds those files.
If lenskit_analyze is available, call it without a file argument to get project-wide
metrics — churn, complexity, coupling, and risk scores for all source files. Use these
as the foundation for hotspot ranking, supplementing with qualitative assessment.
If unavailable, perform full manual analysis as described below.
If lenskit_status is available, call it with detailed: true FIRST before the detailed
analysis. With detailed: true it returns:
If the status result already provides a clear answer (e.g., obvious top risk files with high scores), you may skip the manual git analysis and jump to presenting findings.
Use git history to find files that change most frequently:
git log --format=format: --name-only --since="6 months ago" | sort | uniq -c | sort -rn | head -30
This gives the top 30 most-changed files in the last 6 months. High churn = high risk.
Filtering churn results:
grep -v -E '(package-lock|yarn.lock|pnpm-lock|\.generated\.|\.min\.)'grep -E '\.(ts|tsx|js|jsx|py|go|rs|java)$'-- packages/my-package/ to the git log commandAlso check for files with many different authors (indicates shared/critical code):
git log --format='%an' --since="6 months ago" -- {file} | sort -u | wc -l
For each high-churn file, assess complexity:
Read the file and make a qualitative assessment if quantitative tools aren't available.
For each high-churn file, check how many other files depend on it:
grep -rl "from.*{module-name}" src/ | wc -l
High import count = wide blast radius. Changes to this file affect many others.
Combine the signals into a risk score:
| Signal | Weight | Why |
|---|---|---|
| Churn (changes/month) | High | Files that change often have more opportunities for bugs |
| Complexity (lines, nesting) | High | Complex code is harder to change safely |
| Coupling (dependents) | Medium | High-coupling amplifies the impact of bugs |
| Authors (distinct contributors) | Low | Many authors = inconsistent patterns |
Rank files by combined risk. The top 5-10 are the hotspots.
Amplify with graph data: If lenskit_graph is available, check whether any hotspot
is also a hub file (high importer count) or part of a circular dependency. Hub status
amplifies risk — a complex, high-churn file that 15 other files depend on is a higher
priority than one with zero importers.
Report format:
## Hotspots — {project}
Analyzed {n} files over {timeframe}
### Top Hotspots
| Rank | File | Churn | Size | Dependents | Risk |
|------|------|-------|------|------------|------|
| 1 | src/lib/auth.ts | 24 changes | 342 lines | 18 importers | Critical |
| 2 | src/app/api/orders/route.ts | 19 changes | 287 lines | 3 importers | High |
| 3 | ... |
### Hotspot Details
**#1: src/lib/auth.ts** — Critical Risk
- Changed 24 times in 6 months by 4 different authors
- 342 lines with 12 exported functions
- Imported by 18 other files
- Suggestion: This file does too much. Split auth verification,
session management, and token handling into separate modules.
**#2: src/app/api/orders/route.ts** — High Risk
- ...
### Cool Spots (Low Risk, Stable)
{Note 2-3 files that are stable, simple, and well-isolated — positive examples}
For monorepos with multiple packages:
lenskit_analyze on each package root/impact — Check blast radius before touching a hotspot/map — Inspect surrounding layers before proposing structural changesnode_modules/,
package-lock.json, migration files, etc.constants.ts) is not a
hotspot. Churn alone is not risk — churn x complexity is.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mbwsims/claude-universe --plugin universe20 skills in this plugin
/check-rulesThis skill should be used when the user asks to "check adherence", "check rule adherence", "are my rules being followed", "is Claude following my instructions", "how effective is my CLAUDE.md", "rule compliance", "instruction effectiveness", "how are my rules performing", "which rules are being violated", "audit my rules", "check my CLAUDE.md", mentions "/check-rules", or wants to know whether their coding agent instruction rules are actually being followed across Claude Code sessions./discoverUse when the user wants to infer reusable project conventions from existing code and turn them into instruction rules: "discover conventions", "infer rules from code", "what rules should I add", "generate rules from this codebase", or "/discover". This is for convention mining, not for checking rule adherence or explaining how a specific module works./dissectThis skill should be used when the user asks "when did this get complicated", "why is this file so complex", "how did this evolve", "complexity history", "trace the evolution", "what happened to this code", "dissect this file", mentions "/dissect", or wants to understand how a file or function became complex by tracing its evolution through git history./driftThis skill should be used when the user asks "has this module drifted", "is this code still doing what it was designed for", "scope creep analysis", "architectural drift", "what was this originally for", "how has this changed over time", mentions "/drift", or wants to detect when code has quietly evolved away from its original purpose./explainUse when the user wants a deep explanation of a specific file, module, or implementation flow: "explain this code", "walk me through this file", "why is this structured this way", or "/explain". Best for focused code understanding with history context, not for repo-wide architecture mapping, recent-change summaries, or generic "what happened?" requests./forecastThis skill should be used when the user asks "what's about to become a problem", "predict issues", "trend analysis", "which files are growing", "what's getting worse", "complexity forecast", "what should I refactor next", mentions "/forecast", or wants to predict which files are on concerning trajectories before they become critical.Other plugins' skills for the same job