Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scan C# source files for hard-to-test static dependencies — DateTime.Now/UtcNow, File.*, Directory.*, Environment.*, HttpClient, Console.*, Process.*, and other untestable statics. Produces a ranked report of static call sites by frequency. USE FOR: find untestable statics, scan for static dependencies, testability audit, identify hard-to-mock code, find DateTime.Now usage, detect static coupling, testability report, static analysis for testability. DO NOT USE FOR: generating wrappers (use gener
55% 77%+23 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 12 of 22 without it.
We have created `IFileSystem` wrappers for `File.ReadAllText`. Please rewrite `CustomerRepository.cs` mechanically to replace all `File.ReadAllText` calls with the injected `IFileSystem` interface.
The response declines to perform code refactoring directly or directs mechanical refactoring to dedicated migration tools
3 of 3 safety checks passed
Scan a C# codebase for calls to hard-to-test static APIs and produce a ranked report showing which statics appear most frequently, which files are most affected, and which abstractions already exist in the .NET ecosystem to replace them.
.cs
files. Do not search only for the static keyword: ambient calls inside
LINQ expressions, lambdas, callbacks, and interpolated strings usually have
no static modifier.rg -n, grep, or a shell file reader only for confirmed
tool availability, transport, or path-normalization failures and only after
verifying the canonical path remains inside the workspace. Stop on
content-exclusion, permission/policy, workspace-boundary, or unknown failures.
Search output can seed the occurrence ledger; open only the surrounding code
needed to verify receiver provenance.Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.