← Back to Skills
๐Ÿงฉ

Code Complexity Analyzer

Analyze codebase complexity metrics and identify refactoring candidates

Developer 5 steps 5 tools 4 servers

Example Prompt

Analyze the complexity of our codebase and create issues for the modules that most need refactoring

About

Examines the codebase to measure complexity metrics such as file sizes, nesting depth, and function lengths. Identifies the most complex modules that would benefit from refactoring and creates GitHub issues with specific improvement suggestions.

Workflow Steps

1

List the source directories to identify all code modules to analyze

๐Ÿ“ List Directory
2

Read source files to measure complexity indicators like function length and nesting depth

๐Ÿ“„ Read File
3

Calculate complexity scores and rank modules by refactoring priority

๐Ÿง  Structured Reasoning
4

Create GitHub issues for the top refactoring candidates with specific recommendations

โž• Create Issue
5

Store the complexity analysis results for tracking improvements over time

๐Ÿง  Store Memory

Tags

complexityrefactoringcode-qualitymetrics