What problem does it solve? Python codebases accumulate complex functions that are hard to test and risky to change, but teams lack a quick, objective way to locate the worst offenders. This Skill runs a mechanical complexity scan that pinpoints exactly which functions and modules deserve refactoring attention first. ## Core Features & Use Cases - Cyclomatic complexity scan: Runs radon cc per function with numeric scores, A–F ranks, and repo-wide averages, with JSON output for machine processing. - Threshold-based ranking: Flags functions above a configurable complexity threshold (default cc > 10) and sorts them descending into a ranked hotspot report with file:line:function locations. - Maintainability index: Computes per-module MI (0–100) via radon mi to find structurally hard-to-maintain modules even when individual functions look fine. - Use Case: Before a sprint dedicated to tech debt, run the scan across the source tree, cross-check high-cc functions against low-MI modules and git blame history, then refactor the top hotspots with behavior-pinning tests and prove the cc drop in the PR. ## Quick Start Ask the agent to run the measure-complexity skill to scan the repository and list the functions with cyclomatic complexity above 10 ranked from highest to lowest.