Refactors complex function to reduce cyclomatic complexity via extract method, guard clauses, loop decomposition, and polymorphism. Runs/writes tests, preserves behavior, targets score <=5, reports improvement.
From complexity-reducernpx claudepluginhub rohitg00/awesome-claude-code-toolkit --plugin complexity-reducerRefactor a complex function to reduce cyclomatic complexity.