From complexity-reducer
Scans source files to calculate cyclomatic and cognitive complexity, identifies functions exceeding thresholds, ranks the top 20 most complex, and suggests refactoring strategies.
How this command is triggered — by the user, by Claude, or both
Slash command
/complexity-reducer:analyze-complexityThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /analyze-complexity - Analyze Code Complexity Calculate cyclomatic complexity and identify overly complex functions. ## Steps 1. Detect the project language to select the appropriate complexity analysis tool 2. Scan all source files excluding tests, vendor, and generated code 3. Calculate cyclomatic complexity for each function and method 4. Calculate cognitive complexity as a secondary metric 5. Identify functions exceeding the threshold (default: cyclomatic > 10) 6. Rank the top 20 most complex functions by complexity score 7. For each complex function, identify the complexity driver...
Calculate cyclomatic complexity and identify overly complex functions.
6plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub twzrd-sol/awesome-claude-code-toolkit --plugin complexity-reducer/analyze-complexityScans source files to calculate cyclomatic and cognitive complexity, identifies functions exceeding thresholds, ranks the top 20 most complex, and suggests refactoring strategies.
/assess-qualityFull quality assessment combining code-complexity-analysis, naming-conventions, and error-handling-patterns.
/reduce-complexityReduces cyclomatic complexity and nesting depth in a function or file. Accepts an optional function name or line number to target specific code regions.
/quality-checkRuns code quality analysis detecting code smells and complexity issues, then provides refactoring recommendations. Accepts --type and --threshold flags.
/code_analysisAnalyzes code quality on specified files or directory, reporting complexity, code smells, security issues, and generating a health score with prioritized recommendations tracked as todos.
/quality-checkRuns a multi-step code quality workflow using DevKit skills (formatting, review, complexity, dead code, naming, anti-patterns, security headers, dependency audit). Produces a summary report with quality score and recommendations.