Refactor Method Complexity Reduce

Refactor a specified method to reduce cognitive complexity to a requested threshold or below by extracting focused helper methods while preserving behavior. Use when the user asks to reduce method complexity, simplify nested conditionals, split large if-else or switch chains, extract validation or type-specific handlers, and verify tests show failed=0.

paulasilvatech 7d0c396 6.0 KB Updated

File contents

paulasilvatech/awesome-harness-primitives/tree/main/harness/github-copilot/skills/refactor-method-complexity-reduce commit 7d0c396c0b

Frequently asked questions

npx skillmds@latest add paulasilvatech/refactor-method-complexity-reduce-2