find-complexity-hotspots

Identify code hotspots by cyclomatic complexity, function length, and nesting depth.

5|Updated Jul 25, 2025
One-click install
npx skills add https://github.com/tomzx/agents --skill find-complexity-hotspots
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-complexity-hotspots
Source: https://github.com/tomzx/agents/tree/main/skills/find-complexity-hotspots
Command: npx skills add https://github.com/tomzx/agents --skill find-complexity-hotspots

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies and prioritizes hotspots in codebases by measuring cyclomatic complexity, function length, and nesting depth to guide targeted refactoring and improve maintainability.

Core Features & Use Cases

  • Automated hotspot detection: discovers code regions that disproportionately affect maintainability.
  • Prioritized remediation: ranks hotspots by severity and potential churn impact.
  • Cross-language support: applies to multi-language repos (e.g., Python, Go, JavaScript/TypeScript) to guide language-agnostic refactors.

Quick Start

Run the hotspot-scanning workflow from the repository root to generate a prioritized list of refactoring targets.

Frequently Asked Questions about find-complexity-hotspots

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

FAQPage Schema
How do I find code complexity hotspots to prioritize refactoring?

Finding code complexity hotspots involves scanning your repository to identify functions with high cyclomatic complexity, excessive length, and deep nesting, producing a prioritized remediation plan to guide refactoring.

What metrics are used to identify refactoring targets in a large codebase?

Refactoring targets are identified using cyclomatic complexity, function length, and nesting depth metrics, flagging code that exceeds defined thresholds to pinpoint maintainability hotspots across your projects.

Can I analyze code complexity for Python, Go, and JavaScript projects?

Yes, you can analyze code complexity for Python, Go, and JavaScript/TypeScript projects, as the scanner applies cross-language support to multi-language repositories for language-agnostic refactoring guidance.

What is the best way to rank code hotspots by severity and churn impact?

The best way to rank code hotspots is by cross-referencing cyclomatic complexity, function length, and nesting depth with recent code churn, producing a severity-ranked list to guide iterative refactoring improvements.

What are the default thresholds for cyclomatic complexity and function length?

The default thresholds for flagging hotspots are a cyclomatic complexity greater than or equal to 10, a function length of 50 or more lines, and a nesting depth of 4 or more levels.