Claude Marketplaces
SkillsMCP serversMarketplacesPluginsDigestToolsAdvertise
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Plugins
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index
  • Plugin index

Site

  • About
  • Tools
  • Submit
  • Advertise
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
by Mert Düzgün
Skills/Testing & QA
dotnet avatar

Exp Mock Usage Analysis

dotnet/skillsOfficial

Most mock audits stop at "is this mock referenced?" This one goes further: it reads the production method, traces the actual execution path for each test's inputs, and flags setups that sit behind a guard clause, an early throw, or a branch the test never takes. It also calls out mocks of ILogger, IOptions, and DTOs that could be real instances instead, while keeping external boundaries like databases and HTTP clients mocked. The reliance on reading production code is the point, and also the cost: on a large codebase, expect it to be slower than a grep-based check. It covers Moq, NSubstitute, and FakeItEasy, and it uses each framework's own terminology in its findings, which keeps the output readable for the team that actually owns the tests.

GitHub stars
4.9K
last updated
Aug 1, 2026
View on GitHubSave

Install

$ npx -y skills add dotnet/skills --skill exp-mock-usage-analysis --agent claude-code

Installs into .claude/skills of the current project.

Files

Mock Usage Analysis

Trace each mock setup through the production code's execution path to determine which setups are actually exercised at runtime and which are dead, unreachable, redundant, or replaceable with real implementations.

When to Use

  • User asks to audit, review, or analyze mock usage in .NET tests
  • User wants to find unused, unnecessary, or redundant mock setups
  • User wants to simplify test setup or reduce over-mocking
  • User asks whether mocks of ILogger, IOptions, or similar types are needed

When Not to Use

  • User wants to write new mocks or tests (general testing guidance)
  • User wants to detect non-mock test anti-patterns (use test-anti-patterns)
  • User wants to migrate between mock frameworks (out of scope)

Inputs

InputRequiredDescription
Test codeYesTest files to analyze
Production codeYesCode under test — essential for tracing execution paths

Workflow

Step 1: Read all provided code

Read the test files and always read the production code. You cannot determine whether a mock setup is necessary without understanding the production method's control flow.

SKILL.md on GitHub

Sponsors

This spot is openSlot 1$1,200/mo Advertise hereThis spot is openSlot 2$1,000/mo Advertise hereSnugSponsoredThe clipboard manager you and your agent can use, safelyknobsSponsoredSee your site on any phone, any day, in any languageAgent CaffeineSponsoredClose your lid, come back to finished workThis spot is openSlot 6$500/mo Advertise hereThis spot is openSlot 7$500/mo Advertise hereWaxSponsoredBlock anything with supervision, without erasing your iPhone

Details

Repository
github.com/dotnet/skills
Categories
Testing & QA, Git & Pull Requests, Code Review & Quality, .NET & C#
License
MIT
First seen
Aug 2, 2026

More from dotnet/skills

All 102
  • Exp Simd Vectorization
  • Exp Test Maintainability
  • Optimizing Ef Core Queries6.5K
  • Run Tests6.4K
  • Analyzing Dotnet Performance5.6K
  • Test Anti Patterns5.1K
  • Filter Syntax5.1K
  • Dotnet Webapi5K
  • Code Testing Agent4.6K
  • Msbuild Antipatterns4.5K
  • Dotnet Trace Collect4.4K
  • Csharp Scripts4.4K
  • Directory Build Organization4.3K
  • Msbuild Modernization4.3K
  • Coverage Analysis4.3K
  • Assertion Quality4.2K
  • Binlog Failure Analysis4.2K
  • Dotnet Aot Compat4.2K
  • Test Gap Analysis4.2K
  • Dotnet Pinvoke4.1K
  • Crap Score4.1K
  • Build Perf Diagnostics4.1K
  • Binlog Generation4.1K
  • Code Testing Extensions4.1K

Recommended

More Testing & QA
1dotnet avatarexp-test-maintainabilitydotnet/skillsDetects duplicate boilerplate, copy-paste tests, and structural maintainability issues across .NET test suites. Use when the user asks to reduce repetition, con0skills.sh installs
2etewiah avatarrails-testingetewiah/property_web_builderHelp with Rails testing including unit tests, integration tests, fixtures, and debugging test failures. Use when working on tests or debugging test issues.0skills.sh installs
3getsentry avatare2egetsentry/sentry-javascriptRun E2E tests for Sentry JavaScript SDK test applications0skills.sh installs
4hoangnguyen0403 avatarzephyr-coverage-analysishoangnguyen0403/agent-skills-standardAnalyze Zephyr test case coverage for a Jira user story and produce a QE management report with metrics, risk scoring, and prioritized recommendations.0skills.sh installs
5inocan-group avatartestinginocan-group/inferred-typesProvides expertise on how to write effective unit tests (runtime and type tests), make testing decisions, and incorporate TDD into development workflows0skills.sh installs
6pluginagentmarketplace avatarPytest Testingpluginagentmarketplace/custom-plugin-pythonMaster test-driven development with pytest, fixtures, mocking, and CI/CD integration0skills.sh installs