dedupe-scan

Scan codebases for duplicated code patterns and AI-generated antipatterns.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Objective-Arts/lens-dist --skill dedupe-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dedupe-scan
Source: https://github.com/Objective-Arts/lens-dist/tree/main/skills/dedupe-scan
Command: npx skills add https://github.com/Objective-Arts/lens-dist --skill dedupe-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies instances of duplicated code and potential AI-generated antipatterns within a codebase, helping to improve code quality and maintainability.

Core Features & Use Cases

  • Duplicate Code Detection: Scans for identical logic across multiple files.
  • AI Antipattern Flagging: Identifies common signs of over-engineered or speculative AI-generated code.
  • Read-only Analysis: Reports findings without making any modifications to the codebase.
  • Use Case: A developer suspects that a utility function has been copied and pasted across several modules. Running /dedupe-scan will pinpoint these exact locations and suggest consolidation.

Quick Start

Run the dedupe-scan skill to find duplicated code patterns in the current project.

Frequently Asked Questions about dedupe-scan

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

FAQPage Schema
How do I find duplicated code patterns across multiple modules?

AI-generated code antipatterns appear as over-engineered or speculative logic within a codebase. Scanning for these patterns flags common signs of unnecessary complexity, helping developers identify and review low-quality AI-generated code segments.

Can I detect AI antipatterns and code duplication without modifying my project?

Yes, you can detect AI antipatterns and code duplication through read-only analysis. This approach reports findings and consolidation recommendations without making any modifications to the existing codebase, ensuring your project remains untouched.

What is the best way to analyze code duplication false positives?

The best way to analyze code duplication false positives is to run a scan that evaluates findings against specific analysis criteria. This distinguishes true duplicated logic from false positives and prioritizes high-impact patterns for refactoring.

Does static analysis for code duplication work for large codebases with copied utility functions?

Static analysis for code duplication works for large codebases by executing parallel grep searches to identify copied utility functions. It reports duplicated logic across multiple modules and provides targeted consolidation recommendations regardless of project scale.