
detect-static-dependencies
ACTIVATION PREREQUISITE: the request or discovered target must explicitly
by dotnetFree
Description
detect-static-dependencies scans a C# codebase for calls to static APIs that are hard to test, such as time, file and environment access. It produces a ranked report showing which statics appear most often, which files are most affected, and which abstractions already exist in the .NET ecosystem to replace them. The output helps a team decide what to wrap first: the highest-frequency statics usually give the biggest testability gain. It is useful before adding unit tests to a legacy project, when a team wants to see how far static coupling reaches, or when it is planning an incremental migration. The skill scales its answer to the request, so a question about one category returns only that category with file locations and counts. It only activates for requests that explicitly name C#, .NET, .cs or .csproj.…
Highlights
- Ranks static API calls by how often they appear
- Lists the files most affected by static coupling
- Suggests existing .NET abstractions to replace each static
- Narrows the scan to a file or directory when asked
Ratings & Reviews
No ratings yet
Be the first to rate detect-static-dependencies.
People also visit

.NET MCP Server
AI assistant access to .NET SDK for projects, packages, building, testing

V0v1kkk/DotNetMetadataMcpServer
#⃣ - Type information from .NET projects: assembly exploration

MarcelRoozekrans/roslyn-codelens-mcp
#⃣ - Roslyn-based .NET code intelligence: type hierarchies, call graphs
detect-static-dependencies FAQ
What does this skill produce?
A ranked list of static API calls in a C# codebase, with counts, the files where they occur, and the .NET abstractions that could replace them. For a focused question it returns only the relevant category.
When should I use it?
Before adding unit tests to a project, when auditing how much static coupling a legacy codebase has, or when planning which statics to wrap first.
Will it scan my whole solution?
Only when asked. If you give a specific file or directory, the scan stays in that scope.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill detect-static-dependencies in your project.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best detect-static-dependencies alternatives?
Popular alternatives to detect-static-dependencies include csharp-scripts, dotnet-skills and .NET MCP Server. See all detect-static-dependencies alternatives








