Refactor given method ${input:methodName} to reduce its cognitive complexity to ${input:complexityThreshold} or below, by extracting helper methods. Use when user says 'reduce complexity', 'simplify method', 'cognitive complexity too high'.
$npx -y skills add totvs/engpro-advpl-tlpp-skills --skill refactor-method-complexity-reduceInstalls into the current project.
Run `npx skills use "https://github.com/totvs/engpro-advpl-tlpp-skills" --skill "totvs/engpro-advpl-tlpp-skills/refactor-method-complexity-reduce"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/totvs/engpro-advpl-tlpp-skills" that are relevant to the current task. Run `npx skills add "https://github.com/totvs/engpro-advpl-tlpp-skills"` and select the relevant skills, then follow their instructions.