What problem does it solve? Copy-paste duplication spreads across a codebase over time, making maintenance risky because every fix must be applied in multiple places. This Skill provides a guided workflow to systematically eliminate clones reported by jscpd and consolidate them into single, well-named abstractions. ## Core Features & Use Cases - Guided clone elimination: Parse jscpd AI-reporter output, read both duplicated fragments, design a refactoring, apply it to all call sites, and re-run jscpd to confirm the clone is gone. - Multiple refactoring strategies: Choose between extract function, extract module/utility, extract constant/config, or template/base class depending on the shape of the duplication. - Cross-format clone handling: Detect and consolidate clones spanning JavaScript and TypeScript files using jscpd's --cross-formats option, typically merging into the TypeScript implementation. - Use Case: After running jscpd on a React + TypeScript app, you find the same data-mapping logic copied in three components. Use this Skill to extract a shared utility, update all call sites, and verify the clone count drops to zero. ## Quick Start Run jscpd with the AI reporter on my src folder and refactor the reported duplications into shared functions, verifying each fix by re-running the scan.