exp-test-maintainability

Analyze .NET test code for maintainability issues and refactoring opportunities.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ojrojas/AgentsInstructions --skill exp-test-maintainability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exp-test-maintainability
Source: https://github.com/ojrojas/AgentsInstructions/tree/main/.claude/skills/dotnet-experimental/skills/exp-test-maintainability
Command: npx skills add https://github.com/ojrojas/AgentsInstructions --skill exp-test-maintainability

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill identifies and suggests refactoring opportunities for duplicated boilerplate, copy-paste tests, and structural maintainability issues in .NET test suites.

Core Features & Use Cases

  • Maintainability Analysis: Detects repeated object construction, assertion patterns, and copy-paste methods across test methods and classes.
  • Refactoring Suggestions: Provides concrete before/after suggestions for refactoring, including factory methods, shared test base classes, and parameterized tests.
  • Integration: Works with MSTest, xUnit, NUnit, and TUnit frameworks.

Quick Start

Analyze maintainability issues in your .NET test suite with the 'exp-test-maintainability' skill.

Frequently Asked Questions about exp-test-maintainability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find duplicate boilerplate and copy-paste tests in a .NET test suite?

You can identify duplicate boilerplate and copy-paste tests in a .NET test suite by running an automated maintainability analysis that detects repeated object construction and assertion patterns across test methods and classes.

What are the best ways to refactor duplicated MSTest and xUnit assertions?

The best ways to refactor duplicated MSTest and xUnit assertions include extracting factory methods, using shared test base classes, and converting repetitive tests into parameterized tests to improve readability and reduce maintenance overhead.

Does .NET test maintainability analysis support NUnit and TUnit frameworks?

Yes, .NET test maintainability analysis supports NUnit and TUnit frameworks, alongside MSTest and xUnit, allowing you to detect structural maintainability issues and generate refactoring reports across multiple testing tools.

Do I need the .NET SDK to run test code analysis and generate maintainability reports?

Yes, you need the .NET SDK installed to run test code analysis and generate maintainability reports, as the analysis engine relies on the SDK to inspect your test methods and produce refactoring suggestions.

What types of structural maintainability issues can be detected in .NET test code?

Maintainability analysis detects structural issues in .NET test code such as repeated object construction, duplicated assertion patterns, and copy-paste test methods, providing concrete before and after refactoring suggestions.