Skip to main content

refactor-method-complexity-reduce

Refactors methods to reduce cognitive complexity, enhancing readability and maintainability by extracting helper methods.

Install this skill

or
25/100

Security score

The refactor-method-complexity-reduce skill was audited on Mar 1, 2026 and we found 5 security issues across 1 threat category, including 5 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 3

Template literal with variable interpolation in command context

SourceSKILL.md
3description: 'Refactor given method `${input:methodName}` to reduce its cognitive complexity to `${input:complexityThreshold}` or below, by extracting helper methods.'
high line 9

Template literal with variable interpolation in command context

SourceSKILL.md
9Refactor the method `${input:methodName}`, to reduce its cognitive complexity to `${input:complexityThreshold}` or below, by extracting logic into focused helper methods.
high line 63

Template literal with variable interpolation in command context

SourceSKILL.md
63- Have cognitive complexity reduced to the target threshold of `${input:complexityThreshold}` or below
high line 90

Template literal with variable interpolation in command context

SourceSKILL.md
905. **Check cognitive complexity** - Confirm the metric is at or below the target threshold of `${input:complexityThreshold}`
high line 96

Template literal with variable interpolation in command context

SourceSKILL.md
96- [ ] Cognitive complexity is at or below the target threshold of `${input:complexityThreshold}`
Scanned on Mar 1, 2026
View Security Dashboard
Installation guide →