
generate-testability-wrappers
DO NOT USE when the target already consumes an injected interface or built-in
by dotnetFree
Description
generate-testability-wrappers is an agent skill from the dotnet/skills collection, listed on skills.sh. It generates wrapper interfaces, default implementations and dependency injection registration code for static dependencies that make a class hard to test. Where .NET already has a built-in abstraction, such as TimeProvider or IHttpClientFactory, the skill guides the code toward adopting it. Where no built-in alternative exists, for Environment, Console or Process statics, it writes minimal custom wrappers. It also covers a released static API that needs an ambient seam because its signatures cannot change. The skill is not for finding statics first, which is a separate step, and not for bulk-replacing call sites. It does nothing when the target already consumes an injected interface or a built-in abstraction such as IFileSystem or TimeProvider. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. The source is public on GitHub.…
Highlights
- Wrapper interfaces and default implementations
- Uses TimeProvider where it fits
- Custom wrappers for Environment, Console and Process
- DI service registration code
Ratings & Reviews
No ratings yet
Be the first to rate generate-testability-wrappers.
People also visit

testing-handbook-generator
Generates Claude Code skills from the Trail of Bits Testing Handbook
generate-testability-wrappers FAQ
What does the generate-testability-wrappers skill do?
It writes the interfaces, default implementations and DI registration that let a class receive static dependencies through an abstraction.
When should I not use it?
When the class already takes an injected interface or a built-in abstraction, or when you still need to find which statics to wrap.
How do I install it?
Run: npx skills add https://github.com/dotnet/skills --skill generate-testability-wrappers
Is it open source?
Yes. The skill is in a public GitHub repository maintained by dotnet.
What are the best generate-testability-wrappers alternatives?
Popular alternatives to generate-testability-wrappers include test-master, create-verification-skill and vitest. See all generate-testability-wrappers alternatives
















