Favicon of generate-testability-wrappers

generate-testability-wrappers Skill

AI Agent SkillC#Open source

Generate wrapper interfaces and DI registration for hard-to-test static dependencies in C. Produces IFileSystem, IEnvironmentProvider, IConsole, IProcessRunner wrappers, or guides adoption of TimeProvider and IHttpClientFactory. USE FOR: generate wrapper for static, create IFileSystem wrapper, wrap DateTime.Now, make s Published by microsoft in testfx.

What is generate-testability-wrappers Skill?

Generate wrapper interfaces and DI registration for hard-to-test static dependencies in C. Produces IFileSystem, IEnvironmentProvider, IConsole, IProcessRunner wrappers, or guides adoption of TimeProvider and IHttpClientFactory. USE FOR: generate wrapper for static, create IFileSystem wrapper, wrap DateTime.Now, make s Published by microsoft in testfx. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
75/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Testing
  • Testing use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use generate-testability-wrappers Skill

  • Use it for testing.

Built with

C#Copy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/testfx
  • Skill file: .agents/skills/generate-testability-wrappers/SKILL.md

What it does

Generate wrapper interfaces and DI registration for hard-to-test static dependencies in C. Produces IFileSystem, IEnvironmentProvider, IConsole, IProcessRunner wrappers, or guides adoption of TimeProvider and IHttpClientFactory. USE FOR: generate wrapper for static, create IFileSystem wrapper, wrap DateTime.Now, make s

Skill instructions

Generate Testability Wrappers Generate wrapper interfaces, default implementations, and DI service registration code for untestable static dependencies. For statics that already have .NET built-in abstractions (TimeProvider, IHttpClientFactory), guide adoption of the built-in. For statics without built-in alternatives, generate custom minimal wrappers. When to Use - After running detect-static-dependencies and identifying which statics to wrap - When the user asks to make a class testable by replacing statics with injected abstractions - When adopting TimeProvider (.NET 8+) or System.IO.Abstractions - When creating a custom wrapper for Environment., Console., or Process. When Not to Use - The user wants to find statics first (use detect-static-dependencies) - The user wants to bulk-replace call sites (use migrate-static-to-wrapper) - The static is already behind an interface - The project does not use dependency injection and the user does not want to add it Inputs | Input | Required |

Explore related resources

Frequently asked questions

What is generate-testability-wrappers?

generate-testability-wrappers is a open-source AI agent skill with Copy skill directory. Generate wrapper interfaces and DI registration for hard-to-test static dependencies in C.

Who is generate-testability-wrappers best for?

generate-testability-wrappers is best for reusing agent instructions, scripts, and references, testing workflows.

How do I install generate-testability-wrappers?

Install or run generate-testability-wrappers using Copy skill directory. Check generate-testability-wrappers for the latest setup command.

Is generate-testability-wrappers actively maintained?

generate-testability-wrappers may need a closer maintenance check before production use.

Share:

Stars
1,031
Forks
305
Last commit
9 days ago
Repository age
10 years
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to generate-testability-wrappers