find_hotspots
Identify code hotspots by analyzing git churn and complexity to flag high-risk files for prioritized refactoring. Requires git repository path, returns scores and breakdowns.
Instructions
Find code hotspots — files with high git churn AND high complexity. These are the riskiest files in a project: frequently changed AND hard to understand. Requires a git repository. Returns hotspot scores, risk levels, and churn/complexity breakdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Return top N hotspots (default: 20). | |
| path | Yes | Git repository root path. | |
| since_days | No | Look back N days for churn data (default: 180). |