Code Complexity Analyzer

•
332
•

Identifies high-complexity code segments and refactoring hotspots in Python and Go projects to improve maintainability.

The Code Complexity Analyzer is a specialized skill for Claude Code designed to manage technical debt by pinpointing 'hotspots' in your codebase. By leveraging industry-standard tools like Radon for Python and Gocyclo for Go, it calculates cyclomatic complexity and maintainability indices to find functions that are difficult to test or modify. The skill provides more than just raw data; it generates detailed Markdown reports that categorize risks from low to critical and offers specific, actionable refactoring strategies—such as extracting helper functions or simplifying nested logic—to keep your code clean and scalable.

主な機能

01Smart detection of recent changes via Git integration to focus analysis
02Identification of high-risk 'refactor hotspots' based on industry thresholds
03Comprehensive Markdown report generation with specific refactoring recommendations
04Automated cyclomatic complexity scoring for Python and Go files
05Zero-config setup with automatic tool installation for Radon and Gocyclo
06332 GitHub stars

ユースケース

01Prioritizing technical debt reduction during dedicated refactoring sprints
02Benchmarking the maintainability of legacy repositories during onboarding
03Auditing new code changes to prevent the introduction of untestable logic