Migrate Static to Wrapper Perform mechanical, codemod-style replacement of static dependency call sites with calls to injected wrapper interfaces or built-in abstractions. Operates on a bounded scope (single file, project, or namespace) so migrations can be done incrementally. When to Use After wrappers have been generated (via generate-testability-wrappers ) or built-in abstractions identified Migrating DateTime.UtcNow → TimeProvider.GetUtcNow() across a project Migrating File. → IFileSystem.File. across a namespace Adding constructor injection for the new abstraction to affected classes Making a static utility class testable by adding an ambient seam (Step 3) while its existing call sites keep compiling unchanged Incremental migration: one project or namespace at a time When Not to Use Show more Installs 848 Repository dotnet/skills GitHub Stars 5.2K First Seen Apr 13, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass
migrate-static-to-wrapper
安装
npx skills add https://github.com/dotnet/skills --skill migrate-static-to-wrapper