Skip to main content

generate-testability-wrappers

Generate C# testability abstractions and DI registration when none exists: minimal Environment/Console/Process wrappers, or first-time TimeProvider, IHttpClientFactory, and System.IO.Abstractions adoption. USE FOR: generate a wrapper for statics, make a class testable, wrap DateTime/File/Process, create IProcessRunner, add DI registration, or preserve a static API with an ambient seam. DO NOT USE FOR: wrapping an API already consumed through an interface or built-in abstraction such as IFileSystem or TimeProvider; detecting statics (detect-static-dependencies); migrating call sites to an existing/registered abstraction (migrate-static-to-wrapper); a single blocked behavior where the request includes adding deterministic tests (testability-obstacle); or general interface design.

Jump to install

Source facts

Repository
managedcode/dotnet-skills
Last source activity
August 29, 2026 at 13:21
Detected SKILL.md language
English
Stars
477
Forks
33

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.