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
| 3 | description: '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
| 9 | Refactor 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
| 90 | 5. **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 DashboardGitHub Stars 33.1K
Rate this skill
Categorydevelopment
UpdatedMay 21, 2026
openclawbackendbackend-developerfullstack-developerqa-engineertechnical-pmproduct-managerdevelopmentproduct
github/awesome-copilot