Loading...
Loading...
Guided workflow to eliminate copy-paste duplication detected by jscpd. Refactor clones using extract function, module, constant, or base class strategies.
npx skill4agent add kucherenko/jscpd dry-refactoringnpx jscpd --reporters ai <path>--cross-formatsnpx jscpd --reporters ai --cross-formats "js-ts" <path>--reporters ai// Before: same block in two places
// After: shared function called from both places// Move shared logic to a shared utility file and import it.js.ts--cross-formats--min-lines 10