migrate-static-to-wrapper
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFE
Full Analysis
- Code Refactoring Automation Guidelines: The instruction file defines a structured workflow for performing mechanical, codemod-style replacements of C# static dependency calls (e.g.,
DateTime.UtcNow,File.ReadAllText) with injected wrapper interfaces or platform abstractions likeTimeProvider. - Standard Development Operations: Includes guidance on using standard C# dependencies, project scoping, constructor injection, and fallback mechanics for file updates inside the workspace.
- Execution Validation: Outlines steps to verify work using routine local commands such as
dotnet buildanddotnet testto confirm compilation correctness.
Audit Metadata