SkillTrust

← All skills

migrate-static-to-wrapper

82 / 100 · Low risk

Fine to try.

By dotnet/skills (GitHub) · other · 5,870 stars · scanned at commit 96c3d68

ALWAYS USE when asked to migrate, replace, or make testable existing C# static calls with a named wrapper or built-in abstraction: DateTime.UtcNow/Now or DateTimeOffset.UtcNow to TimeProvider/IClock, File.* to IFileSystem or an existing store such as ITextFileStore, and Environment.* to an existing reader such as IEnvironmentReader. Covers scoped files/projects, constructor injection, replacing temp-file or process-environment tests with fakes, "already registered" abstractions, and static clas…

Works with any agent that supports SKILL.md skills.

What this skill can do

Runs commands on your computer

This is disclosed by the author in the skill's SKILL.md or README.

Found in 1 place.

Downloads and installs other software

The author does not mention this.

Found in 6 places.

Show 3 more

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'migrate-static-to-wrapper' ] || [ -L ~/.agents/skills/'migrate-static-to-wrapper' ]; then echo 'A skill folder named migrate-static-to-wrapper already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/dotnet/skills' "$d" && git -C "$d" checkout --quiet '96c3d68dad2855e3ab5178aa1a262789d86a1466' -- 'plugins/dotnet-test/skills/migrate-static-to-wrapper' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/dotnet-test/skills/migrate-static-to-wrapper' ~/.agents/skills/'migrate-static-to-wrapper' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'migrate-static-to-wrapper' ~/.claude/skills/'migrate-static-to-wrapper' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for dotnet/skills shows the score of its lowest-scoring skill.

SkillTrust badge for dotnet/skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/dotnet/skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/dotnet/skills/)

Score history

DateVersionScore
2026-11-0896c3d6882
2026-11-0796c3d6882