mcaf-dotnet-quickdup

Detect structural duplication in C# source files within .NET repositories.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-quickdup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcaf-dotnet-quickdup
Source: https://github.com/managedcode/MCPGateway/tree/main/.codex/skills/mcaf-dotnet-quickdup
Command: npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-quickdup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of identifying and managing duplicate C# code within .NET repositories, helping to improve code quality, reduce maintenance overhead, and promote the DRY (Don't Repeat Yourself) principle.

Core Features & Use Cases

  • Structural Clone Detection: Identifies blocks of code with similar structure, even if variable names or minor details differ.
  • DRY Refactoring Candidates: Pinpoints areas ripe for abstraction or consolidation, leading to cleaner, more maintainable code.
  • Repeatable Scans: Enables consistent duplication checks in local workflows and CI pipelines.
  • Use Case: A development team wants to ensure their .NET codebase adheres to DRY principles before a major release. They use this Skill to scan the entire solution, identify the top duplication patterns, and then refactor the identified code into shared libraries or methods.

Quick Start

Use the mcaf-dotnet-quickdup skill to find duplicate C# code in the current repository.

Frequently Asked Questions about mcaf-dotnet-quickdup

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

FAQPage Schema
How do I detect duplicate C# code in a .NET repository?

To detect duplicate C# code in a .NET repository, this Skill uses the QuickDup tool to scan source files and identify structural code duplication. It pinpoints repeating patterns to help enforce DRY principles and reduce maintenance overhead.

What is structural clone detection in C# source files?

Structural clone detection in C# source files identifies blocks of code with similar structures, even when variable names or minor details differ. This approach finds non-DRY code patterns that are prime refactoring candidates for abstraction.

Can I automate code duplication checks in my .NET CI pipelines?

You can automate code duplication checks in .NET CI pipelines using this Skill to enable repeatable scans. It integrates into development workflows to perform consistent automated code quality checks before releases.

How do I find refactoring candidates to apply the DRY principle in C#?

To find refactoring candidates for the DRY principle in C#, this Skill scans for structural duplication and highlights areas ripe for abstraction. Consolidating these identified blocks into shared libraries improves maintainability.

Does the QuickDup code duplication scanner require external dependencies?

The QuickDup code duplication scanner operates without requiring external dependencies, running directly as a Skill. It analyzes your .NET C# source files natively to identify duplicate code patterns and structural clones.