Optimizes hot-path scalar loops in .NET 8+ with cross-platform Vector128/Vector256/Vector512 SIMD intrinsics, or replaces manual math loops with single TensorPrimitives API calls.
QuickDup for .NET
Use the open-source free `QuickDup` clone detector for .NET repositories. Use when a repo needs duplicate C# code discovery, structural clone detection, DRY refactoring candidates, or repeatable duplication scans in local workflows and CI.
Trigger On
- the repo wants
QuickDup - the team needs repeatable duplicate-code scans for C#
- the user asks about DRY cleanup, copy-paste detection, clone detection, or duplicate logic removal in a .NET repo
Workflow
- Choose the scan target deliberately:
- whole solution for broad discovery - bounded folders for targeted cleanup
- Scan C# with
.csonly unless the repo explicitly wants Razor, generated XML, or other extensions too. - Exclude generated and transient paths before trusting the results:
- bin/ - obj/ - Migrations/ when scaffold churn dominates - *.g.cs - *.generated.cs - *.Designer.cs
- Review the top patterns before refactoring anything.
- Classify duplication before changing code:
- real structural duplication worth extraction - domain-shape duplication that documents intent - generated or acceptable duplication that should be ignored
- Prefer small extractions, named helpers, shared value objects, or focused abstractions over flag-heavy merge methods.
- Re-run
QuickDupafter the refactor and then run the repo's normal quality pass.
Deliver
- repeatable duplicate-code detection for C#
- explicit exclude and suppression strategy
- concrete refactoring candidates instead of vague maintainability advice
Validate
- the scan target and excludes match the repo's real source boundaries
- generated-code noise is filtered before acting on findings
- duplication cleanup preserves behavior and is backed by relevant tests
QuickDupoutput is used as input to review, not as an automatic rewrite authority
Load References
references/commands.mdreferences/examples.mdreferences/quickdup.md
Related skills
Use the open-source free `Asynkron.Profiler` dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts.
Use the open-source CodeQL ecosystem for .NET security analysis.