Registry / managedcode

managedcode/dotnet-skills/exp-mock-usage-analysis

Audits .NET test mock usage by tracing each mock setup through the production code's execution path to find dead, unreachable, redundant, or replaceable mocks. Use when the user asks to audit mock usage, find unused or unnecessary mock setups, check if mocks are needed, reduce mock duplication or over-mocking, simplify test setup, or review whether mock configurations like ILogger/IOptions should use real implementations instead. Supports Moq, NSubstitute, and FakeItEasy.

Agent skill · version 0.0.0-main.1794330588.g268856b · from managedcode/dotnet-skills

Install

npx yarkr-cli add skill:managedcode/dotnet-skills/exp-mock-usage-analysis

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:managedcode/dotnet-skills/exp-mock-usage-analysis
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:managedcode/dotnet-skills/exp-mock-usage-analysis

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:managedcode/dotnet-skills/exp-mock-usage-analysis

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.