Skip to main content
refactor-method-complexity-reduceby GitHubDevelopmentGitHub stars: 40.4k

Refactor Method Complexity Reduce skill: what it does and how to install it

Refactors a named method by extracting helper methods to meet a target cognitive complexity while preserving its behaviour.

Summary generated from the skill's documentation.

Install

$ npx skills add github/awesome-copilot --skill refactor-method-complexity-reduce

Run it in a terminal. If your agent is already running, start a new session so it picks the skill up.

About this skill

What it does. Analyses a method for nested conditions, repeated logic and complex expressions, then extracts focused helpers and simplifies the main flow. It preserves validation and error handling, runs related tests, verifies compilation and checks the complexity against a target threshold.

When to use it. When a method needs lower cognitive complexity without changing its behaviour.

History

Repo stars

40.4k+707 since 5 Oct 2026

Stars are counted for the whole repository, which holds 80 skills.

Show as a table
Repo stars by day
DateRepo stars
26 Oct 202640,426
25 Oct 202640,385
24 Oct 202640,365
23 Oct 202640,341
22 Oct 202640,302
21 Oct 202640,260
20 Oct 202640,214
19 Oct 202640,178
18 Oct 202640,143
17 Oct 202640,111
16 Oct 202640,072
15 Oct 202640,038
14 Oct 202639,999
13 Oct 202639,981
12 Oct 202639,948
11 Oct 202639,904
10 Oct 202639,881
9 Oct 202639,845
8 Oct 202639,804
7 Oct 202639,761
6 Oct 202639,731
5 Oct 202639,719

Installs

10k

Tracking since . A chart appears once there are 7 days of data.

Installs via skills.sh

Similar skills