BigHugger
sk Skill · kucherenko

dry-refactoring

Guided workflow to eliminate copy-paste duplication detected by jscpd. Refactor clones using extract function, module, constant, or base class strategies.

installs 8w
1,157
30-day movement
starts with the next reading
Related entries
1
Connections
0
typescriptbashRust

An agent skill providing a guided workflow for removing copy-paste duplication in source code. It works with jscpd, which detects clones, and applies refactoring strategies such as extracting functions, modules, constants, or base classes.

When jscpd has flagged duplicated code, this skill turns the raw clone report into a structured refactoring workflow instead of ad-hoc edits.

Use it to

  • Run jscpd with --reporters ai to detect clones
  • Prioritize refactoring by dup% and token count
  • Refactor duplicated logic with extract function or module
  • Turn clones between test files into shared test helpers

For Developers using jscpd-driven workflows with an AI coding agent

Host repository
kucherenko/jscpd
Installs, lifetime
1,800
Installs, 8 weeks
1,157
Host stars
6,222
Host language
Rust
topicsrefactoringcode-duplicationjscpdagent-skillbashtypescript