Skip to main content
migrate-static-to-wrapperby .NETOfficialDevelopmentGitHub stars: 5.7k

Migrate Static to Wrapper skill: what it does and how to install it

Replaces scoped C# static dependency calls with an existing wrapper or built-in abstraction, updating injection, tests and composition.

Summary generated from the skill's documentation.

Install

$ npx skills add dotnet/skills --skill migrate-static-to-wrapper

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. Migrates a bounded set of C# call sites to an existing abstraction, adds constructor injection or an ambient seam for static classes, and updates affected tests with fakes. It preserves call counts, evaluation order and DateTimeKind, then checks scope, builds and runs targeted tests.

When to use it. When replacing specified static calls such as DateTime.UtcNow, File.* or Environment.* with an available wrapper. Use a separate skill to detect static dependencies, design a new wrapper, address testability without a chosen seam or migrate test frameworks.

History

Repo stars

5.7kAbout +573 since 30 Jul 2026

Before 1 Oct 2026 the curve is estimated from public event data.

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

Show as a table
Repo stars by day
DateRepo stars
26 Oct 20265,732
25 Oct 20265,724
24 Oct 20265,717
23 Oct 20265,708
22 Oct 20265,697
21 Oct 20265,693
20 Oct 20265,682
19 Oct 20265,673
18 Oct 20265,661
17 Oct 20265,656
16 Oct 20265,652
15 Oct 20265,642
14 Oct 20265,625
13 Oct 20265,617
12 Oct 20265,607
11 Oct 20265,600
10 Oct 20265,593
9 Oct 20265,590
8 Oct 20265,578
7 Oct 20265,569
6 Oct 20265,562
5 Oct 20265,557
4 Oct 20265,551
3 Oct 20265,543
2 Oct 20265,540
1 Oct 20265,531
24 Sept 2026 (estimated)5,519
17 Sept 2026 (estimated)5,494
10 Sept 2026 (estimated)5,419
3 Sept 2026 (estimated)5,258
27 Aug 2026 (estimated)5,233
20 Aug 2026 (estimated)5,221
13 Aug 2026 (estimated)5,221
6 Aug 2026 (estimated)5,171
30 Jul 2026 (estimated)5,159

Installs

3.3k+325 since 19 Oct 2026

Installs via skills.sh

Show as a table
Installs by day
DateInstalls
26 Oct 20263,272
25 Oct 20263,223
24 Oct 20263,195
23 Oct 20263,147
22 Oct 20263,092
21 Oct 20263,043
20 Oct 20262,992
19 Oct 20262,947

Similar skills